PureBytes Links
Trading Reference Links
|
Hi,
Could someone explain why when viewed from a lower timeframe, why my
daily ema values keep changing?
I'm using forexite minute data.
At the end of friday 21:00
Daily EMA(C,2) = 1.20836
When I change the intervals I'm viewing it at it changes.
4hr - 1.20224
1hr - 1.20178
15min - 1.2018
5min - 1.20181
1min - 1.2018
By using the timeframeset and restore to get the daily ema(c,2) value,
I would have expected it to remain constant. I've attached the code
I'm using.
Has anyone got a better understanding to explain?
Thanks
Alan
P = ParamField("Price field",-1);
EMA1Per = Param("EMA1 Period", 02, 2, 1000, 1, 10 );
EMA2Per = Param("EMA2 Period", 28, 2, 1000, 1, 10 );
EMA1Col = ParamColor( "EMA1 Colour", colorRed);
EMA2Col = ParamColor( "EMA2 Colour", colorBlue);
Timeframe = inDaily;
TimeFrameSet(Timeframe );
EMA_Line1 = EMA( P, EMA1Per );
EMA_Line2 = EMA( P, EMA2Per );
TimeFrameRestore();
EMALine1= TimeFrameExpand(EMA_Line1, Timeframe );
EMALine2= TimeFrameExpand(EMA_Line2, Timeframe );
AddColumn(EMALine1,"EMA1",1.4);
AddColumn(EMALine2,"EMA2",1.4);
Plot( EMALine1 + 0.0000, "EMA1", EMA1Col,styleNoRescale);
Plot( EMALine2 + 0.0000, "EMA2", EMA2Col,styleNoRescale);
Filter=1;
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
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 other support material please check also:
http://www.amibroker.com/support.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/
|