PureBytes Links
Trading Reference Links
|
This is my first attempt to use the Cum() function. The
number associated with the word PullBack represents the amount of RSI(14)
pullback below various Guppy moving averages of RSI(14). I have
attempted to use Cum() to see which of the PullBack levels are
responsible for the most buy arrows. It seems to be working correctly, but
I would appreciate hearing about an sinpler ways to do thisif there are
any. Ron D
<FONT
size=3>=========================================================================
Pullback=PullBack30 OR PullBack35 OR PullBack40 OR
PullBack45 OR PullBack50 OR PullBack60 OR PullBack75
OR PullBack100 OR PullBack125 OR PullBack150 OR
PullBack175 OR PullBack200 OR PullBack225 OR PullBack250
OR PullBack275 OR PullBack300;
Pullback1=Ref<FONT
size=4>(Pullback,-1);
obvSlowCross=Cross<FONT
size=4>(sqzOBV3to70,EMA<FONT
size=4>(sqzOBV3to70,2));
obvFastCross=Cross<FONT
size=4>(sqzOBV3to15,EMA<FONT
size=4>(sqzOBV3to15,2));
obvBothCrosses=OBVslowcross AND OBVfastcross;
rsicross=Cross<FONT
size=4>(R14,EMA<FONT
size=4>(R14,2));
kdcross=Cross<FONT
size=4>(StochK<FONT
size=4>(14),<FONT
color=#0000ff size=4>StochD(<FONT color=#ff00ff
size=4>14));
allcross=obvBothCrosses AND rsicross AND kdcross;
Filter=MA<FONT
size=4>(V,50<FONT
size=4>)>100000
AND C<100
AND allcross AND Pullback1;
Buy=Filter;
AddColumn(C,<FONT color=#ff00ff
size=4>"close ",<FONT color=#ff00ff
size=4>1.2);
AddColumn(V,"Vol
",1.0<FONT
size=4>);
AddColumn(<FONT color=#0000ff
size=4>MA(V,<FONT color=#ff00ff
size=4>50),<FONT color=#ff00ff
size=4>"MAvol",<FONT color=#ff00ff
size=4>1.0);
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(allcross,<FONT color=#0000ff
size=4>StochK(<FONT color=#ff00ff
size=4>14),1<FONT
size=4>),"K",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>300,<FONT
face="Bookman Old Style" color=#0000ff size=4>Cum<FONT
face="Bookman Old Style" size=4>(PullBack300),<FONT
face="Bookman Old Style" color=#ff00ff size=4>1<FONT
face="Bookman Old Style" size=4>),<FONT face="Bookman Old Style"
color=#ff00ff size=4>"300"<FONT
size=4>,1.0<FONT
size=4>);
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>275,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>275),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>275",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>200,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>250),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>250",<FONT
color=#ff00ff size=4>1.0<FONT face="Bookman Old Style"
size=4>);
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>225,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>225),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>225",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>200,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>200),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>200",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>175,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>175),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>175",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>150,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>150),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>150",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>125,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>125),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>125",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>100,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>100),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>100",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>75,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>75),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>75",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>60,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>60),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>60",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>50,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>50),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>50",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>45,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>45),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>45",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>40,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>40),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>40",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>35,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>35),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>35",<FONT
color=#ff00ff size=4>1.0);<FONT color=#0000ff
size=4>
AddColumn(<FONT color=#0000ff
size=4>ValueWhen(PullBack<FONT
face="Bookman Old Style" size=4>30,<FONT
color=#0000ff size=4>Cum(PullBack<FONT
face="Bookman Old Style" size=4>30),<FONT
color=#ff00ff size=4>1),<FONT color=#ff00ff
size=4>"<FONT face="Bookman Old Style" color=#ff00ff
size=4>30",<FONT
color=#ff00ff size=4>1.0);
---Outgoing mail is certified Virus Free.Checked by
AVG anti-virus system (<A
href="">http://www.grisoft.com).Version: 6.0.593 /
Virus Database: 376 - Release Date:
2/22/2004
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
Yahoo! Groups Sponsor
ADVERTISEMENT
Click Here
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|