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

RE: [amibroker] Re: Alert / Scan every XX minutes



PureBytes Links

Trading Reference Links

Please clarify one other point. Suppose I have the following alerts on 5 minute RT charts:

 
AlertIf( Cross(rs, BuyLine), "", "RS Buy", 10, 1 + 2 + 4 + 8 );
AlertIf( Cross( SellLine, rs), "", "RS Sell", 10, 1 + 2 + 4 + 8 );

Do these alerts fire based on tick data? In other words, as soon as there is a cross caused by the lastest tick, the alert should fire, even if the chart is 5 minute bars. It will have nothing to do with the Settings, Delays or Settings, Open, Close, Average etc. Is this right?

Thanks,

Rick
-----Original Message-----
From: Tomasz Janeczko [mailto:amibroker@x...]
Sent: Wednesday, July 03, 2002 3:55 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Alert / Scan every XX minutes


Rick,

Yes this will give you only one signal BUT... only if at one time (one scan) only ONE type of alert is generated per symbol.

The problem is that in your formula cover = buy so when buy alert appears you receive also cover alert.

So you should use:

AlertIf( Buy, "", "Buy / Cover Stock", 1 , 1 + 2 + 4 + 8);
AlertIf( Sell, "", "Sell / Short Stock", 2, 1 + 2 + 4 + 8 );

to avoid repeated signals. 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: Rick Parsons 
To: amibroker@xxxxxxxxxxxxxxx 
Cc: TJ 
Sent: Wednesday, July 03, 2002 5:35 PM
Subject: Alert / Scan every XX minutes


Tomasz,

Re: RT Alerts and Scan

Situation:

I have an indicator that triggers my Buy/Sell/Short/Cover signals.

Buy = Cross(rs, BuyLine);
Sell = Cross( SellLine, rs);
Short = Sell;
Cover = Buy;

I am using 15 minute bars. Delay = 0, Buy on Open, Sell on Open.

I set SCAN every 1 minutes.

Set #1:
AlertIf( Buy, "", "Buy Stock", 1 , 1 + 2 + 4 + 8);
AlertIf( Sell, "", "Sell Stock", 2, 1 + 2 + 4 + 8 );
AlertIf( Short, "", "Short Stock", 3, 1 + 2 + 4 + 8 );
AlertIf( Cover, "", "Cover Stock", 4, 1 + 2 + 4 + 8 );

Set #2:
AlertIf( Cross(rs, BuyLine), "", "RS Buy", 10, 1 + 2 + 4 + 8 );
AlertIf( Cross( SellLine, rs), "", "RS Sell", 10, 1 + 2 + 4 + 8 );
AlertIf( Cross( SellLine, rs), "", "RS Short", 10, 1 + 2 + 4 + 8 );
AlertIf( Cross(rs, BuyLine), "", "RS Cover", 10, 1 + 2 + 4 + 8 );

Questions:
1.. Re: Set #1 should only give an alert on the Open of a 15 minute bar, per my Settings, correct? 
2.. Re: Set #2 this should give an alert based on tick data. Whenever there is a cross, there should be an alert regardless of bar status. Correct? 
3.. Despite using 1 + 2 + 4 + 8 or blank (default) in the fifth parameter, I am still getting repeated alerts for same time and signal. Why?
As you can see in the screen shot below, IDPH is giving repeated alerts.

Thanks,
Rick
       

Yahoo! Groups Sponsor 
            

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


