Analyse only new candle

 

There's any way to make my Indicator do the Calculation only when the candle closes?

My indicator makes calculations for every close value.

When I put it to the graphic it's so heavy that seems like the internet is ultra slow. Making calculations for every last price, as for code matter, the last price is index at close price.


Thanks.

 
Putting a close Array, and a CopyClose only from the last candle and make it calculate this array only would fix my problem?
 
iTime(_Symbol,PERIOD_CURRENT,bar)

You can sue iTime for that.

 

Anyone can help me to code

Statement : previous candle's close is higher than candle's high at HH:00

iClose(NULL,0,1)>iHigh(????)

Thank you

Reason: