In the 6E instrument I want to ensure a constant is properly rounded as I will being comparing against it..
I used this code:
if (CurrentBar <= 1) marketProfitPts = .003;
Print(CurrentBar + "mkt 1 set " + marketProfitPts.ToString());
Print(CurrentBar + "mkt br " + marketProfitPts.ToString());
marketProfitPts = Instrument.MasterInstrument.Round2TickSize(marketP rofitPts);
Print(CurrentBar + "mkt ar " + marketProfitPts.ToString());.
I get these results:
0mkt 1 set 0.003
0mkt br 0.003
0mkt ar 0
The rounding set the value to 0
Data series is defintely 6E (Eurodollar). Tthis is in a strategy.
What do I not understand?
Comment