Analyse only new candle

To add comments, please log in or register
Lucas Tavares
1611
Lucas Tavares  

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.

Lucas Tavares
1611
Lucas Tavares  
Putting a close Array, and a CopyClose only from the last candle and make it calculate this array only would fix my problem?
Marco vd Heijden
Moderator
12470
Marco vd Heijden  
iTime(_Symbol,PERIOD_CURRENT,bar)

You can sue iTime for that.

freddyTM
7
freddyTM  

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

To add comments, please log in or register