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

Re: Alert / Scan every XX minutes



PureBytes Links

Trading Reference Links

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 appearsyou 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. Wheneverthere 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
     

------=_NextPart_001_00F1_01C222DC.47FB5B80
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 5.50.4134.100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#fffcf0>
<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 / Cover Stock", 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@xxxxxxxxxx 
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 amusing 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 #1 should 
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 in the 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:00ef01c222cb$8461c2a0$0100007f@xxxx"; 
align=baseline 
border=0></SPAN></FONT></SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_001_00F1_01C222DC.47FB5B80--

Attachment: Description: ""