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

Notification

Icon
Error

Options
Go to last post Go to first unread
tradetime  
#1 Posted : Tuesday, August 8, 2006 5:47:50 AM(UTC)
tradetime

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 6/29/2006(UTC)
Posts: 10

Hi there, can someone please help me write a formula for a trailing stop loss. Basically i want a trailing stop loss that trails my share price by 2xATR whilst the share price is going up and goes flat when the share price falls. I then want it to trail the share price again (2xATR) once the share price goes back up to the where it originally fell from. Is this possible. Hope someone can help. Thanks in advance.

wabbit  
#2 Posted : Tuesday, August 8, 2006 5:54:18 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Please remember the SEARCH function now works....

Just type your search query words into the text box at the very top right of the screen and the region to be searched....

http://forum.equis.com/search/SearchResults.aspx?q=stop+loss
wabbit  
#3 Posted : Tuesday, August 8, 2006 5:56:19 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
PTJim  
#4 Posted : Tuesday, August 8, 2006 12:53:54 PM(UTC)
PTJim

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/10/2006(UTC)
Posts: 252

Thanks: 11 times
Was thanked: 9 time(s) in 6 post(s)
I second Wabbit's recommendation for Richard Dale's Chandelier Advanced Trailing Stop; should do what you want and there are variations included. Plugs right into MetaStock.

Here's a direct link to Dale's site where you can find his ATS and date plugins: http://www.tradernexus.com/

tradetime  
#5 Posted : Thursday, August 10, 2006 2:14:37 AM(UTC)
tradetime

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 6/29/2006(UTC)
Posts: 10

Thanks, but this is more about me learning to write my own formula as i am new to metastock. Any chance of still helping me out. Thanks
PTJim  
#6 Posted : Thursday, August 10, 2006 3:26:57 PM(UTC)
PTJim

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/10/2006(UTC)
Posts: 252

Thanks: 11 times
Was thanked: 9 time(s) in 6 post(s)
If you want to learn how to code formulas, that's fine, but did you go to Dale's site and read this about the reason he created the DLL?

"Using the Metastock Developer's Kit, I developed a I developed a Metastock DLL because the Metastock Formula Language lacked a simple way of referencing prices from the entry day of the trade."

So you may not be able to code a fast, efficient equivalent to Dale's function using the MS formula language alone. But have a go and let us know how you're progressing.

tradetime  
#7 Posted : Thursday, August 10, 2006 5:47:18 PM(UTC)
tradetime

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 6/29/2006(UTC)
Posts: 10

Thanks guys, and yes i have gone to dales site and it is something i will use. But first i still want to learn how to do my original request myself. I have only just started learning Metastock, formulas etc and i have only very basic experience on computers etc. So i just want someone to walk me through writing this formula for my Trailing stop. This will also give me experience. Any help appreciated.
Users browsing this topic
Guest (Hidden)
Similar Topics
Trailing Stop loss system with optimisation poarametres (Formula Assistance)
by mt4eas 1/30/2015 3:45:10 AM(UTC)
Trailing stop loss in system tester (Formula Assistance)
by dhirbisht 11/16/2009 11:33:32 PM(UTC)
Stop loss and trailing stop loss in Enhanced system tester ?? Help plz.. (Formula Assistance)
by schumii7 4/26/2009 9:28:29 AM(UTC)
Trailing Stop Loss exploration - Help (Formula Assistance)
by sashikanth 10/5/2006 12:15:17 AM(UTC)
Trailing stop loss [RESOLVED] (Formula Assistance)
by tradetime 7/20/2006 11:35:41 PM(UTC)
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.