please could you help me to find out what is wrong with my NinjaTrader?
I have strategy in attachement.
The system of the strategy is:
Strategy will find maximum and minimum price between 14:40 and 15:01 on CL market. This time range is called like timeArray.
When the price will go over/under this MAX and MIN lines, it will enter to LONG/SHORT
This first trade has to be done until 16:00 or no another enter signal is accepted this day.
Strategy can make also second enter but just in case it is to the opposite way like the first trade (if first was long the second has to be short) and the first trade was losing. Another cases are ignored.
Exit is in stoploss or profittarget.
It's simple.
The code is executing correctly but I dont understand why, when my strategy will make EnterLong() the code is freezen.
I tried this just in the historical data.
See attachement please for more info.
There are two different errors.
Thank you for your assist.
BTW: I was using ZenFire demo account and now the ZenFire is not providing live data to me - I can see just empty chart when I want to see live data..
But when I want to see for example from 1.2.2010 - 5.2.2010 it shows me this data fine.
But I also tried to test that on SimulatedDataFeed and it is also not working.
The code is executing just until the EnterLong method and after that like the code is not executing anymore
Comment