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

Notification

Icon
Error

Options
Go to last post Go to first unread
sportrider  
#1 Posted : Tuesday, January 17, 2006 1:20:59 AM(UTC)
sportrider

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/12/2005(UTC)
Posts: 141
Location: Brooklyn,NY

I can't figure out what i'm doing wrong or am I using it it the wrong way .Here's my formula (its a modify version of Patricks "dll latch function"): {ENTER LONG } {LE:=H>=Ref(HHV(H,10),-1); LX:=BarsSince(H>=Ref(HHV(H,10),-1))=10; {SE:=your Condition here;} {SX:=your Condition here;} Z:= ExtFml("forum.Latch",LE,LX,0,0); EnterLong:=Z = 1 AND Ref(Z,-1) <> 1; ExitLong:=Z = 0 AND Ref(Z,-1) = 1; EnterLong-ExitLong; }. If plotted on a chart in its own window and plot {10} day price channels on price chart I get some signals exiting somtimes {20} days later. I can't figure out why.Why? Thanks in advance Ralph.
Patrick  
#2 Posted : Tuesday, January 17, 2006 5:37:08 AM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Let me know if it is ok for you: {Enter Long} LE:=Cross(H,Ref(HHV(H,10),-1)); LX:=BarsSince(LE)=10; Z:= ExtFml("forum.Latch",LE,LX,0,0); Z = 1 AND Ref(Z,-1) <> 1 {Exit Long} LE:=Cross(H,Ref(HHV(H,10),-1)); LX:=BarsSince(LE)=10; Z:= ExtFml("forum.Latch",LE,LX,0,0); Z = 0 AND Ref(Z,-1) = 1 Patrick :mrgreen:
fairdinkum  
#3 Posted : Saturday, October 16, 2010 12:32:26 AM(UTC)
fairdinkum

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/14/2010(UTC)
Posts: 2

hello there

Can you tell me where I can down load forum.dll.latch. I am trying to set up the ichimoku formula for my meta trade

Regards

Fairdinkum
henry1224  
#4 Posted : Saturday, October 16, 2010 1:04:59 PM(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)
for the forum dll look into the files section

now for the ichimoku, check out this chart using the default settings

UserPostedImage

The code for the Tenkan Kijun long

ST:=Input("ST Length",10,100,26);
TL:=Input("TL Length",3,50,9);
LB:=Input("Lookback Length",2,50,25);
A2:=Input("A2 Length",20,200,52);
ST:=(HHV(H,ST)+LLV(L,ST))/2;
TL:=(HHV(H,TL)+LLV(L,TL))/2;
A1:=Ref((ST+TL)/2,-LB);
A2:=Ref((HHV(H,A2)+LLV(L,A2))/2,-LB);

LE:= If(A1>=A2,Cross(C,A1),Cross(C,A2));
LX:= If(A1>=A2,Cross(A1,C),Cross(A2,C));
SE:= If(A1>=A2,Cross(A2,C),Cross(A1,C));
SX:= If(A1>=A2,Cross(C,A2),Cross(C,A1));
B:=ExtFml( "ForumDll.Latch", LE, LX, SE, SX);
Buy:=If(TL>ST AND B>0,1,0);
Sell:=If(TL<ST AND B<0,-1,0);

entry:= {<-- Do not change entry parameter name}
Buy+Sell=1 AND Ref(Buy+Sell,-1)<>1;

exit:= {<-- Do not change exit parameter name}
Buy+Sell=0 AND Ref(Buy+Sell,-1)=1;

you may try the Kumo Cloud

checkout this chart

UserPostedImage

the kumoCloud long formula is

Per1:= Input("Tenkan Length 1",1,1000,9);
Per2:= Input("Kijun Length 2",1,1000,26);
Per3:= Input("Senkou B Length 3",1,1000,52);
Per4:= Input("Shift Length ",1,1000,25);
ST:=(HHV(H,Per2)+LLV(L,Per2))/2;
TL:=(HHV(H,Per1)+LLV(L,Per1))/2;
DL:=Ref(C,Per4);
1Span:=Ref((ST+TL)/2,-Per4);
2Span:=Ref((HHV(H,Per3)+LLV(L,Per3))/2,-Per4);
KumoCloud:=If(C>Max(1span,2Span),1,If(C<Min(1span,2span),-1,0));
entry:= {<-- Do not change entry parameter name}
KumoCloud=1 AND Ref(KumoCloud,-1)<>1;

exit:= {<-- Do not change exit parameter name}
KumoCloud<>1 AND Ref(KumoCloud,-1)=1;

the above charts were created using VST Pro from www.Metastocktools.com
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.