------=_NextPart_001_00FA_01C2280E.E9811800
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#fffcf0>
<DIV><SPAN class=420373516-10072002><FONT color=#000080 
size=2>Tomasz,</FONT></SPAN></DIV>
<DIV><SPAN class=420373516-10072002><FONT color=#000080 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=420373516-10072002><FONT color=#000080 size=2>Pleaseclarify 
one other point.&nbsp; Suppose I have the following alerts on 5 minute RT 
charts:</FONT></SPAN></DIV>
<DIV><SPAN class=420373516-10072002><FONT color=#000080 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=420373516-10072002><FONT color=#0000ff size=1>&nbsp;</FONT>
<DIV><FONT color=#000080 size=2>AlertIf( Cross(rs, BuyLine), "", "RS Buy", 10, 1 
+ 2 + 4 + 8 );</FONT><FONT size=1></DIV></FONT><FONT size=1>
<DIV><FONT color=#000080 size=2>AlertIf</FONT></FONT><FONT color=#000080 
size=2>( Cross( SellLine, rs), "", "RS Sell", 10, 1 + 2 + 4 + 8 );</FONT></DIV>
<DIV><FONT color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=1><SPAN class=420373516-10072002><FONT color=#000080 size=2>Do 
these alerts fire based on tick data?&nbsp; In other words, as soon as there is 
a cross caused by the lastest tick, the alert should fire, even if the chart is 
5 minute bars.&nbsp; It will have nothing to do with the Settings, Delays or 
Settings, Open, Close, Average etc.&nbsp; Is this 
right?</FONT></SPAN></FONT></DIV>
<DIV><FONT size=1><SPAN class=420373516-10072002><FONT color=#000080 
size=2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=1><SPAN class=420373516-10072002><FONT color=#000080 
size=2>Thanks,</FONT></SPAN></DIV></FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG><FONT face="Vladimir Script" color=#000080 
size=5>Rick</FONT></STRONG></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
size=2>-----Original Message-----<BR><B>From:</B> Tomasz Janeczko 
[mailto:amibroker@x...]<BR><B>Sent:</B> Wednesday, July 03, 2002 3:55 
PM<BR><B>To:</B> amibroker@xxxxxxxxxxxxxxx<BR><B>Subject:</B> [amibroker]Re: 
Alert / Scan every XX minutes<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Rick,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Yes this will give you only one signal BUT... 
only if at one time (one scan) only ONE type of alert is generated per 
symbol.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The problem is that in your formula cover = buy 
so when buy alert appears you receive also cover alert.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>So you should use:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT color=#000080 size=2>AlertIf( <B>Buy</B>, "", "Buy / CoverStock", 
1 , 1 + 2 + 4 + 8);</FONT></DIV><FONT size=1>
<DIV><FONT color=#000080 size=2>AlertIf</FONT></FONT><FONT color=#000080 
size=2>( <B>Sell</B>, "", "Sell / Short Stock", 2, 1 + 2 + 4 + 8 
);</FONT></DIV><FONT color=#000080 size=2></FONT><FONT color=#000080 
size=2></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=2>to avoid repeated signals.</FONT> 
<DIV><BR>Best regards,<BR>Tomasz Janeczko<BR>amibroker.com</DIV></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV 
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
<A title=RickParsons@xxxx 
href="mailto:RickParsons@xxxx";>Rick Parsons</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=amibroker@xxxxxxxxxxxx 
href="mailto:amibroker@xxxxxxxxxxxxxxx";>amibroker@xxxxxxxxxxxxxxx</A></DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=TJ@xxxx 
href="mailto:TJ@xxxx";>TJ</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, July 03, 2002 5:35 
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Alert / Scan every XX 
minutes</DIV>
<DIV><BR></DIV>
<DIV><FONT color=#000080 size=2><SPAN 
class=750223513-03072002>Tomasz,</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2><SPAN 
class=750223513-03072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=2><SPAN class=750223513-03072002>Re:&nbsp; RT 
Alerts and Scan</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2><SPAN 
class=750223513-03072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=2><SPAN 
class=750223513-03072002>Situation:</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2><SPAN 
class=750223513-03072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=2><SPAN class=750223513-03072002>I have an 
indicator that triggers my Buy/Sell/Short/Cover signals.</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2><SPAN class=750223513-03072002><FONT 
size=1><FONT size=2></FONT></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=2><SPAN class=750223513-03072002><FONT 
size=1><FONT size=2>Buy = </FONT></FONT><FONT color=#0000ff>Cross</FONT>(rs, 
BuyLine);</DIV>
<DIV>Sell = <FONT color=#0000ff>Cross</FONT><FONT size=1><FONT size=2>( 
SellLine, rs);</FONT></FONT></DIV>
<DIV><FONT size=1><FONT size=2>Short = Sell;</FONT></FONT></DIV>
<DIV><FONT size=1><FONT size=2>Cover = Buy;</FONT></DIV>
<DIV><FONT size=2></FONT></FONT></SPAN></FONT><FONT color=#000080 
size=2><SPAN class=750223513-03072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=2><SPAN class=750223513-03072002>I am using 15 
minute bars.&nbsp; Delay = 0, Buy on Open, Sell on Open.</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2><SPAN 
class=750223513-03072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=2><SPAN class=750223513-03072002>I 
set&nbsp;SCAN every 1 minutes.</SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2><SPAN 
class=750223513-03072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=2><SPAN class=750223513-03072002><FONT 
color=#0000ff size=1><FONT color=#000080 size=2>Set #1:</FONT></DIV>
<DIV><FONT color=#000080 size=2>AlertIf</FONT></FONT>( <B>Buy</B>, "", "Buy 
Stock", 1 , 1 + 2 + 4 + 8<FONT size=1><FONT 
size=2>);</FONT></DIV></FONT><FONT color=#0000ff size=1>
<DIV><FONT color=#000080 size=2>AlertIf</FONT></FONT>( <B>Sell</B>,"", 
"Sell Stock", 2, 1 + 2 + 4 + 8<FONT size=1><FONT size=2> 
);</FONT></DIV></FONT><FONT color=#0000ff size=1>
<DIV><FONT color=#000080 size=2>AlertIf</FONT></FONT>( <B>Short</B>, "", 
"Short Stock", 3, 1 + 2 + 4 + 8<FONT size=1><FONT size=2> 
);</FONT></DIV></FONT><FONT color=#0000ff size=1>
<DIV><FONT color=#000080 size=2>AlertIf</FONT></FONT>( <B>Cover</B>, "", 
"Cover Stock", 4, 1 + 2 + 4 + 8<FONT size=1><FONT size=2> 
);</FONT></FONT></DIV>
<DIV><FONT size=1><FONT size=2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=1><SPAN class=750223513-03072002><FONT size=2>Set 
#2:</FONT></SPAN></DIV></FONT><FONT color=#0000ff size=1>
<DIV><FONT color=#000080 size=2>AlertIf</FONT></FONT>( Cross(rs, BuyLine), 
"", "RS Buy", 10, 1 + 2 + 4 + 8<FONT size=1><FONT size=2> 
);</FONT></DIV></FONT><FONT color=#0000ff size=1>
<DIV><FONT color=#000080 size=2>AlertIf</FONT></FONT>( Cross( SellLine, rs), 
"", "RS Sell", 10, 1 + 2 + 4 + 8<FONT size=1><FONT size=2> 
);</FONT></DIV></FONT><FONT color=#0000ff size=1>
<DIV><FONT color=#000080 size=2>AlertIf</FONT></FONT>( Cross( SellLine, rs), 
"", "RS Short", 10, 1 + 2 + 4 + 8<FONT size=1><FONT size=2> 
);</FONT></DIV></FONT><FONT color=#0000ff size=1>
<DIV><FONT color=#000080 size=2>AlertIf</FONT></FONT>( Cross(rs, BuyLine), 
"", "RS Cover", 10, 1 + 2 + 4 + 8<FONT size=1><FONT size=2> 
);</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=750223513-03072002>Questions:</SPAN></DIV>
<OL>
<LI><FONT size=+0><SPAN class=750223513-03072002>Re:&nbsp; Set #1should 
only give an alert on the Open of a 15 minute bar, per my 
Settings,&nbsp;correct?</SPAN></FONT> 
<LI><FONT size=+0><SPAN class=750223513-03072002>Re:&nbsp; Set 
#2&nbsp;this should give an alert based on tick data.&nbsp; Whenever there 
is a cross, there should be an alert regardless of bar status.&nbsp; 
Correct?</SPAN></FONT> 
<LI><FONT size=+0><SPAN class=750223513-03072002>Despite using 1 + 2 + 4 + 
8 or blank (default)&nbsp;in the fifth parameter, I am still getting 
repeated alerts for same time and signal.&nbsp; Why?</SPAN></FONT></LI></OL>
<DIV><FONT size=+0><SPAN class=750223513-03072002>As you can see inthe 
screen shot below, IDPH is giving repeated alerts.</SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=750223513-03072002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=+0><SPAN 
class=750223513-03072002>Thanks,</SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=750223513-03072002>Rick</SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=750223513-03072002>&nbsp;&nbsp;&nbsp;<IMG 
alt="" hspace=0 src="cid:420373516@xxxx"; align=baseline 
border=0></SPAN></FONT></SPAN></FONT></DIV></BLOCKQUOTE><BR><BR><TT>Your 
use of Yahoo! Groups is subject to the <A 
href="http://docs.yahoo.com/info/terms/";>Yahoo! Terms of Service</A>.</TT> 
<BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_001_00FA_01C2280E.E9811800--

Attachment: Description: ""