PureBytes Links
Trading Reference Links
|
Hello,
It is easy - no need to call SetBarsRequired - just
call SelectedValue on your array.
MyCustomArray =
EMA(C,3); NumberFromMyCustomIndicator = SelectedValue( MyCustomArray
); Title = "NumberFromMyCustomIndicator
="+NumToStr(NumberFromMyCustomIndicator ,1.2);
<FONT face=Arial
size=2>Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Herman van den
Bergen
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">AmiBroker YahooGroups
Sent: Thursday, July 22, 2004 9:23
PM
Subject: [amibroker] Need help with
SetBarsRequired...
Sorry to raise
this topic once more...but could some kind soul please turn ON QuickAFL and
run the example code below in an Indicator by
pressing APPLY? <SPAN
class=500051718-22072004>In the AB Status bar it says it retrieved 89815 bars
(RT data), <SPAN
class=500051718-22072004>Using DebugView,
w<SPAN
class=500051718-22072004>ith QuickAFL Enabled,
pressing Apply gives me these numbers:
<SPAN
class=500051718-22072004>
<SPAN
class=500051718-22072004>[1704] #
BarNum=75,988 BarCount=75989[1704] # BarNum=75,918
BarCount=75989[1704] # BarNum=75,918
BarCount=483<SPAN
class=500051718-22072004>
It appears that the BarCount returned
by SelectedValue(BarIndex()) during
the first the two passes defaults to normal count even though QuickAFL is
enabled, this<SPAN
class=500051718-22072004> triggers an error msg. C<SPAN
class=500051718-22072004>an somebody please explain how i can run this
code with QuickAFL() On and SetBarsRequired()?<SPAN
class=500051718-22072004> I know that i can program around the problem
but that doesn't help me in my real application.
<SPAN
class=500051718-22072004><FONT
size=2>
<FONT face=Arial
size=2>Your help will be much appreciated!
<FONT face=Arial
size=2>herman.
<SPAN
class=500051718-22072004>
SetBarsRequired( 100,10);
MyCustomArray = EMA(C,3); BarNum
= SelectedValue(BarIndex()); // i want to read the value at the
cursorNumberFromMyCustomIndicator = MyCustomArray [Barnum]; Title
= "NumberFromMyCustomIndicator ="+NumToStr(NumberFromMyCustomIndicator
,1.2);
//_TRACE("#
BarNum="+NumToStr(BarNum,1.0)+"
BarCount="+NumToStr(BarCount,1.0,False));
Check AmiBroker web page at:<A
href="">http://www.amibroker.com/Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
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.
|