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

Notification

Icon
Error

Options
Go to last post Go to first unread
nick1334  
#1 Posted : Monday, November 14, 2011 5:14:40 AM(UTC)
nick1334

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/26/2011(UTC)
Posts: 5

Hi All,

I am new to metastock have just some basic understanding of coding. I want an exploration for acceleration bands- Price headley - BIG TRENDS. I have the formula for the same, but not able to get correct exploration result.

Formula is as follows:

Mov(H*(1+2*(((H-L)/((H+L)/2))*1000)*.001),20,S);
Mov(C,20,S);
Mov(L*(1-2*(((H-L)/((H+L)/2))*1000)*.001),20,S)

I want to run a condition where there are 2 consecutive closes above or below the upper or lower band. I am trying to run the below formula in exploration for long side but its showing wrong results.

X= Mov(H*(1+2*(((H-L)/((H+L)/2))*1000)*.001),20,S);
Ref(C,-2)<X AND Ref(C,-1)>X AND C>X

Kindly help me in correcting the formula and to run exploration.

Regards,
Nick
henry1224  
#2 Posted : Monday, November 14, 2011 6:15:47 AM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
try these bands,



Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

N:=Input("Length",3,50,20);

x:=(H-L) / (H+L) /2;

UB:=Mov(H*(1+((2*X)*100)*.01),N,E);

LB:= Mov(L*(1-((2*X)*100)*.01),N,E);

MB:=Mov(C,N,E);

UB;MB;LB;


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.