Question about macd
-
Hello
thank you for your guidance
In my strategy, two MACDs are used (main and secondary). I want the transaction to be opened only at the first color change of the secondary MACD when the main MACD changes color, and the transaction will not open until the next color change of the main MACD.
Conditional description please...

-
Your use of that boolean variable is the way, but you need to separate the structure controlling what's happening on the main MACD from what's happening on the second. Additionally, toy need to specify when the boolean variable is changed into 'false' again.