If it opened an order, then closed it and switched off until the next day.
I guess I need to fetch the latest deal from the history... compare it with the date and if the order has already been closed that day, then disable the EA...
are you thinking in the right direction?
I can't really understand it, because I am new to mql.
I am also new to programming)) but I would do the following: At the beginning of special function start I would put a condition to check a new day and flag string Work=true; after opening an order I would put a flag that Expert Advisor does not work. (Work=false;) If the day is new, then the flag is removed - i.e. Expert Advisor works until the position is opened, etc.
Please advise how to explain points of line inflection in software, i.e. to the expert, i.e. the expert has to distinguish between two options of МА position: МА rising, МА falling.
Inflection points or extremes? If the swing is rising, the penultimate bar should be lower than the last one. And vice versa.
Please advise how to explain the inflection points of the line, i.e. the Expert Advisor has to distinguish between two scenarios of МА position: rising and falling MA.
it depends on what does it go up or down against? price, another MA, anything else!??
Please advise how to explain points of line inflection in software, i.e. for the Expert Advisor, i.e. the Expert Advisor should distinguish between two options of МА position: МА rising and МА falling.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
How do I make
I want my EA to open an order only once a day.
If it opened an order, then closed it and switched off until the next day.
I guess I need to fetch the latest deal from the history... compare it with the date and if the order has already been closed that day, then disable the EA...
are you thinking in the right direction?
I can't really understand it, because I am new to mql.
I am also new to programming)) but I would do the following: At the beginning of special function start I would put a condition to check a new day and flag string Work=true; after opening an order I would put a flag that Expert Advisor does not work. (Work=false;) If the day is new, then the flag is removed - i.e. Expert Advisor works until the position is opened, etc.
Good afternoon, colleagues.
Please advise how to explain points of line inflection in software, i.e. to the expert, i.e. the expert has to distinguish between two options of МА position: МА rising, МА falling.
Inflection points or extremes? If the swing is rising, the penultimate bar should be lower than the last one. And vice versa.
Good afternoon, colleagues.
Please advise how to explain the inflection points of the line, i.e. the Expert Advisor has to distinguish between two scenarios of МА position: rising and falling MA.
it depends on what does it go up or down against? price, another MA, anything else!??
Good afternoon, colleagues.
Please advise how to explain points of line inflection in software, i.e. for the Expert Advisor, i.e. the Expert Advisor should distinguish between two options of МА position: МА rising and МА falling.
0 - current bar
1 - previous
see post above.
Ah, right! Thanks, for some reason I didn't think of it straight away...))
What I meant was this: it's a normal mask, only at inflection points it changes its colour. How to explain this to an expert?
Ma=iMa(Symbo()l, 0, 14, 0, 1, 0, 0);
Open = iOpen(Symbol(),0,0);
if (Ma > Open)
// machine falls down
if(Ma<Open)
//the sac grows
you can do it like this ......
Ma=iMa(Symbo()l, 0, 14, 0, 1, 0, 0);
Open = iOpen(Symbol(),0,0);
if (Ma > Open)
// machine falls down
if(Ma<Open)
//the mouse is growing
you can also ......
Thank you.