How to set alert for 3 consecutive candles and not just one - page 2

 
This is exactly what I'm looking for as well.... can anyone help?
 
brookshire:
This is exactly what I'm looking for as well.... can anyone help?

Hi BS

If you mean you only want to alert once per candle use this


set alertcount to 1 when alert is triggered


put this code around the alert.


if ((timeold!=Time[0] && alertcount>0){

timeold=Time[0];

alertcount++;

if(alertcount>2){alertcount =0;}

Put Alert here >>>>

}


I think logic is right but I'm sure you get the idea.

 
Ruptor:

Hi BS

If you mean you only want to alert once per candle use this


set alertcount to 1 when alert is triggered


put this code around the alert.


if ((timeold!=Time[0] && alertcount>0){

timeold=Time[0];

alertcount++;

if(alertcount>2){alertcount =0;}

Put Alert here >>>>

}


I think logic is right but I'm sure you get the idea.

Actually,


What I want is exactly what the OP wants. See, I'd like to have it so that per my strategy rules... when each pair has at least 3 closed heiken ashi candles, an email alert is sent.

 

Would anyone be able to shed some light on this?



Thanks!

Reason: