BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullScript
  New Posts New Posts RSS Feed: Converting an Amibroker Code to Bullscrip
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Converting an Amibroker Code to Bullscrip

 Post Reply Post Reply
Author
Message Reverse Sort Order
blackdog View Drop Down
Regular
Regular
Avatar

Joined: 14 Nov 2006
Location: Vatican City State
Posts: 43
Post Options Post Options   Quote blackdog Quote  Post ReplyReply Direct Link To This Post Topic: Converting an Amibroker Code to Bullscrip
    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;

 

Back to Top
blackdog View Drop Down
Regular
Regular
Avatar

Joined: 14 Nov 2006
Location: Vatican City State
Posts: 43
Post Options Post Options   Quote blackdog Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Vito View Drop Down
Newbie
Newbie


Joined: 14 May 2007
Location: Australia
Posts: 5
Post Options Post Options   Quote Vito Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz