Aleksei Stepanenko: In the Expert Advisor, the first lines in
After these lines, further code will be executed once per candle. At the moment of its formation.
You are calling this indicator from the EA, as I understand it?
Well, actually, I insert this indicator in another indicator that sends the signal to another program. That is, there is no Expert Advisor. That is, it should be inserted somewhere in the indicator itself, but how?
Aleksei Stepanenko: And what program opens the deal? It is the Expert Advisor. Isn't it?
Ah, well, maybe... But then things seem to get a lot more complicated... There's no way to fit it into this code, is there? And there's no code in the second indicator code either.
By the way, the indicator still draws a lot of arrows, but when I reload the chart, only some of them remain. :( As if the indicator is saving itself on the history, like look how I trade well, but in real time it is completely different. :(
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.
OnTick()After these lines, further code will be executed once per candle. At the moment of its formation.
You call this indicator from the EA, as I understand it?
In the Expert Advisor, the first lines in
After these lines, further code will be executed once per candle. At the moment of its formation.
You are calling this indicator from the EA, as I understand it?
And what program opens the deal? It is the Expert Advisor. Isn't it?
Ah, well, maybe... But then things seem to get a lot more complicated... There's no way to fit it into this code, is there? And there's no code in the second indicator code either.
OnTick()How the hell does that even work...:)))))By the way, the indicator still draws a lot of arrows as well,
Yes? Hmm, I'll have a look at it later.
You can try another way, where you call this indicator via iCustom, put 1 at the end of this function instead of 0 too.
You mean like this?
Like this?
Yes? Hmm, I'll have a look at it later.
Maybe it's that message. Shouldn't we do what it says?
https://www.mql5.com/ru/forum/160587/page223#comment_19618305
Anyway, thanks so much for fiddling with us here... :)))
Attaching the files for a better understanding of the situation.
Here's the working code:
Note that the arrow is drawn backwards BufferDn[i+1]=... This is unfortunate.