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

Notification

Icon
Error

Options
Go to last post Go to first unread
kaushik1  
#1 Posted : Thursday, August 15, 2013 1:09:59 AM(UTC)
kaushik1

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/11/2012(UTC)
Posts: 45

hello,

I am currently using the below formula as a ATR TRAILING STOP...

Up:=MP()+(1.5*ATR(10));
Dn:=MP()-(1.5*ATR(10));
Td:=If(Cross(C,LLV(Up,13)),1,If(Cross(HHV(Dn,13),C ),-1,PREV));
Dnx:=If(Dn=HighestSince(1,Cross(Td,0),Dn),Dn,PREV) ;
Upx:=If(Up=LowestSince(1,Cross(0,Td),Up),Up,PREV);
ST:=If(Td=1,Dnx,If(Td=-1,Upx,PREV));
ST

Now I want to set it as a Expart exporar with blow Condition....

if close cross up of above the formula then 1
if close cross Down of above the formula then -1
else 0

mstt  
#2 Posted : Thursday, August 15, 2013 3:25:01 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi kaushik

Im not sure if you're asking for an expert or an exploration so my response may not be appropriate. However, I'm going to assume that you want an exploration. Assuming that your formula is named "My Trailing Stop" then your exploration could be as follows. You may or may not want to use the filter. I suggest you load 200 or more data bars, and DO NOT use Minimum Records.

{ColA:}
TS:=Fml("My Trailing Stop");
If(Cross(C,TS),1,If(Cross(TS,C),-1,0));

{Filter}
colA


On looking at your formula I noticed that it doesn't need any of the four PREV functions. I suggest that you update the formula by removing all PREVs. The benefit is that your exploration will run considerably faster, as will virtually any other operation using the same formula. Here's my conversion. It's only been tested on one chart and could generate a longer N/A period than the original. Nevertheless I'm satisfied that it is logically correct and a suitable replacement for the original if you're inclined to eliminate the PREV functions.


{My Trailing Stop}
Up:=MP()+(1.5*ATR(10));
Dn:=MP()-(1.5*ATR(10));
Ta:=If(Cross(C,LLV(Up,13)),1,0);
Tb:=If(Cross(HHV(Dn,13),C),-1,0);
Td:=If(Ta,1,If(Tb,-1,ValueWhen(1,Ta+Tb,Ta+Tb)));
Dnh:=If( Dn=HighestSince(1,Cross(Td,0),Dn),Dn,0);
Dnx:=If(Dnh,Dn,ValueWhen(1,Dnh,Dn));
Upl:=If(Up=LowestSince(1,Cross(0,Td),Up),Up,0);
Upx:=If(Upl,Up,ValueWhen(1,Upl,Up));
ST:=If(Td=1,Dnx,Upx); ST;

Roy
kaushik1  
#3 Posted : Monday, August 19, 2013 12:32:31 AM(UTC)
kaushik1

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/11/2012(UTC)
Posts: 45

Thank you Very Much Friend....

I am using Tracking this ATR on EOD... Now I want to plot the Weekly ATR on Daily Chart... can you help me in this ....??????

Thank you...
mstt  
#4 Posted : Monday, August 19, 2013 4:48:53 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi kaushik

I have sent you an email with details on how to access the EOD Multi-Frame version of modified trailing stop code that I've created for you.

Roy
kaushik1  
#5 Posted : Tuesday, August 20, 2013 10:02:13 AM(UTC)
kaushik1

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/11/2012(UTC)
Posts: 45

Hello,
First of all, I am very thankful to you that you had done it for mee...

Actually.. If possible please send me that email again.. as My Email had some problem...

even you can send me on
kaushiksurti@yahooo.com
kaushiksurti1@gmail.com.

keep a Subject " supper trend Multi trailing stop.....

Thank you again.....


mstt  
#6 Posted : Tuesday, August 20, 2013 2:56:08 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi Kaushik

As requested I have emailed you the the download link and related information. Your Yahoo email account appears to have problems but I got no error messages back for the Gmail address.

Roy
kaushik1  
#7 Posted : Wednesday, August 21, 2013 10:58:45 AM(UTC)
kaushik1

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/11/2012(UTC)
Posts: 45

Again very very thanks...

But still Not recieved ............... if Possoble... send me again..


kaushiksurti1@gmail.com
kaushiksurti@yahoo.com

thank you
mstt  
#8 Posted : Wednesday, August 21, 2013 1:52:48 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi Kaushik

I have resent the email from my rlarsen_99@yahoo.co.uk account after editing the ZIP file download link. You will need to reconstruct that link as per instructions before attempting to download the file. Copies sent to two of my address both arrived within moments.

Presently I will send the email text as a Forum private message. Hopefully something will reach you because I'm running out of ideas.

Roy

techtrader31  
#9 Posted : Wednesday, August 21, 2013 10:45:24 PM(UTC)
techtrader31

Rank: Newbie

Groups: Registered, Registered Users
Joined: 8/19/2013(UTC)
Posts: 4

I am also interested in this...could you kindly email me at techtrader31@gmail.com
kaushik1  
#10 Posted : Friday, August 23, 2013 11:00:19 AM(UTC)
kaushik1

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/11/2012(UTC)
Posts: 45

Dear Roy,


As per your Email, I had download the EXE file and completely install in my system. then I had copy the given formula and pest in Indicator Builde. but when I am going to click OK , I found an error that "THIS DLL DOSE NOT EXIST IN THE MSX DLL FOLDER"

please help me ... How I can resolve this error.....


thank you.
mstt  
#11 Posted : Friday, August 23, 2013 3:16:49 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi kaushik

What version of MetaStock do you have, and what version of Windows operating system are you using? If you have MS 12.X then my guess is that you have not run the EXE file as an administrator. With my XP system (where running as administrator is not required), and MS 12.1, the DLLS get installed to the "~MSXIMPORTDLLs~" folder under the "External Function DLLs" folder. They should instead be automatically installed directly into "External Function DLLs" folder. When the DLLs cannot be found in the correct I would expect exactly the error you are getting.

I have updated the ZIP file to include the two DLLS (MSTT and Forum) and you should be able to copy them into the correct folder, External Function DLLs, then restart MetaStock to recognize the DLLs. If problems persist then you should contact Equis Support for assistance.

Roy
kaushik1  
#12 Posted : Saturday, August 24, 2013 6:44:32 AM(UTC)
kaushik1

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/11/2012(UTC)
Posts: 45

Oki,,,

When I Run as Administrator, it has done.......

Now I am looking for the formula of Weekly Stochestic of (14,5,5) on Daily Chart....

Thank You.....
Users browsing this topic
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.