TP Can't Triggered in backtest

 

Hi, 

I want to use OrderSend with fixed sl and tp for my strategy but in backtest as you can see in the picture it was not trigged when my target price hits the price.

the order send successfully without any error.

what is the problem?

thanks?

double StopLoss=GetStopLossPrice(PZ_GetLastBDTrendLine(), 50 , PT_SELL);

double TakeProfit=CalculateTakeProfit(EnteryPrice, StopLoss,tpRatio, PT_SELL);

double newOrder=OrderSend(Symbol(),OP_SELLLIMIT,LotValue,EnteryPrice,10,StopLoss,TakeProfit,"Strategy is open by 2BB strategy",222,0,0);

            

Files:
5000.png  137 kb
 
Your limit order is still hanging open, therefor nothing to trigger.
 
Enrique Dangeroux:
Your limit order is still hanging open, therefor nothing to trigger.
Thanks. you'r right, I didn't notice it.