Dear frends
 
im having problem with afl coding, Can you please help me
 
i want to get a pop up when buy / sell / or other predetermined 
condition triggers.

i am having problem with IF statements.
 
below mentioned is the code, kindly let me know what is the problem 
with it.
 
 
 
Regards
Umesh.
 
 //Pop UP Check /*
 
Buy = Cross( EMA( Close, 9 ), EMA( Close, 15 ) ); 
Sell = Cross( EMA( Close, 15 ), EMA( Close, 9 ) );
 
buy = ExRem( buy, sell );
sell = ExRem( sell, buy ); 
 

a=0;
 

if (buy)  // Normal Buy alert
{
    PopupWindow("Current time is: " + Now() + "\n \n" + "Buy call 
Triggered\n\n" + "TEST POP UP.....\n\n" + "Rsi is 20 ", "BuyAlert", 
10, -1, -1); 
}
 
if( sell ) // Risky Buy alert
{
    PopupWindow("Current time is: " + Now() + "\n \n" + "RISKY Buy 
call Triggered\n" + "Rsi is 20 Which is Highly Over Sold 
Level.", "BuyAlert", 20, -1, -1); 
}
 
if( rsi(9) > 70) // HIGH RISK Buy alert
{
    PopupWindow("Current time is: " + Now() + "\n \n" + "RSI is more 
than 70\n" + "Over bought levelLevel.", "General Alert", 10, -1, -1);
}
 
 

Reply via email to