MACD 0 Line
-
Im trying to figure out how to signal a buy trade while the main line and signal line cross below the zero line. Ive tried setting a condition block macd(main line) < value 0 but that doesnt seem to work.
-
Try this one

-
I have that set for the main line and the signal line wich is working fine. Im trying to figure out how to trigger a buy on that cross while its crossing below the 0 line. that is... the main line and the signal line both cross while they are both already below the 0 line
-
does anyone know how this can be done?
-
You need to do the same roar recommended, but separately for both lines. And that will not happen at the same time so you will need at least a variable controlling when one oh the lines crossed while the other one is still below.
-
@l-andorrà what I am trying to do is indicate when the macd line and signal line cross each other when already above or below the zero line. Im not trying to indicate when the macd line or signal line cross the zero line.
-
@speedsk8r said in MACD 0 Line:
does anyone know how this can be done?
some condition in a row :
- MACD signal line > 0
- MACD main line > 0
- MACD signal/main line cross each other
-
@ambrogio hmm, do you mean I should use the if/then/else condition block? ive already tried setting a condition that uses the main and signal line with a condition </> value 0 and it doesnt take trades.
-
@speedsk8r The first two conditions are searching for signal and main line are above 0 at the same time, so the third condition looks for the cross

-
yes, this is the way my project currently looks but it will not take trades. it will only work if I have the mainline x> signal line condition block in place. but will also pass if the cross happens at the wrong time.
-
Iv'e had chatgpt show me how an if/then/else statement looks for input on the condition block capable of that kind of input. I will be trying that when I get home
-
@speedsk8r said in MACD 0 Line:
yes, this is the way my project currently looks but it will not take trades. it will only work if I have the mainline x> signal line condition block in place. but will also pass if the cross happens at the wrong time.
please, share your project