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

Notification

Icon
Error

Options
Go to last post Go to first unread
j32driver  
#1 Posted : Sunday, October 28, 2007 7:46:05 AM(UTC)
j32driver

Rank: Member

Groups: Registered, Registered Users
Joined: 6/29/2007(UTC)
Posts: 19

Hello Everyone,
Its that time again... I need some more help. I'm trying to write a system tester that trades the same way I trade in real life. I'm using Metastock 10 EOD.

Here is how I trade:
When a buy signal is generated, I set a "contingent" buy order at the high of the bar that generated the buy signal. If the intraday price goes higher than my contigent order within the next 4 days, then I'm entered long. If the price fails to go higher than the high of the "signal bar" within 4 days, then the signal is considered a failure and the contingent order is canceled.

When I'm long a position, I place a stop at the low of the previous days bar. If the intraday price moves below the stop, I'm out of the position.

What I don't know:
I don't know how to reference the high of the specific bar that generated the "buy" signal. I also am unsure what the value of "P" really is. I know the system tester figures buying and selling at intraday price levels, but I suspect "P" isn't the correct value to use. In my mind, "P" should equal "Current Price", but I read it to be the "Close" price in the manual.

How do I write?
Long Entry = Intraday Price > High of the Bar that was {Buy Signal}, but only if {Buy Signal} was within 4 days ago.


This is my 1st guess, but I have no confidence that I'm even close to correct.

A1:={Buy Signal};
LE:=P > alert(highestsince(1, A1, C),4)
LX:=P<ref(L,-1)

LE


Thanks in advance for the education,
J32driver

j32driver  
#2 Posted : Monday, November 5, 2007 8:16:03 AM(UTC)
j32driver

Rank: Member

Groups: Registered, Registered Users
Joined: 6/29/2007(UTC)
Posts: 19

Anyone? .... anyone?.... Bueller?... Bueller?..... (sorry... just saw the movie again)
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.