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

[amibroker] 3D chart applications



PureBytes Links

Trading Reference Links

Sorry forgot the code


// lines need to be drawn from left to right
SetBarsRequired(10000,10000);
Plot(C,"",colorBlack,styleBar);
Upper= Study( "f1", GetChartID() );
Lower= Study( "f2", GetChartID() );
TLB = ValueWhen( Upper AND IsNull( Ref(Upper,-1) ), BarIndex() );
TLP = ValueWhen( Upper AND IsNull( Ref(Upper,-1) ), Upper );
TRB = ValueWhen( IsTrue(Upper) AND IsNull( Ref(Upper,1) ), BarIndex() );
TRP = ValueWhen( IsTrue(Upper) AND IsNull( Ref(Upper,1) ), Upper );
TRB = IIf( IsNull(TRB), BarCount-1, TRB );
TRP = IIf( IsNull(TRP), LastValue(upper), TRP );
BLB = ValueWhen( Lower AND IsNull( Ref(Lower,-1) ), BarIndex() );
BLP = ValueWhen( Lower AND IsNull( Ref(Lower,-1) ), Lower );
BRB = ValueWhen( IsTrue(Lower) AND IsNull( Ref(Lower,1) ), Min( BarIndex(),
BarCount-1 ) );
BRP = ValueWhen( IsTrue(Lower) AND IsNull( Ref(Lower,1) ), Lower );
BRB = IIf( IsNull(BRB), BarCount-1, BRB );
BRP = IIf( IsNull(BRP), LastValue(Lower), BRP );
procedure FibLine(x,y)
{
LB = LastValue( BLB+(TLB-BLB)*x );
RB = LastValue( BRB+(TRB-BRB)*x );
LP = LastValue( BLP+(TLP-BLP)*x );
RP = LastValue( BRP+(TRP-BRP)*x );
Line = LineArray( LB, LP, RB, RP, 1 );
Plot( Line, "Line "+(x*100)+"%", y, styleLine+styleNoRescale );
}

FibLine(0.5,colorRed);
FibLine(1.5,colorRed);
FibLine(-0.5,colorRed);

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

-----Original Message-----
From: Graham [mailto:gkavanagh@xxxxxxxxxxxxx] 
Sent: Monday, July 26, 2004 7:33 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Trendline Questions

Here is a little routine I put together that draws additional lines a after
you draw 2 lines and name them F1 and F2 in their properties. The lines
called fiblines are based on the distance between the manual lines. This may
(or may not) help you with a start of what you are wanting.

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

-----Original Message-----
From: educated_investor [mailto:educated_investor@xxxxxxxxx] 
Sent: Sunday, July 25, 2004 7:58 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Trendline Questions

Hi Folks!

I am trying to understand a few items.

How can I display the value of the trendline in the window panel (in
the upper line with the price, H,L,O,Volume) and on the hard right edge?


How can I calculate and display the distance between two trendlines? 
Perfect world; I could measure the distance between a support &
resistance trendline and take that and plot the direction and distance
into the future. Is that possible?

Best regards.







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



 




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 --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/