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

Notification

Icon
Error

Options
Go to last post Go to first unread
rossco1  
#1 Posted : Friday, July 10, 2009 4:08:49 AM(UTC)
rossco1

Rank: Newbie

Groups: Registered, Registered Users
Joined: 7/9/2009(UTC)
Posts: 2

Hi - I'm new to the forum and Metastock, I'm trying to replicate a simple breakout system to buy or sell on the 55 day high and low. I'm currently using the following - but when I run the test it's not generating any buy / sell signals:

BUY ORDER

Close>(HHV(c,55))

SELL ORDER

Close<(LLV(c,55))

Can anyone point me in the right direction? Any help would be appreciated.

thanks
wabbit  
#2 Posted : Friday, July 10, 2009 5:55:17 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)
Hi rossco,

Welcome to the forum.

Think carefully about what your code says...

If the lastest bar is the highest closing value in the last 55 bars, then how can the close be greater than this value?

You have a couple of options:
Code:
C=HHV(C,55);

or
Code:
C>Ref(HHV(C,54),-1);


There aren't the same, so try to appreciate the difference. Once you have, then you'll be better placed to employ the turtle logic to your trading.


Hope this helps.

wabbit [:D]

rossco1  
#3 Posted : Friday, July 10, 2009 5:57:34 AM(UTC)
rossco1

Rank: Newbie

Groups: Registered, Registered Users
Joined: 7/9/2009(UTC)
Posts: 2

that's great - thanks for your help!
VOBiX  
#4 Posted : Wednesday, July 22, 2009 6:28:42 AM(UTC)
VOBiX

Rank: Newbie

Groups ready for retrieval: Registered, Registered Users, Subscribers
Joined: 12/18/2008(UTC)
Posts: 7

How can we develop a sytem test for this formula.

For example HHV(H,55) is 100 and the last bar's valueas are O=98 L=96 C=99 H=103 (step is 1)
I want to buy at 101 when the price is over HHV(H,55) and I do not want to wait for closing of the bar. If I wait for the close it buys ay the next bars opening price.

Can we do this? and how?

Thanks
wabbit  
#5 Posted : Saturday, July 25, 2009 1:43:13 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)
Don't use a Market Order in the EST; use a stop/limit/stoplimit order as required.


wabbit [:D]

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.