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

Notification

Icon
Error

Options
Go to last post Go to first unread
kaushik1  
#1 Posted : Tuesday, December 1, 2020 3:39:54 AM(UTC)
kaushik1

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

MS Support  
#2 Posted : Tuesday, December 1, 2020 4:19:37 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,929

Thanks: 85 times
Was thanked: 154 time(s) in 150 post(s)
Originally Posted by: kaushik1 Go to Quoted Post

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