logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
LuckyLucas  
#1 Posted : Sunday, November 8, 2009 4:36:40 PM(UTC)
LuckyLucas

Rank: Newbie

Groups: Registered, Registered Users
Joined: 11/1/2009(UTC)
Posts: 2

Hi All,

I am just wondering if anyone are familiar with AFL language and willing to help me with this code.


Amibroker formula

Aup=40;//40

Adown=60;//60

up=BarsSince(RSI(9)>70);

down=BarsSince(RSI(9)<30);

Graph0=IIf(up<down,1,-1);

Graph0Style=2;

Graph0BarColor=IIf( up<down AND LLV(RSI(9),up)>Aup ,5,IIf(down<up AND HHV(RSI(9),down)<Adown,4,0));

Graph1=1.1;

Graph1Color=0;

Graph2=-1.1;

Graph2Color=0;

Someone in yahoo groups forum shared this code and gives the original source (http://www.scientifictrader.com/stock_trend.htm). The idea is good but I just dont know how to play with LLV function. Every time when I tried to put the same code, it just promt me to change " up" to number of period.


Thanks

Lucas








johnl  
#2 Posted : Sunday, November 8, 2009 7:15:37 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

Try something like this:

up:=BarsSince(RSI(9)>70);
down:=BarsSince(RSI(9)<30);
a1:=If(up<down,1,-1);
a2:=If(up<down AND
ExtFml("Forum90.VarLLV",RSI(9),up)>40,5,
If(down<up AND
ExtFml("Forum90.VarHHV",RSI(9),down)<60,4,0));
a1+a2

You will need to download ddl Forum90 to make this work. Thanks to Wabbit for
the dll I believe.


wblam  
#3 Posted : Sunday, November 8, 2009 9:45:59 PM(UTC)
wblam

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/25/2006(UTC)
Posts: 79

Has Wabbit updated the Forum dll? I can not find it in the download section. Could you give me the download link? Thanks.
johnl  
#4 Posted : Monday, November 9, 2009 6:48:23 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

I can't find it either so here is a link. It deletes itself after 10 downloads.

http://rapidshare.com/files/304753383/Forum90.dll.html
wabbit  
#5 Posted : Tuesday, November 10, 2009 7:13:10 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
wblam  
#6 Posted : Tuesday, November 10, 2009 7:33:38 AM(UTC)
wblam

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/25/2006(UTC)
Posts: 79

johnl wrote:
I can't find it either so here is a link. It deletes itself after 10 downloads.

http://rapidshare.com/files/304753383/Forum90.dll.html


Hi Johnl,
Thank you for your help.
wblam  
#7 Posted : Tuesday, November 10, 2009 7:51:23 AM(UTC)
wblam

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/25/2006(UTC)
Posts: 79

wabbit wrote:
http://forum.equis.com/files/3018/programming_files/entry19695.aspx

Wabbit,

The file name for this one is " Normal 0 Forum20.dll" is different from the one send to me by Johnl which is "Forum90.dll".

Functions in "Forum20.dll":

Normal 0

1) Date Range Function

Latch Function

Random Value

Tom Demark's Combo

Variable Aroon Down

Variable Aroon Up

Variable Bollinger Band Bottom

Variable Bollinger Band Top

10) 11) 12) 13) 14) 15)16)17)18)19)20)21)22)23)24)25)26)27)28)29)30)Functions in "Forum90.dll":

1) Custom SAR Indicator

Global Variables

Is true only between the range

Latch Function

Random Value

TD COMBO

Variable CMO Function

Variable HHV Function

10) 11) 12) 13) 14) 15)16)17)Forum90.dll are not mention in ForumDllManual, can you tell us how to use?


Regards
LuckyLucas  
#8 Posted : Thursday, November 12, 2009 3:20:21 PM(UTC)
LuckyLucas

Rank: Newbie

Groups: Registered, Registered Users
Joined: 11/1/2009(UTC)
Posts: 2

Thank you Johnny and Wabbit. I am slightly embarassed for my late reply. Perhaps some of you guys had already thought that I am a mean and ungrateful guy?? Almost a few days I could not get up from my bed and soon as I got up I found my self in hospital and surrounded by my relatives. My blood pressure were too high and it almost flown my live Again, I wish to thank you all Kind regards, Lucas
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.