i want to plot my conditions on a chart,but when the data bar exceeds more than 200 or 300 it shows error “Your function is calling more than 500 times”.
how i remove this issue…??
Your formula is written wrong if you call Plot that hundreds of times. Plot is for drawing entire chart at once, not single “conditions”. You should rewrite the formula. In the Users’ KB there is example how NOT to code (Plot() abuse) and how to rewrite the formula properly http://www.amibroker.org/userkb/2007/04/20/plotting-trade-zigzag-lines/
In the rewritten code there is single Plot() call that draws everything at once.