Little help on mq4 language

I tried to create a EA that automatically place orders & placing a Sl , TP values. problem is I cant add a code to place Sl , TP values.

Ex - I need to place 30 pips Stop loss on all orders.

another question How to automatically close a order placed before a day ?

Can anyone help me :slight_smile:

thank you

Hi,
Sounds like you more than a little help…try here MQL4 Tutorial
:slight_smile:

It sounds like you have a few questions. As for the first question, I created a script that buys, places a stop loss and take profit. You might start by looking at the code for this sample and implementing it into your EA.

Buy with stop loss and take profit