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

Re: [amibroker] TimeFrameset question



PureBytes Links

Trading Reference Links

Once again, thanks Graham

----- Original Message ----- 
From: "Graham" <kavemanperth@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, January 19, 2005 10:26 PM
Subject: [trading] Re: [amibroker] TimeFrameset question


>
> Cannot see anything at a glance, but perhaps you could try timeframegetprice
>
> myC =  TimeFrameGetPrice( "C", inhourly*4, 0 );
> myC1 = TimeFrameGetPrice( "C", inhourly*4, -1 );
> myO1 =  TimeFrameGetPrice( "O", inhourly*4, -1 );
>
> CLU4 = myC > myC1 AND myC1 > myO1;
> CLD4 = myC < myC1 AND my01 <  myC1;
>
> PlotShapes(CLU4*shapeUpArrow,colorAqua,0,High,-15);
> PlotShapes(CLD4*shapeDownArrow,colorDarkYellow,0,Low,-15);
>
> On Wed, 19 Jan 2005 22:13:58 +1100, Steve <avalon-ardy@xxxxxxxxxxxxxxx> wrote:
>>
>> On a 15 minute chart I want to use plotshapes to indicate if a 4hr bar's close was up 
>> or
>> down relative to prev a 4hr bar. I've tried the following, but it doesn't work. 
>> Obviously
>> I'm doing something wrong, but I can't quite work it out. Anyone? Thanks!
>>
>> TimeFrameSet( 4*inHourly );
>> CLU4 = C > Ref( C,-1) AND Ref(C,-1) > Ref(O,-1);
>> CLD4 = C < Ref( C,-1) AND Ref(0,-1) <  Ref(C,-1);
>> TimeFrameRestore();
>>
>> CLU44 = TimeFrameExpand(CLU4,4*inHourly);
>> CLD44 = TimeFrameExpand(CLD4,4*inHourly);
>>
>> PlotShapes(CLU44*shapeUpArrow,colorAqua,0,High,-15);
>> PlotShapes(CLD44*shapeDownArrow,colorDarkYellow,0,Low,-15);
>>
>>
>> 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/
>
>
>
> 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
>
>
>
>
>
>
> 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/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/