I'm quite new to NT- and C# - coding (but not programming at all).
I have a strategy running for a couple of Forex-Pairs. The strategy is compiled and has around 50 inout parameters. Every time I wanna activate this one, I have to check all the parameters which is annoying.
That's why I wanna create a strategy that simply calls this strategy with all the needed parameters so that I only have to put them into my strategy once. Imagin this like the follows:
if(Instrument.FullName == "EURUSD")
{
Strategy(ABC).Call(param1,param2....param50)
}
else if (Instrument.FullName == "EURJPY")
{
Strategy(ABC).Call(param1x,param2x....param50x)
}
Is that possible? I guess I have to kind of "include" the Strategy ABC into my code. And/Or have to create an intance of X times the Strategy (for each Instrument).....
Are there any examples available? I searched the forum but couldn't find any useful snippets.
Bye
Steakley
Comment