Print Page | Close Window

Ribbons

Printed From: BullCharts Forum
Category: BullCharts
Forum Name: BullScript
Forum Discription: Technical discussion related specifically to the BullScript programming language.
URL: http://www.bullcharts.com.au/forum/forum_posts.asp?TID=336
Printed Date: 13 Apr 2025 at 7:40am
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: Ribbons
Posted By: Brianb
Subject: Ribbons
Date Posted: 04 Mar 2006 at 10:20am

I would like to replicate this Metastock code to display a ribbon in Bullcharts. any help would be appreciated.

 

30 period moving average the code for the bullish signal would be:

C>Mov(C,30,W)

For the bearish signal it would be:

C<Mov(C,30,W)




Replies:
Posted By: Brendon
Date Posted: 07 Mar 2006 at 9:49am

Shall put together a sample.

Please allow a few days.



-------------


Posted By: Brendon
Date Posted: 10 Mar 2006 at 12:12pm

Here is a sample.  Use the Builder from Tools.

[description="This ribbon reports 'Above' when the close value is above its moving average, and 'Below' when below its moving average by using Weighted method"]

[target=Ribbon; category=Moving Average]

expr := Expression("Expression",Close);

method := inputma("Method",Weighted);

n := input("Time periods",30,1);

[color=rgb(200,180,255); name=Above]

[fillstyle=small grid]

expr>MA(expr,n,method);

[color=rgb(255,200,160); name=Below]

[fillstyle=diagonal cross]

expr<MA(expr,n,method);

[color=White]



-------------


Posted By: Brianb
Date Posted: 11 Mar 2006 at 5:35pm

Thanks Brendon, did exactly what I wanted.

Regards




Print Page | Close Window

Bulletin Board Software by Web Wiz Forums® version 9.69 - http://www.webwizforums.com
Copyright ©2001-2010 Web Wiz - http://www.webwiz.co.uk