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

Notification

Icon
Error

Options
Go to last post Go to first unread
sharezack  
#1 Posted : Friday, September 29, 2006 6:01:03 AM(UTC)
sharezack

Rank: Member

Groups: Registered, Registered Users
Joined: 9/15/2006(UTC)
Posts: 24

Was thanked: 1 time(s) in 1 post(s)

hi

wanted to check from others if the exploration is correct.

If(C>= Ref(HHV( H,200 ),-1),1,0) and RSI(14)>30 and RSI(14)<70 and MACD()>Mov(MACD(), 9, E)

I am trying to check the 1. the close has to be high of last 5 days high and at the same time RSI should be greater than 30 and less than 70 and also the MACD should be above the signal line.


kanellop  
#2 Posted : Friday, September 29, 2006 8:16:15 AM(UTC)
kanellop

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 6/3/2005(UTC)
Posts: 181

I am confuse.
You say that you want the Highest Value of High Closing Price of the Last 5 Days.
But you have the Ref(HHV(H,200), -1) inside your Formula!
Anyway if you want the Highest Value of High Closing Price of the Last 5 Days, then, your Formula is like:
If((HHV(C,5) and RSI(14)>30 and RSI(14)<70 and MACD()>Mov(MACD(), 9, E)), 1, 0)
Kind Regards,
George Kanellopoulos.
sharezack  
#3 Posted : Monday, October 2, 2006 8:53:20 PM(UTC)
sharezack

Rank: Member

Groups: Registered, Registered Users
Joined: 9/15/2006(UTC)
Posts: 24

Was thanked: 1 time(s) in 1 post(s)

hi

thanx for the reply...i am checking the close has to be higher than the high of previous 5 days.

hayseed  
#4 Posted : Monday, October 2, 2006 9:48:30 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey zack.... you really don't need the 'if' part in one line conditional statements.... meta assumes 'if' in situations such as this and returns 1 or 0.....

there might be times where you are stacking multiple binary waves in the same indicator window... in that case the 'if' is handy.... you could plot '1' for your first condition and '3' for another and so on..... h

C>= Ref(HHV( h,5 ),-1) AND RSI(14)>30 AND RSI(14)<70 AND MACD()>Mov(MACD(), 9, E)

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.