In the @S demo system, the code fails to compile in MC with an error on this line:
timeHms = StrToNum(BarDateTime.Format("%H%M%S"));
I tried changing it to:
timeHms=Time_s;
The code compiles but the system produces no trades.
I figured this was due to differences in the type/format of the variables so next I tried replacing this line:
If (TimeHms >= SessionEnd And TimeHms <= SessionEndPlus59Sec) Then // John62 2018/03/10
With:
If Time> sessionendtime(0,1) Then
This compiled ok, but again no trades.
So I currently don't have a working MC version of the strategy.
The reason for using MC is that I want to execute trades at IB, rather than at TradeStation.
|