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

Notification

Icon
Error

Options
Go to last post Go to first unread
Satie  
#1 Posted : Saturday, January 13, 2007 11:31:11 PM(UTC)
Satie

Rank: Newbie

Groups: Registered, Registered Users
Joined: 12/16/2005(UTC)
Posts: 5

I have problem with this one. I want to create a new indicator. So, after choosing "Indicator Builder" I have choosen "New indicator' and I have put the first line of code in the "Formula space" . So far, it's ok. But I have a problem with the unfamiliar "Fml code" that I should introduce in the formula. How I do that?

I use Metastock 10 and here is the formula:

Starc Band

STARC BAND Formula = (Mov(Typical(),5,S))

Starc Upper Band:
Fml( "STARC BAND" )+ (ATR(15)*1.33)

Starc Lower Band:
Fml( "STARC BAND" )-(ATR(15)*1.33)

I have tried different ways and I cannot get any good results. I know that I'm doing something wrong but what?

uasish  
#2 Posted : Sunday, January 14, 2007 4:22:21 AM(UTC)
uasish

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 8/13/2005(UTC)
Posts: 170

Thanks: 7 times

Satie,

Your code ,

STARC BAND := (Mov(Typical(),5,S));

STAR Band;{ should have a ":" before "=" and ";" at line end.}Name this as say Star Band.

Now open another new from indicator builder and after a blank click you will find "Function" button at below right ,when you click on that you will find all your formulas are there.Select Star Band from there you will find it will write itself as fml.This is the method of recalling another code in your present code.

Asish


Jedixs  
#3 Posted : Wednesday, January 17, 2007 1:04:52 AM(UTC)
Jedixs

Rank: Member

Groups: Registered, Registered Users
Joined: 12/11/2005(UTC)
Posts: 16
Location: Mexico City

try this ;

a:=(Mov(Typical(),5,S))+(ATR(15)*1.33);
b:=(Mov(Typical(),5,S))-(ATR(15)*1.33);
a;b

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

Original one is

Mov(C,6,S)+(ATR(15)*2);
Mov(C,6,S)-(ATR(15)*2);
Mov(C,20,E)

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.