[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[spam] Help needed with formula



PureBytes Links

Trading Reference Links

--- Begin Message ---
To: Metastockusers@xxxxxxxxxxxxxxx
Subject: [Metastockusers] Help needed with formula
From: "mc_gregor25" <gregory_p25@xxxxxxxxxxx>
Date: Thu, 05 Feb 2004 16:20:00 -0000
Delivered-to: mailing list Metastockusers@xxxxxxxxxxxxxxx
List-unsubscribe: <mailto:Metastockusers-unsubscribe@xxxxxxxxxxxxxxx>
Mailing-list: list Metastockusers@xxxxxxxxxxxxxxx; contact Metastockusers-owner@xxxxxxxxxxxxxxx
User-agent: eGroups-EW/0.82
I heve this formula from the web but when i introduce it into the ms 
it can not recognize the "FT"... can sb tell me what FT is... 

so this is the formula 
---------------------------------------------------------
Mc1:=BarsSince(DayOfWeek()=1);
Fc1:=BarsSince(DayOfWeek()=5);
Fc2:=Ref(BarsSince(DayOfWeek()=5),-1)-1;
{Fixed Balance Point Calculation}
FBC:=If(Mc1=0 AND Fc1>2,
{then}(Ref(HHV(H,LastValue(mc1)),-1)+
Ref(LLV(L,LastValue(Mc1)),-1)+
Ref(C,-1))/3,
{else}If(Fc1=0 AND Mc1>5,
{then}(HHV(H,LastValue(Fc2))+
LLV(L,LastValue(Fc2))+C)/3,
{else}If(Fc1=0,
{then}(HHV(H,LastValue(Mc1))+
LLV(L,LastValue(Mc1))+C)/3,
{else}0)));
{Fixed Balance Point Plot}
FBP:=ValueWhen(1,FBC>0,FBC);
FBP;

{NOTE: under Color/Style options, change
plot to last "style" option}

{Weekly Price Range Calculation}
Mc1:=BarsSince(DayOfWeek()=1);
Fc1:=BarsSince(DayOfWeek()=5);
Fc2:=Ref(BarsSince(DayOfWeek()=5),-1)-1;
WRC:=If(Mc1=0 AND Fc1>2,
{then}Ref(HHV(H,LastValue(mc1)),-1)-
Ref(LLV(L,LastValue(Mc1)),-1),
{else}If(Fc1=0 AND Mc1>5,
{then}HHV(H,LastValue(Fc2))-
LLV(L,LastValue(Fc2)),
{else}If(Fc1=0,
{then}HHV(H,LastValue(Mc1))-
LLV(L,LastValue(Mc1)),
{else}0)));
WRP:=ValueWhen(1,WRC>0,WRC);
{Resistance Range}
RR1:= FmlVar("FT-FBP","FBP")+(WRP*.5);
RR2:= FmlVar("FT-FBP","FBP")+(WRP*.618);
{Support Range}
SR1:= FmlVar("FT-FBP","FBP")-(WRP*.5);
SR2:= FmlVar("FT-FBP","FBP")-(WRP*.618);
{Plot Ranges}
RR1;
RR2;
SR1;
SR2;

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

as i know the ft has to be the fibonacci trader , o sg like that... 

thanks 

greg 


--- End Message ---