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

Notification

Icon
Error

Options
Go to last post Go to first unread
Colin2655  
#1 Posted : Tuesday, March 4, 2008 8:40:03 AM(UTC)
Colin2655

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/4/2008(UTC)
Posts: 1

Can someone please me help me translate the following EasyLanguage (Tradestation) formula to Metastock, any help would be appreciated.


{Set TradeStation to close trade at end of day}
if low<lowest(low,2)[ 1 ]
and dayofweek(Date)<4
and low[l]<low[2]
and open tomorrow<low[l]
and range>range[l]
and open tomorrow>low+.50
then buy ("Buy D13") tomorrow at low[l] + 1 point stop;

johnl  
#2 Posted : Tuesday, March 4, 2008 10:00:35 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

Need to know what "range" is defined as, then should be able to do it.
johnl  
#3 Posted : Wednesday, March 5, 2008 10:37:19 AM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

Start with this - you can change the variable as you wish.

a1:=If((Ref(L,-1)<Ref(L,-2)) AND
(Ref(L,-1)<Ref(L,-3)),1,0);
a2:=If((DayOfWeek()<5),1,0);
a3:=If((Ref(L,-1)<Ref(L,-2)),1,0);
a4:=If((O<Ref(L,-1)),1,0);
a5:=If((Ref(H-L,-1)>Ref(H-L,-2)),1,0);
a6:=If((O>L+.50),1,0);
a1{*a2}*a3*a4*a5{*a6}
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.