OPEN-SOURCE SCRIPT

[EURUSD60] BB Expansion Strategy

Overview
This is a strategy that can be used in the EURUSD 60 time frame.
It is a trend-following method that uses Bollinger Bands Expansions.
The idea of using Bollinger Bands expansion is well known to the general public, but I don’t know any strategy that this idea has been PINE coded.

The three main components of this strategy are as follows.
・Long term BB and Short term BB : When the short term BB expands more than the long term BB, it suggests the occurrence of a trend.
・14EMA of 240 t/f : The direction of 14EMA of the upper time frame is used as the trend direction.
・ATR lines : As a stop-loss line and a take-profit line.


Description
Fig. Long entry pattern
لقطة

Fig. Short entry pattern
لقطة

・Description of lines
Gray : Large BB (=Long term BB)
White : Small BB (=Short term BB)
Blue or Red line : Upper t/f EMA(default: 14EMA), blue is up-trend, red is down-trend
Yellow : Stop loss line by ATR(the term is 14)
Purple : Take profit line by ATR(the term is 14)

・Description of strategy
First of all, when the small BB expands more than the large BB, this strategy detects the occurrence of a trend.
Second, When the price crosses over or crosses under small BB basis, this strategy entries long or short to trend direction (by upper time frame 14EMA).
The default stop-loss range is three times ATR value, and the default take-profit target is 1.5 times the stop-loss range (=risk reward ratio is 1.5).
Average True Range (ATR)Bollinger Bands (BB)Exponential Moving Average (EMA)

نص برمجي مفتوح المصدر

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

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


يعمل أيضًا:

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