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
Yep, 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
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?
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.
Thanks much in advance.
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 )
I think it's okay.
The indicator works properly now. Thanks !
Glad that it is solved Happy trading
Found a new issue with the histo version of the indicator today. The indicator stopped working since the re-open of markets on Monday. Please see attached pic. In the 2nd indicator window, the red circled is blank. However, the non-histo version still works, as you can see in the 1st indicator window. I checked multiple pairs where I inserted this histo indicator and the results are the same. Then I opened a new window and inserted the indicator and it works properly, just that I lost all historical data from this indicator.
As this indicator only works when there's live data feed, and all indicator data disappears when you close the chart, I opened multiple windows and keep this indicator on and never close those charts and I ran this MT4 platform on a VPS 24 x 7. So over time it might take a lot of memory. Can this be a cause of the problem ? But, then why does the non-histo version still work properly ?
I changed color for the histo version from orange to brown.