PureBytes Links
Trading Reference Links
|
Thanks William, you nailed it for me.
I guess I was heading in the right direction. This is what I had
written:
TimeFrameSet( inDaily); // switch to Daily frame
HighDaily = High; //High from Daily High
TimeFrameRestore(); // restore time frame to original
TimeFrameSet( inDaily); // switch to Daily frame
LowDaily = Low; //Low from Daily Low
TimeFrameRestore(); // restore time frame to original
Plot( High, "Price", colorWhite, styleBar );
// plot expanded average
Plot( TimeFrameExpand( HighDaily, inDaily), "High From Daily Chart",
colorGreen );
Plot( TimeFrameExpand( LowDaily, inDaily), "Low From Daily Chart",
colorRed );
Of coarse, it wasn't quite right.
Thanks for the solution, I appreciate it.
- Don
--- In amibroker@xxxxxxxxxxxxxxx, William Peters <williampeters@xxxx>
wrote:
> Hi Don,
>
> Read up on time frame functions in the AmiBroker user guide,
> you'll need to search on words like 'TimeFrameSet'
& 'TimeFrameExpand'
>
> This should get you started.
>
> TimeFrameSet(inDaily);
> DayHigh = High;
> DayLow = Low;
> TimeFrameRestore();
>
> DayHigh = TimeFrameExpand( DayHigh, inDaily, expandFirst);
> DayLow = TimeFrameExpand( DayLow, inDaily, expandFirst);
>
> Plot( Open, "Open", colorBlack, styleCandle );
> Plot( DayHigh, "DayHigh", colorGreen , styleLine );
> Plot( DayLow, "DayLow", colorGold , styleLine );
>
> GraphXSpace = 5;
>
>
> Regards,
> William Peters
> www.amitools.com
>
>
> Friday, October 8, 2004, 11:43:21 AM, you wrote:
>
>
>
> DT> Hi All -
>
> DT> I'm new to AB, and am slowly climbing the AFL learning curve.
>
> DT> I'm trying to build an indicator that will draw a line on a 343
tick
> DT> chart at both the high and the low of the day. The lines need
to be
> DT> redrawn as the H/L of the day changes.
>
> DT> Any help in pointing me in the right direction is much
appreciated.
>
> DT> - Don
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/
|