PROTECTED SOURCE SCRIPT
Mis à jour

40/3 Swing Indicator

7 279
This indicator is developed using the basic rules of 40/3 swing trading.
Rule #1 - New high for the last 40 days
Rule #2 - 3 Consecutive days of the close being lower than the previous day
Rule #3 - 4th days closing price is greater than the previous day
When all 3 Rules are met, it will create the Aqua colored label indicating that the 40/3 criteria is met and a reversal is possible.
Rule #4 - 4th days closing price is within the top 25% of that days high/low range.
When Rule #4 is also met, it creates the Red label indicating that there is a very strong chance the reversal has begun.
Notes de version
Added the ability to change the pullback days. It is defaulted to 3.
Notes de version
Cleaned up script to make it easier to read and faster.
Created a new function to allow consecutive counting based on criteria passed in, useful for many projects!

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.