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

Notification

Icon
Error

Options
Go to last post Go to first unread
Leverage  
#1 Posted : Saturday, August 21, 2010 11:29:39 AM(UTC)
Leverage

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 1/25/2010(UTC)
Posts: 44
Location: Rome, IT

Hi Guy,
i'm writing for this simple expert:

Bullish: (Mov(C,6,W)>Mov(C,12,W)) AND (Mov(C,12,W)>Ref(Mov(C,12,W),-1))
Bearish: (Mov(C,6,W)<Mov(C,12,W)) AND (Mov(C,12,W)<Ref(Mov(C,12,W),-1))

The conditions are:
1. cross of moving averages (6W and 12W)
2. slow moving averages MUST BE in trend

How can I write the conditions? Because if i write the same conditions related to bullish and bearish the expert make an arrow for each bar that satisfying the conditions.

TNX
henry1224  
#2 Posted : Sunday, August 22, 2010 10:17:10 AM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 3 time(s) in 3 post(s)
You have written 2 conditions,but have not coded them into a latch or system!

Bullish: (Mov(C,6,W)>Mov(C,12,W)) AND (Mov(C,12,W)>Ref(Mov(C,12,W),-1));
Bearish: (Mov(C,6,W)<Mov(C,12,W)) AND (Mov(C,12,W)<Ref(Mov(C,12,W),-1));
Signal:=Bullish-Bearish;
Signal=1 and Ref(Signal,-1)<1 {Long signal}

Bullish: (Mov(C,6,W)>Mov(C,12,W)) AND (Mov(C,12,W)>Ref(Mov(C,12,W),-1));
Bearish: (Mov(C,6,W)<Mov(C,12,W)) AND (Mov(C,12,W)<Ref(Mov(C,12,W),-1));
Signal:=Bullish-Bearish;
Signal=-1 and Ref(Signal,-1)>-1 {Short Signal}

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.