[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Alertif Frustration



PureBytes Links

Trading Reference Links


I'm trying to 
implement the AlertIf function and as you will see I "don't get 
it"!
<SPAN 
class=164260019-25072002> 
Please consider the 
following formula:
<SPAN 
class=164260019-25072002> 

StochRsi=<FONT 
face="Courier New">EMA((<FONT 
color=#0000ff>RSI(8)-<FONT 
color=#0000ff>LLV(RSI(<FONT 
color=#ff00ff>8),8))/(<FONT 
color=#0000ff>HHV(RSI(<FONT 
color=#ff00ff>8),8)-<FONT 
color=#0000ff>LLV(RSI(<FONT 
color=#ff00ff>8),8)),<FONT 
color=#ff00ff>3)*100<FONT 
face="Courier New">; 
tmpMA = <FONT 
color=#ff00ff>21; // 
Optimize("MA",21,5,40,1);

Buy=<FONT 
face="Courier New">Cross(<FONT 
color=#ff00ff>17,StochRsi)AND Ref(<FONT 
color=#0000ff>MA(C,tmpMA),-1) < 
MA<FONT 
face="Courier New">(C,tmpMA);
Sell<FONT 
face="Courier New">=<FONT 
color=#0000ff>Cross(StochRsi,83<FONT 
face="Courier New">);
Short<FONT 
face="Courier New">=<FONT 
color=#0000ff>Cross(StochRsi,83) AND 
Ref(<FONT 
color=#0000ff>MA(C,tmpMA),-1) > 
MA(C,tmpMA); 

Cover<FONT 
face="Courier New">=<FONT 
color=#0000ff>Cross(17,StochRsi);
tmpDaysBack = <SPAN 
class=164260019-25072002>1;
AlertIf( 
Buy, "", "Buy 
Alert", 1, 3, 
tmpDaysBack );
AlertIf( 
Sell, "", "Sell 
Alert", 2, 3, 
tmpDaysBack );
AlertIf( 
Short, "", "Short 
Alert", 3, 3, 
tmpDaysBack );
AlertIf( 
Cover, "", "Cover 
Alert", 4, 3, 
tmpDaysBack );
The 
formula produced a Cover arrow (although invisible) for 7/24/2002.  The 
>From dates are 3/1/2000 - 7/25/2002.  I'm running the formula in the AA 
window. What am I supposed to be seeing and where?  Is it supposed to be a 
message box with the Text in it? I've tried all kinds of tmpDaysBack settings 
from 0 to 7.  
I'm 
stumped!
<FONT 
face=Arial>d