Hello,

Corrected AFL is attached herewith.

Cheers

Prashanth

----- Original Message ----- 
From: "Debdulal Bhattacharyya" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, May 16, 2008 11:21 PM
Subject: [amibroker] Plotting ema of 1min data into hourly Chart


> hi all ,
> I am facing a problem regarding Potting EMA of 1Min Chart in Hourly
> Chart(Default Chart) of same period (say 55 period);
> I have written the following code below :
> 
> //code starts
> //Potting EMA of 1Min Chart in Hourly Chart(Default Chart)
> 
> PlotOHLC(O,H,L,C, "Multiple Time EMA",styleBar+styleThick);
> Minprice=TimeFrameGetPrice("C",in1Minute,0);
> MinEMA=EMA(Minprice,Param("1Min EMA Period",55,5,500));
> defaultEMA=EMA(C,Param("Default EMA Period",55,10,400));
> MinEMAcolor=ParamColor("1MinEMA Color",colorRed);
> defaultEMAcolor=ParamColor("Default EMA Color",colorBlue);
> Plot(MinEMA,"1Min EMA",MinEMAcolor);
> Plot(defaultEMA,"Default EMA",defaultEMAcolor);
> 
> // code ends here
> 
> The problem is : Both the ema values amibroker shows are same
> 1min ema value should not change if I change the period say from
> hourly to 30min.In That case default ema should change.
> In this code both changes and shows same value.
> 
> Please Note that if we revarse the time frame factor say default
> chart is 1min and if we plot hrly ema or ema of 30min 15min on this
> 1min default chart its working fine.
> 
> is it a problem of the function itself or my logic?
> Experts and seniors please put soem light on it.
> Regards
> Debdulal Bhattacharyya.
> 
> 
> 
> ------------------------------------
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> Yahoo! Groups Links
> 
> 
> 

Attachment: Test 2.afl
Description: Binary data

Reply via email to