- ago
In code block, I want to set a condition of MACD > or < MACD Signal.

I am unable to do it as when I use Indicator compare to indicator. When I use EMA for the second indicator, the EMA variable is restricted to close, ...., but not another indicator such as the MACD indicator.

Is there a different conditional option that I can used?
0
150
Solved
6 Replies

Reply

Bookmark

Sort
- ago
#1
I just realize that I can use:
MACDHist > 0 to achieve the same thing.

I can do that because MACDHist is defined.

However, the signal line for other indicator are not defined in the codeblock.

So, my question is:
Can we have a new qualifier of INDICATOR compare with SIGNAL?

0
- ago
#2
QUOTE:
Can we have a new qualifier of INDICATOR compare with SIGNAL?

This is not required, with WL's flexibility you can accomplish a simple task like this with Transformer indicators for example.
0
Best Answer
Cone8
 ( 6.07% )
- ago
#3
Just use the condition "Indicator Crosses Signal Line". This lets you smooth any indicator (like MACD) with any smoother (like EMA).
0
- ago
#4
Dear Cone,

I am not looking for Cross-Over. I just want a conditation that:

Indicator is > than Signal line, this condition can be achieve after the cross-over bar.
0
Cone8
 ( 6.07% )
- ago
#5
Then Eugene had the right answer. Use the IndOnInd Transformer as the second indicator for the Indicator Compare block.
0
- ago
#6
Thanks. SmoothInd is the right answer for what I want to achieve.

0

Reply

Bookmark

Sort