Both tradeRisk and stop are doubles.
Instrument.MasterInstrument.PointValue should be the dollar amount in usd of each tick of the instrument in the primary data series.
long position:
tradeRisk = ((Close[0] - stop) / (TickSize)) * Instrument.MasterInstrument.PointValue;
short position:
tradeRisk = (stop - Close[0]) / (TickSize) * Instrument.MasterInstrument.PointValue;
Comment