OPEN-SOURCE SCRIPT
Aggiornato

3 Candle Alert

378
This is a test for integration using a webhook. I am publishing it so I can share it. Ultimately, this is what we want to do:

1. Trade Entry Rules:

Wait until at least the 3rd bar of the day (15 minutes after market open) before entering the first trade.
Order of Priority for Entry:
Look for two consecutive volume bars of the same color (the second bar must have higher volume than the first).
Look for a “price push” beyond the high or low of the day (as determined in the first 15 minutes).
2. Trading Direction:

If the volume bars are RED, I take a Long Position.
If the volume bars are GREEN, I take a Short Position.
Note di rilascio
The previous script was detecting the condition, but it wasn't alerting until the NEXT 5-minute candle closed. This script attempts to fix that.
Note di rilascio
Still wasn't working right. Testing again.
Note di rilascio
Trying again.
Note di rilascio
One more time
Note di rilascio
Still trying.
Note di rilascio
Here is the final version I am using with an Option Alpha bot. I checks the volume at the close of 2 - five minute candles for either both up and green or both down and red. Then it check the price at the close of the third 5-minute candle to see if the price is higher or lower than the close of the second 5-minute candle. There is a Bullish and Bearish alert available respectivley.
Note di rilascio
There was an error with the second bearish volume candle calculation.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.