PureBytes Links
Trading Reference Links
|
<FONT face=Arial color=#0000ff
size=2>Possibly you need to add "ExRem" statements?
<BLOCKQUOTE
>
<FONT face="Times New Roman"
size=2>-----Original Message-----From: Jayson
[mailto:jcasavant@xxxxxxxxxxxx]Sent: Monday, April 14, 2003 1:57
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker]
Alertif
<SPAN
class=463425217-14042003>Thomas,
<SPAN
class=463425217-14042003>experiment with your flags. First try eliminating
them all together which results in the default settings.
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: Thomas Schneider
[mailto:TS-Schneider@xxxxxx]Sent: Monday, April 14, 2003 1:41
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]
AlertifHi, following problem.I have an indicator
e.g the DMI (as listed bellow). NOw if the indicator is indicating a buy
or sell, I want to get an email. But I got a lot of emails. If I use the 4
flag I get more as if I use the 8 flag. I use it in a 1 hour chart. With
the 8 flag I get an email every minute. What can I do that I only receive
one signal and email?//Dynamic Momentum Index Tushar Chande Translated
to AFL by Jayson Casavant//Cmo5 formulaCMO5_1=Sum( IIf( C >
Ref( C, -1 ) , ( C - Ref( C ,-1 ) ) ,0 ) ,5 ) ;CMO5_2=Sum( IIf( C <
Ref( C ,-1 ) , ( Ref( C ,-1 ) - C ) ,0 ) ,5 );CMO5=DEMA(100 * ((
CMO5_1 -CMO5_2) /( CMO5_1+CMO5_2)),3);//Cmo10
formulaCMO10_1=Sum( IIf( C > Ref( C, -1 ) , ( C - Ref( C ,-1 ) ) ,0 )
,10 ) ;CMO10_2=Sum( IIf( C < Ref( C ,-1 ) , ( Ref( C ,-1 ) - C )
,0 ) ,10 );CMO10=DEMA(100 * (( CMO10_1 -CMO10_2) /(
CMO10_1+CMO10_2)),3);//Cmo20 formulaCMO20_1=Sum( IIf( C > Ref(
C, -1 ) , ( C - Ref( C ,-1 ) ) ,0 ) ,20 ) ;CMO20_2=Sum( IIf( C < Ref( C
,-1 ) , ( Ref( C ,-1 ) - C ) ,0 ) ,20 );CMO20=DEMA(100 * (( CMO20_1
-CMO20_2) /( CMO20_1+CMO20_2)),3);// dmi
formuladmi=((StDev(C,5)* CMO5)+(StDev(C,10)*
CMO10)+(StDev(C,20)*CMO20))/(StDev(C,5)+StDev(C,10)+StDev(C,20));pds=Param("Smoothing",3,1,10,1);pds1=Param("Trigger
Line",5,1,10,1);Plot(EMA(dmi,pds),"Dynamic Momentum
Index",colorWhite,1);Plot(MA(dmi,pds1),"trigger",colorYellow,1);Buy=Cross(EMA(dmi,pds),MA(dmi,pds1));Sell=Cross(MA(dmi,pds1),EMA(dmi,pds));PlotShapes(IIf(Buy,shapeUpArrow,shapeNone)
,colorBrightGreen);PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed);AlertIf
(Buy, "email", "DMI-BUY/"+WriteVal(C,4.2), type = 1, flags=8);AlertIf
(Sell, "email", "DMI-Sell/"+WriteVal(C,4.2), type = 2,flags=8);
Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend
SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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.
|