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

Notification

Icon
Error

Options
Go to last post Go to first unread
Sandov  
#1 Posted : Friday, April 29, 2011 8:33:16 PM(UTC)
Sandov

Rank: Newbie

Groups: Registered, Registered Users
Joined: 4/26/2011(UTC)
Posts: 7

Hey there, im trying to backtest a triple crossover system

UserPostedImage
as you can see in the chart the IN signal is quite OK.

The OUT signal has some special condition
the out signal should be: when price close below 40 ema but this shouldnt be and absolute condition.... may the price be below the 40 ema for 2 days but suddenly may go up again so in this case the out signal should be ignored...

how can i tell metastock that, "the out signal should be when... for example: closing price is below the 40 ema for 4 days or something like that.

thanks
jjstein  
#2 Posted : Friday, April 29, 2011 10:11:23 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
SUM(C<mov(c,40,e),4)


wabbit  
#3 Posted : Saturday, April 30, 2011 12:58:53 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)
Almost...



Code:

sum(C<mov(c,40,e),4)=4;



wabbit [:D]
jjstein  
#4 Posted : Saturday, April 30, 2011 8:40:01 AM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
Oops! Good catch...
Sandov  
#5 Posted : Wednesday, May 4, 2011 11:11:38 AM(UTC)
Sandov

Rank: Newbie

Groups: Registered, Registered Users
Joined: 4/26/2011(UTC)
Posts: 7

Thanks!
Sandov  
#6 Posted : Thursday, May 5, 2011 8:28:24 PM(UTC)
Sandov

Rank: Newbie

Groups: Registered, Registered Users
Joined: 4/26/2011(UTC)
Posts: 7

UserPostedImage
now developing the expert on this one....
the out sign (red arrow) repeat during the whole trend.

pd: im using the same out signal.

by the way, the "s" means short.
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.