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.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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.