PureBytes Links
Trading Reference Links
|
If you want the MA period to be dependent of which timeframe you
choose use interval() function. See Msg 63884.
if( Interval() == inWeekly )
{
p=20;
}
if( Interval() == inMonthly )
{
p=5;
}
if( Interval() == inDaily )
{
p=200;
}
Plot(C,"",colorDefault,styleBar);
Plot(MA(C,p),"",colorOrange,styleLine);
Title="MA period = "+p;
Johan
--- In amibroker@xxxxxxxxxxxxxxx, "netbull2000" <netbull2000@xxxx>
wrote:
> Tomasz,
>
> today I was collecting the data for 4 different markets and
plotting
> 3 charts. I wanted to have different MAs on these charts. Well, I
> could not do this with the MAs defined in the preferences as they
are
> globally defined, apparently, and changing them affected all
charts.
> I thought that defining a MA indicator would change this, so I
tried
> the Guppy moving average (it should be called Guppy and not Guppe
as
> it is called in AB, BTW) and changed the period in one of its
moving
> averages. I had the Guppy MA indicator in all 3 charting windows
and
> I noticed that again all the charts were affected when I changed
that
> period. I intended to do so only in one window by editing the
Guppy
> MA in that window.
>
> So my question is really this: how can I apply the same indicator
but
> with different parameters (like say the period of MA) to multiple
> charts. This can be easily done in any other software I have used
so
> far because there indicators are applied to individual charts
while
> in Amibroker they seem to affect all charts open. There must be
some
> way to do it without defining a new indicator for each parameter.
>
> Thanks...
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
---------------------------------------------------------------------~->
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/
|