DojiEmoji

[KL] Bollinger Bands Consolidation Strategy

DojiEmoji تم تحديثه   
This strategy will enter into long position based on the volatility of prices implied by indicators of (a) Bollinger bands, and (b) ATR.

Application of Bollinger bands ("BOLL")
Using plain vanilla settings for BOLL (i.e. 20 period moving average, and 2 standard deviations of closing prices), we are interested to know about the shape of the area that is bounded by the upper and lower bands.

In theory, consolidation happens when volatility of price decreases. Visually speaking, this is represented by the narrowing of the upper/lower bands. This strategy considers the narrowing of BOLL bands as the primary indicator for long-entry.

Application of ATRs (as confirmations)
Firstly, to confirm that BOLL bands are narrowing (as mentioned above), the ATR at a potential point of entry is compared against the standard deviation of prices over BOLL's lookback periods. Once again, visualizing the shape of BOLL bands during consolidation, we assume the lines begin to squeeze when the distance between the center line and upper/lower band is less than two current ATRs.

Secondly, this strategy looks into the moving average of ATRs to assure that prices are not too choppy when entering into market. If the moving average of ATR decreases at a point in time such that all the above conditions are met, then we can assert that the volatility of price is decreasing.

Thirdly, ATR is used for determining the size of our trailing stop loss. We will keep the multiplier fixed at two.
ملاحظات الأخبار:
Added a dropdown menu in Settings allowing user to select between different buy setups.
ملاحظات الأخبار:
- Added lines plotting ATR relative to center line of Bollinger bands
- Added additional buy confirmation signals (i.e. MACD) for entry during consolidation
- Added exit signals, selectable in settings (i.e. risk-reward ratio, and bearish price action signals)
ملاحظات الأخبار:
Added option to ignore exit signals during consolidation (unless hitting stop loss)
ملاحظات الأخبار:
What's new in the latest update:
- added alerts
- additional buy and exit setups
ملاحظات الأخبار:
Reduced the frequency of alerts
ملاحظات الأخبار:
Combined entry and exit confirmations, script will now apply setups in combinations, no longer need to select them individually in settings.
ملاحظات الأخبار:
- Simplified entry setup by reducing the number of confirmations to looks for (i.e. no need to refer to MACD when there is not much price momentum during squeeze)
- For exit signal with respect to bearish candlesticks, script will now consider the length of red-bar vs ATR
نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