I faced with the following problem:
I created an indicator that has a couple of parameters including an instrument selector.
Parameters are like:
Szamla_nev = "Sim101";
CustomEnumNamespace.Kockazat KockazatTipus = CustomEnumNamespace.Kockazat.Szazalek;
Risk = 1;
InstrumentInput = Instrument.GetInstrument("");
ATR1 = 1.5;
ATR2 = 2.0;
ATR3 = 3.0;
ATRPeriod = 14;
PrintText = false;
SzovegSzin = Brushes.Black;
CustomEnumNamespace.SzovegPos SzovegElhelyezes = CustomEnumNamespace.SzovegPos.JobbAlso;
SzovegEltolas = 0;
if (InstrumentInput == null) InstrumentInput = Instrument;
I set up on the chart with my custom default and saved it successfully. (It is loaded fine later.)
But when I save it within a chart template I see the default values, but when I try to load the chart template on another chart, then the InstrumentInput parameter is not handed over.
Chart template looks like this:
<Indicator BarsIndex="0" Instrument="ES SEP24 Globex" Name="NinjaTrader.NinjaScript.Indicators.ProfitPos itionSize" Panel="-1" DisplayName="ProfitPositionSize(1,5,2,3,14,MNQ SEP24 Globex,Szazalek,False,0,4,APEX-215824-02,BalAlso,0,#FF000000)">
It's clearly visible, that the parameter value is missing (was not handed over from chart template) from the parameter list.
Can you please help?
Thanks,
Jorgi

Comment