PureBytes Links
Trading Reference Links
|
y=Highest(Sum(Month()==Ref(Month(),-1),6));
y will be equal to 6 in daily mode but only 5 in the weekly one.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "kk2628" <kk2628@xxxx> 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
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/
|