Greeting,
How can I create an Expert Advisor for MT4. The task is simple. After every candle closed, refresh all indicator
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
Greetings @ambrogio ,
I want to ask you a small question. Can this EA run multiple times. For example, one on EUR/USD, EUR/JPY, AUD/USD?
Because I have the old expert advisor running on 3 M1 charts (EUR/USD, AUD/USD, EUR/JPY). Alongside, I have the new expert advisor that you an I have created running on also 3 M1 charts with the same pairs mentioned earlier. I am still monitoring how this EA performs. But I just noticed the following:
I kindly ask you or @l-andorrà to just have a look at my shared folder, and just have a look if I did something wrong or if there is something that can be improved upon.
Shared Folder: https://fxdreema.com/shared/hEzLc6lxd
Summary:
All I am trying to do, is to create an EA that opens only one pending order at X position away for every position opened by my EA (regardless of currency). Meaning if EUR/USD opened a position by the old EA, the New EA will open a pending order as well.
If the pending order becomes an actual order, then simply close the position whenever the old EA closes it's position.
If the pending order never became an actual order due to the old EA position going straight to TP then, close the position.
For every position opened by old EA, the new EA should open only one pending order related to that currency.
If there is any questions, please do tell me
Greetings @l-andorrà ,
I need an EA that works in correlation with my existing EA. I need an EA to open only one pending order X position away from the position opened by the existing EA. When pending order becomes an actual order, then simply close the order whenever the Existing EA closes it's position.
If the existing order went straight to T/P then simply close the pending order.
The shared folder is what @ambrogio has suggested
Greetings @ambrogio ,
The link to the shared folder is found below
Shared Folder: https://fxdreema.com/shared/e0wembBTb
In Review"
I am trying to open a position at X point away from the current position opened by the other EA, which is done by (magic number). And regarding when should it close, simple close whenever the old position closes.
Do you care to check please if I did it right?
I have just started live testing on a demo, and I can really use somebody who can just have a look and see if I did a mistake.
Thank you so much for helping me
Greeting @bk7 ,
can fxdreema use machine learning algorithms to predict future market price?
Greetings,
This is not really a question, I need an EA to be built, I am willing to pay through western union not more than 30 USD. Please DM me
Greetings @ambrogio ,
I am sorry, it was mistake on my end, forget the previous post. Please check your DM
Greetings @ambrogio ,
Based on your shared project, after the pending order becomes an actual order, it is opening another sell limit. I do not want that
Greetings @ambrogio ,
I think I see what you did. Just a small clarification. Will I have to remove stop loss mode and Take-profit mode in the pending order?
Sincerely