Write script on TradingView

Job ID: 32587967

Budget: $30 – $250 USD

I need a code on TradingView which will look at MACD indicator on 6 hour and 1 hour timeframes and send a webhook if requirements are met.

When the bar of the histogram of 6h MACD is less than 0 and at the same time six consecutive 1h MACD bars of the histogram are also less than 0, the script should send a webhook.
Related categories: PHP JavaScript Python Software Architecture Metatrader