Help me please how to i check MACD Crossover Signal by using "HasCrossedAbove"

Created at 29 Apr 2024, 07:19
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
MongolTrader's avatar

MongolTrader

Joined 12.02.2015

Help me please how to i check MACD Crossover Signal by using "HasCrossedAbove"
29 Apr 2024, 07:19


I use macd crossover signal by using more code like bellow

if (sinal2>macd2 && signal1<macd1) 

Please help me how to use Macd.HasCrossedAbove funcion to help optimize my code.

Thank you very much.


@MongolTrader
Replies