Hi,
I was trying to work with the ZigZag indicator (myZZ=ZigZag[10](close)) using it as a filter for backtesting a strategy however when i executed my code i received the following Message: “your trading system uses obsolete instructions which are not supported by the bactesting engine (ZigZag)”???
Is there a new instruction for this or it was just simply removed from Backtesting?
I recoded a similar zigzag indicator to be used in automatic trading, it is part of the paid course here: Formation programmation avancée avec ProRealTime (soon available in English, within 1 or 2 weeks). So I can’t post the code here, sorry.
Bear in mind that ZigZag is only a way to find peaks and troughs like many others, like the ones described in the topic Roberto has pointed you.