Essentially all I am trying to do is set a stop at Breakeven once the price (High) has gone a certain number of points (BreakevenStop) above or below (depending on direction) the entry price.
I have written this code over and over again on other strategies and it works flawlessly, that is why I am so confused as to why on this specific one it is not working.
I am posting screenshots of the code and the output and the strategy analyzer below. Yes I have put Print statements in my code, that is what I will be showing.
I have it set to Print every time the code is run, so essentially in theory I should only possibly have as many stop losses set as there are print statements.
Also in the Print Statement I have it print the date that it is executed on. If you look at the trades dates you can see that it has stop loss fills at completely different dates.
Let me know if I am just being stupid, my degree in Computer Science degree is crying right now
Edit:
I think I may of resolved the issue using ExitShortStopMarket() (In the past this order was bugged in the strategy Analyzer)
Still would like to figure out the issue with this though

Comment