I'm developing a strategy I'd like to use on different Forex pairs
in order to set my stoploss order on a short position I need to know the spread of this pair the strategy is applied to
(long positions don't have this problem as forex prices are bid driven)
AtmStrategyChangeStopTarget(0, High[2] + XXX * TickSize, "STOP1", atmStrategyId);
the XXX in the line above should present the spread of the pair the strtegy is applied to
example: for eur/usd 3 ticks spread XXX = 3
gbp/jpy 9 ticks spread XXX = 9
.....
Could you please help me with some code on how to check what symbol the strategy is applied to
so I can define the appropriate stoploss offset
Thank you very much
Nico
Comment