how to remove 500 times plotting error

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.

http://www.amibroker.org/userkb/2007/04/20/plotting-trade-zigzag-lines/

if we look at this web, the solution is only for Plot(), we try for PlotOHLC() there is an error or it hasn't been resolved

This bit at top right of the web page might be a reason:
"ATTENTION: THIS SITE IS OBSOLETE. FOR CURRENT INFORMATION USE AmiBroker Knowledge Base "

PlotOHLC is NO DIFFERENT. You just do FOUR arrays, not one.