Hello,
I'm moving first steps in .Net.
This error message appears if I want to insert any study (please see attached image).
It appears ONLY if PowerLanguage.Net Editor was started BEFORE MultiCharts.Net64.
Another issue I'm experiencing: I can't send any text to the Output window.
As an example the codes kindly shared on this site:
http://www.tradingcode.net/multicharts- ... ut-window/
don't print anything to my output window.
I don't know if problems are related.
I've uninstalled and reinstalled MC64.Net and Visual Studio Community 2015 two times with no success.
Thanks for your patience.
System.IO.FileNotFoundException [SOLVED]
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: System.IO.FileNotFoundException [SOLVED]
Hello Louis88,
You need to run all MultiCharts .NET components under the same user (as user or as admin).
If you are running MultiCharts .NET as administrator then you need to run the PL .NET Editor as admin as well. Please also make sure that your anti-virus does not block the StudyServer.NET.exe process, or try completely disabling the anti-virus.
As for the second issue:
What exact version and build number of MultiCharts .NET are you running? (in MultiCharts go to Help tab-> About)
Which edition of Windows 10 are you using?
You need to run all MultiCharts .NET components under the same user (as user or as admin).
If you are running MultiCharts .NET as administrator then you need to run the PL .NET Editor as admin as well. Please also make sure that your anti-virus does not block the StudyServer.NET.exe process, or try completely disabling the anti-virus.
As for the second issue:
What exact version and build number of MultiCharts .NET are you running? (in MultiCharts go to Help tab-> About)
Which edition of Windows 10 are you using?
Re: System.IO.FileNotFoundException
Hello Henry,
Yes, I was running only PL .NET Editor as administrator. The problem is now solved.
As for the second issue:
MultiCharts .NET64 Version 9.1 Beta 1 (Build 11497)
Windows 10 Home edition.
Many thanks
Yes, I was running only PL .NET Editor as administrator. The problem is now solved.
As for the second issue:
MultiCharts .NET64 Version 9.1 Beta 1 (Build 11497)
Windows 10 Home edition.
Many thanks
Re: System.IO.FileNotFoundException
Hello Henry,
this code:
perfectly works as intended on subcharts. Not if I put it on the main chart.
Thanks
this code:
Code: Select all
using System;
using System.Drawing;
using System.Linq;
using PowerLanguage.Function;
namespace PowerLanguage.Indicator
{
[SameAsSymbol(true)]
public class PR_Example_PLEditorOutput : IndicatorObject
{
public PR_Example_PLEditorOutput(object _ctx) : base(_ctx) { }
protected override void Create()
{
// Clear the Output tab every time the indicator is (re)created
Output.Clear();
}
protected override void StartCalc()
{
// Once every calculation, output some symbol information
Output.Write("Study name: " + Name);
Output.Write(", applied to instrument: " + Bars.Info.Name + " (" + Bars.Info.Exchange + ")");
Output.Write(System.Environment.NewLine);
}
protected override void CalcBar()
{
// Output bar information at the bar close
if ((Bars.Status == EBarState.Close) && (Bars.CurrentBar == 20))
{
Output.WriteLine("{0} - Closed at {1}",
Bars.Time[0].ToString("d-M HH:mm:ss"),
Bars.Close[0]);
}
// Output chart information on a specific bar number
if (Bars.CurrentBar == 50)
{
Output.Write("Chart resolution: ");
Output.WriteLine(Bars.Info.Resolution.Size + " " + Bars.Info.Resolution.Type);
}
}
}
}
Thanks
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: System.IO.FileNotFoundException
For me the code also works on subchart. If you move the indicator from the main chart to the subchart, did you also turned if off and back on again?perfectly works as intended on subcharts. Not if I put it on the main chart.Thanks
If I move the indicator from the main chart to the subchart, nothing happened also. But this also didn't triggered a full recalculation of the indicator, which turning the indicator off and back on again does.
In other words, the indicator already completed its calculation process and so moving it from the main chart to the subchart gives the impression it doesn't do anything.