Rank: Member
Groups: Registered, Registered Users Joined: 2/23/2007(UTC) Posts: 26
|
Dear All,
There is this problem that has been bugging me through the past 5 days. I want to create an exploration that finds stocks whose Binary Wave #2 MACD/Trigger Binary Wave indicator has just signalled a Buy, i.e., yesterday, its value was -1 (or below 0) and today its value is 1 (or above 0). I created this formula for the exploration, but it is giving wrong results. What am I doing wrong. Kindly help me. The code is:
colA:
fml( "Binary Wave #2 MACD/Trigger Binary Wave") > Ref ("Binary Wave #2 MACD/Trigger Binary Wave") ,-1) AND fml( "Binary Wave #2 MACD/Trigger Binary Wave") >0
Thanks for your help.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey mozillan..... there a couple things incorrect in your code..... below should return your results wanted..... you didn't mention the sell side so i only coded the buy signal....... and used the exact formula name you mentioned.....h
---------------------------------
Exploration notes Col A:
a:=Fml( "Binary Wave #2 MACD/Trigger Binary Wave"); aa:= a = 1 AND Ref(a,-1) < 1; aa
filter colA Filter enabled Yes Periodicity Daily Records required 500
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 2/23/2007(UTC) Posts: 26
|
Thanks, Hayseed.
You are great.
|
|
|
|
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.