Indicator signal on the next bar

 

Does anyone can help me with a code that allows me to get a signal from an indicator just when the new bar opens?

This way I can make sure the signals change on some indicators does not disappear...


If you provide me some sample, I will try to include it on the indicators I want


Regards


Paulo

 
batalhadematos:

Does anyone can help me with a code that allows me to get a signal from an indicator just when the new bar opens?

This way I can make sure the signals change on some indicators does not disappear...


If you provide me some sample, I will try to include it on the indicators I want


Regards


Paulo

if(Time[0]==TimeCurrent()){

//new bar opened


}