[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] TimeFrameCompress, how it works ?



PureBytes Links

Trading Reference Links


Hi William,


> I think you might need to use the 'expandFirst' parameter instead of
> the default 'expandLast'.

You are right.

Here the full code :

TimeFrameSet( inWeekly);
LowWeekly = Low;
HighWeekly = High;
TimeFrameRestore();

_SECTION_BEGIN("Close");
Plot( Close, _DEFAULT_NAME() , ParamColor("Color", colorBlack ),
styleCandle);
_SECTION_END();

expLowWeekly = TimeFrameExpand( LowWeekly, inWeekly, expandFirst );
expHighWeekly = TimeFrameExpand( HighWeekly, inWeekly, expandFirst );
_SECTION_BEGIN("expLowWeekly");
Plot( expLowWeekly, _DEFAULT_NAME() , ParamColor("Color", colorRed ),
ParamStyle("Style", styleThick));
_SECTION_END();
_SECTION_BEGIN("expHighWeekly");
Plot( expHighWeekly , _DEFAULT_NAME() , ParamColor("Color", colorBlue ),
ParamStyle("Style", styleThick));
_SECTION_END();
"expLowWeekly :" + WriteVal(expLowWeekly );
"expHighWeekly :" + WriteVal(expHighWeekly);




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/