I created an indicator whose calculate an indicator just for test from multi pair forex.
So I wrote this:
protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
Add("AUDUSD",PeriodType.Minute, 5);
Overlay = false;
}
I tried with Add("$AUDUSD",PeriodType.Minute, 5); too and the result is same.
After I wrote this:
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
Plot0.Set(CCI(10)[0]/CCI(BarsArray[1],10)[0] );
}
And this don't work.
If I look the error log, I can see this:
05/01/2013 14:46:05|3|4|The indicator 'MyCompareSerie' has called the Add() method with an invalid instrument. Either 'AUDUSD' does not exist in the Instrument Manager or the specified exchange has not been configured.
But if I go in the Instrument Manager my pair exist as you see in the file attached. It exit in the forex too.
Could you explain me please?
Thank's a lot.
Comment