What lines are missing, please

 

Hello, I have this EA but as you can see by the pic, it is initiating the buy and sell trades but not actually completing with the TP and SP prices, it is just sitting there doing nothing. Can you please tell me what lines of code I need to add to finish the trade to complete the order ??

Thanks

Files:
not_trading.jpg  26 kb
 

You may be put TakeProfit or StopLoss = 0 in the OrderSend() as shown below ...

OrderSend(Symbol(), OP_BUY, Lots, entry_price, Slippage, StopLoss, TakeProfit, Comment, MAGICNo, Expiration, Color);

To get a specific answer, you should to upload your code.

Good luck.

 

Ok, here are two different versions of an EA that don't seem to be working to well plus I've included what I think is the latest version of the indicator.

Files:
Reason: