Greetings @roar ,
Apparently, you're the man. And I need you help now more than ever
Greetings @roar ,
Apparently, you're the man. And I need you help now more than ever
Greeting,
How can I create an Expert Advisor for MT4. The task is simple. After every candle closed, refresh all indicator
Stop loss is the current daily high or current daily low.
When trade is +5 or more, move stop to BE+1.
When trade is +10 or more, move to to BE+5
Greetings @l-andorrà ,
So in this case, how do we proceed in to the following:
Stop loss is the current daily high or current daily low.
Adjust position size accordingly.
Take profit by moving stop.
When trade is +5 or more, move stop to BE+1.
When trade is +10 or more, move to to BE+5
M15 bar must open below the lowest H1 open before you can enter.
M15 bar must open above the highest H1 open before you can enter.
Greetings @l-andorrà ,
I completed your instructions (Shared project link: https://fxdreema.com/shared/62DLTk8ae)
What would be the next steps?
Sincerely
Greetings @l-andorrà ,
Thank you for your help. I would like to know something regarding the variables, the ones colored in blue.

What would be the type, name, and value when creating them
Greetings @l-andorrà ,
If price is within YESTERDAYS HIGH AND LOW price, we can then look at where price is in relation to TODAYS HIGH.....and TODAYS HIGHEST H1 OPEN price.
Greetings @l-andorrà
No I do not because I do not know where to start.
Greetings,
I would like to create an expert advisor that:
Place a line at the highest H1 open and lowest H1 open for the current day.
Sell short at the highest H1 open after price goes up through it and comes back down.
Buy at the lowest H1 open after price goes down through it and comes back up.
Stop loss is the current daily high or current daily low.
When trade is +5 or more, move stop to BE+1.
When trade is +10 or more, move to to BE+5
For clarification purposes:
Sell short at the highest H1 open after price goes up through it and comes back down.
Price has to GO UP FIRST.
Price has to GO ABOVE the highest H1 open.
AFTER, price has risen above the highest H1 open, THEN AND ONLY THEN, do you enter a short trade when price falls back down to the highest H1 open.
Buy at the lowest H1 open after price goes down through it and comes back up.
Price has to GO DOWN FIRST.
Price has to GO BELOW the lowest H1 open.
AFTER, price has dropped below the lowest H1 open, THEN AND ONLY THEN, do you enter a long trade when price rises back up to the lowest H1 open.
** M15 bar must open below the lowest H1 open before you can enter.
** M15 bar must open above the highest H1 open before you can enter.
Greetings @l-andorrà ,
The in terms of when to close, if the pending order becomes an actual order, the close the actual order whenever the old position closes its position. If the old ea closes it's position, and the pending order does not become an actual, then simply close the order.
@l-andorrà if you see something wrong can you please point it out with it's explanation, and how to solve it