Found one issue with the histo version indicator. In the attached screenshot, at the three circled bars, the line chart version shows that the green line is above the orange line. And the value in data window confirms that. However, in the histo version, the bars show orange instead of green. Can you please fix this ?
Thanks,
pooh
pooh
Found one issue in the code that could cause that. It is corrected now. Please test it and let me know
Another one.. when I used attached indicator in an EA with H4 setting on a 15-minute chart, the trades are printed after 16+ bars after colorchange. Is that normally the case? I would like to see the buy/sell trades happen right after color change (with default shift). Is it possible?
Another one.. when I used attached indicator in an EA with H4 setting on a 15-minute chart, the trades are printed after 16+ bars after colorchange. Is that normally the case? I would like to see the buy/sell trades happen right after color change (with default shift). Is it possible?
Thanks much.
Paul
Paul
It depends on the tested bar. If current bar is tested then it can happen any time (since the current bar is still not closed) but if some closed bar is tested then it can happen with that delay (if you are testing second closed bar than that delay can be those 16+ bars - remember that one 4 hour bar equals 16 15 minute bars).
It does not depend on the indicator. It depends on the EA when will the signal be received
I understood. I know when I put the Ea on shift=1; it happens. But when I put shift=0 it places around 16 trades... (because the current H4 bar is still not closed -correct?)
By the way, can you please give me the buy/sell code for ZigZag levels I post earlier? I know this indicator repaints -but still require the code for buffer 0 and 1.
I just want to use it in combination with other indicator say; pricechannel. On a higher settings and while zigzag levels is painted above or below; I will use/test pricechannel as the buy/sell signal.
I understood. I know when I put the Ea on shift=1; it happens. But when I put shift=0 it places around 16 trades... (because the current H4 bar is still not closed -correct?)
By the way, can you please give me the buy/sell code for ZigZag levels I post earlier? I know this indicator repaints -but still require the code for buffer 0 and 1.
I just want to use it in combination with other indicator say; pricechannel. On a higher settings and while zigzag levels is painted above or below; I will use/test pricechannel as the buy/sell signal.
Thanks much in advance.
Paul
Paul
What would be the logic of the buy sell in the case of the zigzag (since that is a zigzag after all)?
If you wish to test if an upper or lover zigzag level is present at all, all you need to check is if a buffer values is equal to empty value or not (if it is different from EMPTY_VALUE then there is a valid level for that buffer )
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.
Hi Mladen,
Found one issue with the histo version indicator. In the attached screenshot, at the three circled bars, the line chart version shows that the green line is above the orange line. And the value in data window confirms that. However, in the histo version, the bars show orange instead of green. Can you please fix this ?
Thanks,
poohpooh
Found one issue in the code that could cause that. It is corrected now. Please test it and let me know
pooh Found one issue in the code that could cause that. It is corrected now. Please test it and let me know
Hi Mladen,
Thanks. Will test it on Monday and let you know.
pooh
Hi, mladen,
Can you please check if there's a problem with attached indicator? It slows down my computer when backtesting certain ea.
Thanks much in advance
Hi, mladen,
Can you please check if there's a problem with attached indicator? It slows down my computer when backtesting certain ea.
Thanks much in advanceYep, it will do that.
The thing is that ZigZag is calculated on the whole history and it is "CPU hungry" because of that. That is how metatrader made the zigzag indicator
Hi mladen,
Another one.. when I used attached indicator in an EA with H4 setting on a 15-minute chart, the trades are printed after 16+ bars after colorchange. Is that normally the case? I would like to see the buy/sell trades happen right after color change (with default shift). Is it possible?
Thanks much.
Paul
Hi mladen,
Another one.. when I used attached indicator in an EA with H4 setting on a 15-minute chart, the trades are printed after 16+ bars after colorchange. Is that normally the case? I would like to see the buy/sell trades happen right after color change (with default shift). Is it possible?
Thanks much.
PaulPaul
It depends on the tested bar. If current bar is tested then it can happen any time (since the current bar is still not closed) but if some closed bar is tested then it can happen with that delay (if you are testing second closed bar than that delay can be those 16+ bars - remember that one 4 hour bar equals 16 15 minute bars).
It does not depend on the indicator. It depends on the EA when will the signal be received
Thanks, mladen.
I understood. I know when I put the Ea on shift=1; it happens. But when I put shift=0 it places around 16 trades... (because the current H4 bar is still not closed -correct?)
By the way, can you please give me the buy/sell code for ZigZag levels I post earlier? I know this indicator repaints -but still require the code for buffer 0 and 1.
I just want to use it in combination with other indicator say; pricechannel. On a higher settings and while zigzag levels is painted above or below; I will use/test pricechannel as the buy/sell signal.
Thanks much in advance.
Paul
Thanks, mladen.
I understood. I know when I put the Ea on shift=1; it happens. But when I put shift=0 it places around 16 trades... (because the current H4 bar is still not closed -correct?)
By the way, can you please give me the buy/sell code for ZigZag levels I post earlier? I know this indicator repaints -but still require the code for buffer 0 and 1.
I just want to use it in combination with other indicator say; pricechannel. On a higher settings and while zigzag levels is painted above or below; I will use/test pricechannel as the buy/sell signal.
Thanks much in advance.
PaulPaul
What would be the logic of the buy sell in the case of the zigzag (since that is a zigzag after all)?
If you wish to test if an upper or lover zigzag level is present at all, all you need to check is if a buffer values is equal to empty value or not (if it is different from EMPTY_VALUE then there is a valid level for that buffer )
Thanks, mladen.
I think it's okay.
Regards,
Paul
pooh Found one issue in the code that could cause that. It is corrected now. Please test it and let me know
Hi Mladen,
The indicator works properly now. Thanks !
pooh