Hello everyone, 

Sorry for asking about such stupid questions but i am getting frustrated with the Stop Limit Order Function. 

I expected that the Order is submitted to the ticker and closes automatically when it reaches the stop loss or take profit limit. 

I thought that this simple Line of Code do the job but as u can see in the backtest it wont... 

var stopLimitTicket = StopLimitOrder(contract.Symbol, 10, (decimal)stopPrice, (decimal)limitPrice);Can someone please fix my code that the open Position close automatically when it reaches the limits? I don't want to destroy my computer today because I'm angry... Thanks in forward.

Author