I've been trying to find a way to add alerts to this indicator for EITHER green or red line to pass a certain level value i.e. 8 or 23 or a cross of both red n' green.
Problem is I don't know what to refer the alert paramter to, having trouble nailing down what exactly I should refer the alert to because there is a lot of code in this indicator.
Does anyone mind pointing out exactly which part of this code actually gives the value for the green/red lines?
Trying to add that piece of alert code. May not work in this instance. Any tips?
Problem is I don't know what to refer the alert paramter to, having trouble nailing down what exactly I should refer the alert to because there is a lot of code in this indicator.
Does anyone mind pointing out exactly which part of this code actually gives the value for the green/red lines?
Inserted Code
if ( timenow != Time[0] && AlertOn ) { if ( Signal[0] != EMPTY_VALUE ) { Alert( "Buy Signal ", Symbol() ); timenow = Time[0]; } if ( Signal[0] != EMPTY_VALUE ) { Alert ( "Sell Signal ", Symbol() ); timenow = Time[0]; }
Trying to add that piece of alert code. May not work in this instance. Any tips?
Attached File(s)
UT_FAST.mq4
26 KB
|
411 downloads