You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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);