PureBytes Links
Trading Reference Links
|
hi,
in the graph you can use Param (see help files
also).
example:
period = Param("MA
period",10,2,100,1);
<FONT face=Arial
size=2>Plot(MA(Close,period),"MA",colorYellow,1);
Now in the chart where you put the code you use the
right-click of the mouse and then go the the Parameters Item.
rgds, Ed
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=d.ankrapp@xxxxxxxxxxx
href="">davelansing2004
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Sunday, March 28, 2004 4:02
PM
Subject: [amibroker] AFL question
Hello,how do you set a range of values in AFL? for
example, let's say i have a formula to graph a 10-day simple moving
average:Graph0=MA(close,10);but let's say I want to change the
10-bar parameter to a 15-bar, or 30-bar, etc..is there a way to do this
without having to go back and manually change the code? In the Metastock
formula language there is an "input" function that does this. For
example:period1:= input("Moving average
period",1,250,10);MA(close,period1,simple)Note that the "period1"
variable is located within the arguement for the moving average formula
and can have a range between 1 to 250 bars...what will happen is that I
can right-click on my moving average graph and a dialog box will pop up
allowing me to change the 10-bar parameter to any period within the
specified range.Thanks in advance for the help.Dave
AnkrappLansing, MISend 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
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
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.
|