PureBytes Links
Trading Reference Links
|
Hello
I have a RT Market Direction Indicator which plots in a real time
window, but won't give me intra day results when I explore using AA.
Here is my code:
*******************
_SECTION_BEGIN("Market Direction Indicator");
EnableTextOutput(False);
nuday = Day() != Ref(Day(),-1);
nuopen = ValueWhen(nuday ,O);
nuclose = ValueWhen(nuday ,C);
DDF = (nuopen + nuclose)/2;
NoUpDays = Sum(Avg >= DDF, BarsSince(nuday));
NoDownDays = Sum(Avg < DDF, BarsSince(nuday))*-1;
netdays = NoUpDays + NoDownDays;
netcolor = IIf(netdays >= 0,colorWhite,colorYellow);
Plot(netdays,"net",netcolor,1|styleThick);
Plot(NoDownDays,"Dn",colorRed,styleHistogram
|styleThick|styleNoLabel);
Plot
(NoUpDays,"Up",colorLightBlue,styleHistogram|styleThick|styleNoLabel);
Title = "Market Direction Indicator \\c05Up " + WriteVal
(NoUpDays,2.0) +
" \\c04Dn "+WriteVal(NoDownDays,2.0) + " \\c42Net "+ WriteVal
(NoUpDays + NoDownDays,2.0);
Filter = 1;
AddColumn(netdays,"net MI",2.0);
_SECTION_END();
*****************
Yet when I run an Exploration in AA, all of my stocks show up in the
list but all I get is zeros regardless of what I set the "Range"
to.
Is there a problem with the code for AA?
Is there some set-up I haven't done?
Rick
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h6s9n41/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123004220/A=2894350/R=0/SIG=10tj5mr8v/*http://www.globalgiving.com">Make a difference. Find and fund world-changing projects at GlobalGiving</a>.</font>
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
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:
http://docs.yahoo.com/info/terms/
|