Rank: Advanced Member
Groups: Registered, Registered Users Joined: 4/11/2012(UTC) Posts: 45
|
Dear Friends, Currently I m working on MACD Crossover formula..I want to measure high when MACD Cross it's signal line as per formula given below Valuewhen(1,Cross(MACD(),mov(MACD(),9,e)),H) it works fine.. but I also want to measure the highest high when MACD was trading above its signal line previously... Please help me in this formula This formula is for Explorer Thanks in advance..
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,971
Thanks: 94 times Was thanked: 156 time(s) in 151 post(s)
|
Originally Posted by: kaushik1  Dear Friends, Currently I m working on MACD Crossover formula..I want to measure high when MACD Cross it's signal line as per formula given below Valuewhen(1,Cross(MACD(),mov(MACD(),9,e)),H) it works fine.. but I also want to measure the highest high when MACD was trading above its signal line previously... Please help me in this formula This formula is for Explorer Thanks in advance..
Hi, To clarify, are you looking for the highest high since MACD was previously above its signal line? If so, the following formula might help: Code:xover:= Cross(MACD(), Mov(MACD, 9, E));
xunder:= Cross(Mov(MACD, 9, E), MACD());
ValueWhen(1, xunder, Ref( HighestSince(1, xover, H), -1) )
|
|
|
|
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.