Hi,

try to plot this formula to get daily values in my chart with intraday
hourly frame.

Period = Param("Periode", 9, 2, 50, 1);
TimeFrameSet(inDaily);
CH = -1*LinearReg(C-H, period);
CL = LinearReg(C-L, period);
TimeFrameRestore();
Plot(TimeFrameExpand(CH, inDaily), "CH", colorRed, styleStaircase);
Plot(TimeFrameExpand(CL, inDaily), "CL", colorGreen, styleStaircase);

But this formula gives other values than "normal" formula without
Timeframe-commands in my daily timeframe chart. 
What is wrong with my solution above?

"Normal" formula is this:

Period = Param("Periode", 9, 2, 50, 1);
CH = -1*LinearReg(C-H, period);
CL = LinearReg(C-L, period);
Plot(CH, "CH", colorRed, styleStaircase);
Plot(CL, "CL", colorGreen, styleStaircase);


Regards
Robert






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:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to