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

[amibroker] Follow up Alertif() questions



PureBytes Links

Trading Reference Links




<SPAN 
class=709435417-04022003>All,
<SPAN 
class=709435417-04022003> 
For any 
one following the thread I wanted to report that with Tomasz's help I 
believe I was able to trouble shoot the problem I has having with incorrect 
signals from Alertif().
<SPAN 
class=709435417-04022003> 
I have tested 
various configurations during this mornings session and have found that the 
problem appears to be linked to  the use of extend right or left in the 
trend line studies. Of course this also relates to the Horizontal line plot as 
well. Once I turned off the extensions I believe I am now getting the alert 
signals when and where they should be. The following code allows you to name 2 
study lines and receive alerts on crosses (up or Down) of either of the 
lines.  The code......
<SPAN 
class=709435417-04022003> 
 <FONT 
face=Arial>
Buy=Cross<FONT 
color=#282828>(C, 
Study(<FONT 
color=#ff00ff>"s1",<FONT 
color=#ff00ff>1));<FONT 
color=#000000>
Sell=<FONT 
color=#0000ff>Cross(<FONT 
color=#0000ff>Study(<FONT 
color=#ff00ff>"s1",<FONT 
color=#ff00ff>1), <FONT 
color=#000000>C<FONT face=Arial 
size=2>);
Buy1=Cross(C, 
Study("s2",1<FONT color=#000000 
face=Arial>));<FONT 
color=#000000>
Sell1=Cross(Study("s2",1), C<FONT 
color=#282828>);
 <FONT 
color=#000000>
AlertIf(Buy, "SOUND 
c:\\windows\\media\ding.wav", WriteVal(C,3.2)+ " 
Violation", 1,1+2+4+8,1 
);<FONT 
face=Arial>
AlertIf(Buy1, "SOUND c:\\windows\\media\ding.wav", 
WriteVal(C,3.2)+ " Violation", 
1,1+2+4+8,1 
);
AlertIf(Sell, "SOUND 
c:\\windows\\media\ding.wav",WriteVal(C,3.2)+ " 
Violation", 2,1+2+4+8,1<FONT 
color=#282828> );<FONT 
color=#0000ff>
AlertIf(Sell1, "SOUND 
c:\\windows\\media\ding.wav", WriteVal(C,3.2)+ " Violation", <SPAN 
class=709435417-04022003>2,1+2+4+8,1<FONT 
color=#282828> 
);
 
Jayson 

 






Yahoo! Groups Sponsor


  ADVERTISEMENT









Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.