Bitcoin

Long and Short MACD Idea

1 542
Hi All

Need help with my script.

I want to only enter a long position if the MACD line is above 0 and there has been a histogram crossover above 0. Trade ends when hist drops below 0.

A short trade is visa versa. If MACD line is below ) and histogram crossunder below 0. Trade ends when histo crosses above 0.

My crossovers work fine. Adding the MACD rule is killing me. Ive tried everything with errors so thought id throw it out there.

I know the results will be great

cheers

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.