Print Page | Close Window

Converting an Amibroker Code to Bullscrip

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=420
Printed Date: 27 Apr 2025 at 9:00am
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: Converting an Amibroker Code to Bullscrip
Posted By: Vito
Subject: Converting an Amibroker Code to Bullscrip
Date Posted: 14 May 2007 at 9:25pm
Hi All,
       I have been able to get my hands on what I consider a valuable indicator but I can only get it in an Amibroker code. It is quite complicated and beyong me. Does any one know of any one who enjoys a challenge.

If so please email me

Vito



Replies:
Posted By: blackdog
Date Posted: 08 Nov 2007 at 7:38pm
Vito,
Amibroker scripting is rather different to BC. Its scripting  allows looping and is more like a real programming language. However it doesnt allow the "prev" function that BC uses. If you post the amibroker code here, I will have a look and see what I can do for you.
 
regards,
BD.


Posted By: blackdog
Date Posted: 15 Nov 2007 at 2:07pm
Here is an example of an Amibroker script that cant be directly transfered to BC, but BC can achieve a pale imitation. The example is a multiple moving average streamer where the red side is ma(2) and the purple side is ma(100). Anyway have a look and play if you like.
 
 
 
Here is the BC version.
 
 
The BC code is as follows:
 

[description="MA streamer shows ma from 4 to 100 as a coloured streamer."]

[target=Default; author=zzz; category=Moving Average|zzz; dp=4]

 

expr :=C;

ma1 := ma(expr,4,simple);

ma2 := ma(expr,8,simple);

ma3 := ma(expr,12,simple);

ma4 := ma(expr,16,simple);

ma5 := ma(expr,20,simple);

ma6 := ma(expr,25,simple);

ma7 := ma(expr,30,simple);

ma8 := ma(expr,36,simple);

ma9 := ma(expr,42,simple);

ma10 := ma(expr,49,simple);

ma11 := ma(expr,57,simple);

ma12 := ma(expr,62,simple);

ma13 := ma(expr,70,simple);

 

[name=Fill; linestyle=fill; color=dark red]ma1;

[color=crimson] ma2;

[name=Fill; linestyle=fill; color=plum]ma2;

[color=coral] ma3;

[name=Fill; linestyle=fill; color=sandy brown]ma3;

[color=orange] ma4;

[name=Fill; linestyle=fill; color=dark orange]ma4;

[color=khaki] ma5;

[name=Fill; linestyle=fill; color=gold]ma5;

[color=yellow] ma6;

[name=Fill; linestyle=fill; color=green yellow]ma6;

[color=lime green] ma7;

[name=Fill; linestyle=fill; color=light green]ma7;

[color=medium spring green] ma8;

[name=Fill; linestyle=fill; color=aqua marine]ma8;

[color=turquoise] ma9;

[name=Fill; linestyle=fill; color=aqua]ma9;

[color=sky blue] ma10;

[name=Fill; linestyle=fill; color=deep sky blue]ma10;

[color=medium purple] ma11;

[name=Fill; linestyle=fill; color=medium orchid]ma11;

[color=plum] ma12;

[name=Fill; linestyle=fill; color=dark magenta]ma12;

[color=white] ma13;

[name=Fill; linestyle=fill; color=dark red]ma1;

[color=crimson] ma2;

[name=Fill; linestyle=fill; color=plum]ma2;

[color=coral] ma3;

[name=Fill; linestyle=fill; color=sandy brown]ma3;

[color=orange] ma4;

[name=Fill; linestyle=fill; color=dark orange]ma4;

[color=khaki] ma5;

[name=Fill; linestyle=fill; color=gold]ma5;

[color=yellow] ma6;

[name=Fill; linestyle=fill; color=green yellow]ma6;

[color=lime green] ma7;

[name=Fill; linestyle=fill; color=light green]ma7;

[color=medium spring green] ma8;

[name=Fill; linestyle=fill; color=aqua marine]ma8;

[color=turquoise] ma9;

[name=Fill; linestyle=fill; color=aqua]ma9;

[color=sky blue] ma10;

[name=Fill; linestyle=fill; color=deep sky blue]ma10;

[color=medium purple] ma11;

[name=Fill; linestyle=fill; color=medium orchid]ma11;

[color=plum] ma12;

[name=Fill; linestyle=fill; color=dark magenta]ma12;

[color=white] ma13;

 




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