TP Can't Triggered in backtest New comment ramin110 2020.09.22 10:17 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 One order in a time StopLoss TakeProfit as filters Help with OrderSend( ) Function Enrique Dangeroux 2020.09.22 17:06 #1 Your limit order is still hanging open, therefor nothing to trigger. ramin110 2020.09.22 18:23 #2 Enrique Dangeroux: Your limit order is still hanging open, therefor nothing to trigger. Thanks. you'r right, I didn't notice it. New comment
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);