TradingView MACD strategy

Job ID: 33793743

Budget: €30 – €250 EUR

Currently I have:

MACD strategy code with the different from usual MACD exit logic. Custom MACD I am using close position when histogram drops from its maximum for more than some percent value and re-enter position when histogram return above its exit level. You can see, how it works in the attachments (screenshot 1).

So, to the default MACD strategy in code was added:

• Exit from the long position if MACD histogram drops for more than X% from the TOP
• Exit from the short position if MACD histogram drops for more than X% from the TOP
• All indicators’ orders contain a comment field for webhook, so the strategy can be fully automized through “3Commas” (screenshot 2).
• Backtestst period

The following functions must be added to the current code:

• Add option to set different exit values for long & short positions
• Add two more exit points for long & short positions, so we would close X% of the position when the histogram drops for more than X% from the top. You can see a concept in the attachments (screenshot 3). Each position exit trade must have a separate field for webhook in the frontend.
• Add option to not just close position when histogram drops for more than X% from the TOP but enter long/short at this moment.
• Add optional stop loss for long positions
• Add optional take profit for short positions
• Add optional stop loss for short positions
• Add optional trailing TP for short positions
• Add optional trailing TP for long positions
Related categories: Pine Script