I have a really strange problem and I seem to be struggling to work out how to fix it.
I have built a strategy piece by piece and I am at the stage where I would like to enter trades. So first off I just put something together to make sure that the code I wanted to use worked. So I have a program that just randomly enters trades in either direction with stop loss and targets and it worked fine. So now my strategy has the same code and when testing I can prove that the code would normally be executed via print statements but the command EnterShortLimit(Convert.ToInt32(DefaultQuantity), (Low[1] - 2) , @"ShortEntry"); is completely ignored.
This is the exact line that works in the other program but not in the strategy I am currently working on ( I am using the equivalent statement and appropriate values for the long entry). I have checked the State == State.Setdefaults section in case maybe I had something set wrong, I have checked positions flat and other variables that may override an entry but I can't seem to find anything, are there any logs that track this on a sim account ?
If anyone has any ideas/suggestions I would be extremely grateful!!
Thanks in advance
Comment