PureBytes Links
Trading Reference Links
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 18 May 2004 18:41, kk2628 wrote:
> Hello,
>
> Is there a function/way in AFL for me to know if the chart is in day, week,
> or month mode ? What I try to achieve is
>
> if 'weekmode' then ma=12 else ma=30;
>
> For example, when I choose the week mode "w", then the ma ploted will use
> the parameter 12 on the weekly chart, and the plot will use parameter 30
> when I switch back to day mode.
>
> I know I can achieve some kind of this using the TimeFrameSet function, but
> there will be a bit more coding to be done for each different type of mode.
>
> Thanks
> KK
MA_len = IIf(Interval()==inWeekly, 12, 30);
Substitute in1Minute, in5Minute, in15Minute, inHourly, inDaily, inMonthly for
inWeekly, as appropriate.
(BTW, don't try to set ma=12, MA is a function name!)
Nigel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAqdKRBbmcM2pfckkRAt8xAJ0UE7ebL9vI/fdRG+16NIsAQAs+LwCaAhVV
IT5yRjmW2O+r30CsydpXTrk=
=lgAp
-----END PGP SIGNATURE-----
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 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/
|