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

Re: [amibroker] Detecting TimeFrame limits



PureBytes Links

Trading Reference Links

I don't have tick charts to check this but have you tried something like this

plot( Cross( timenum(), timenum()%3==0 ), "", colorblack,
stylehistogram+styleownscale);


On Sat, 29 Jan 2005 09:15:09 -0500, Herman van den Bergen
<psytek@xxxxxxxx> wrote:
> 
> This ought to be simple... how do i detect Timeframe limits on a tick chart?
> I create a 3-minute overlay on tick charts and need a signal to tell me
> where the three minute time frame starts and stop. How would i add 3-min
> markers (vertical lines) to this code?
> 
> Thanks!
> herman
> 
> Plot(C,"",1,128);
> TimeFrameSet(3*60);
> O3min = O;
> H3min = H;
> L3min = L;
> C3min = C;
> TimeFrameRestore();
> O3 = TimeFrameExpand(O3min,3*60);
> H3 = TimeFrameExpand(H3Min,3*60,expandFirst);
> L3 = TimeFrameExpand(L3Min,3*60,expandFirst);
> C3 = TimeFrameExpand(C3Min,3*60,expandFirst);
> Plot(H3,"",5,styleStaircase);
> Plot(L3,"",4,styleStaircase);
> 
> 
> 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
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/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/