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

RE: [amibroker] I need some coding help please



PureBytes Links

Trading Reference Links

The following AFL will: put the ribbon at the top of the pane; remove the title which otherwise would obscuring the left-hand part of the ribbon; and allow you to scale the volume indicator with GraphXSpace function (to avoid risk of overlap). As always, I am sure there are alternate and more elegant ways to achieve the same purpose.

 

Regards,

 

Gordon Sutherland

 

_SECTION_BEGIN("Closing Price Ribbon");

upbar = C > Ref(C,-1);

downbar = C < Ref(C,-1);

UDcol = IIf(upbar, colorGreen,IIf(downbar, colorRed, colorYellow));

//Plot( 5, " ",UDcol,styleArea|styleOwnScale|styleNoLabel,0,100);

Plot( 5, " ",UDcol,styleArea|styleOwnScale|styleNoLabel,-20,1);

Title = "\n";

GraphXSpace = Param("GraphXSpace",10,0,20,1);

_SECTION_END();

//////////////////////////////////////////////////

_SECTION_BEGIN("Volume ");

VolCol = (V < Ref(V,-1));

O = IIf(VolCol , V, 0);

C = IIf(VolCol , 0, V);

L = 0;

H = V;

Plot(C, "", colorBlue, styleCandle + styleNoLabel);

_SECTION_END();

/////////////////////////////////////////////////////

 

 

 

 

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of OptionTed
Sent: Sunday, 13 April 2008 9:36 p.m.
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] I need some coding help please

 

In the code below I would like to draw the volume bars above

the ribbon strip ( offset to the top edge ) so as not to cover part of the volume bars.

 

Any help would be appreciated.

Thanks

 

_SECTION_BEGIN("Closing Price Ribbon");

upbar = C > Ref(C,-1);

downbar = C < Ref(C,-1);

UDcol = IIf(upbar, colorGreen,IIf(downbar, colorRed, colorYellow));

Plot( 5, " ",UDcol,styleArea|styleOwnScale|styleNoLabel,0,100);

_SECTION_END();

//////////////////////////////////////////////////

_SECTION_BEGIN("Volume ");

VolCol = (V < Ref(V,-1));

O = IIf(VolCol , V, 0);

C = IIf(VolCol , 0, V);

L = 0;

H = V;

Plot(C, "", colorBlue, styleCandle + styleNoLabel);

_SECTION_END();

/////////////////////////////////////////////////////

 


I am using the free version of SPAMfighter for private users.
It has removed 1215 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___