PROTECTED SOURCE SCRIPT
更新済 MyMA Strategy

This script combines 3 Moving Averages (MAs) with Bollinger Bands to build a trend based trading strategy. The 3 MAs (I, II and III ) default lengths come from one of the Fibonacci Phi^3/2 sub series (17, 72 and 305), but can be changed to any values, particularly to the traditionally used 20, 50 and 200.
The used Moving Averages can be chosen between EMA and MyMA. MyMA is a Moving Average that tries to mimic Bo William's MIMA. Due to the close resemblance between MyMA and MIMA, I do not feel comfortable to open this script source code. In order to learn how this script operates with EMAs, please refer to my Custom EMA Strategy indicator that has its source code open.
Bollinger Band length is set to the same length as MA I. Up to my knowledge, Fibonacci Phi^3/2 sub series lengths were first proposed by Bo Williams.
Buy Recommendations happen when src (close) > MA I > MA II, MA I angle > 0 degree, MA II angle > -1 degree and MA III angle > -1 degree. My simulations have show that -1 degree usage results in better returns than zero degree.
Top Buy Recommendations happen when, besides Buy recommendation conditions are met, src (close) > HBand, the Bollinger Band High Band.
Sell Recommendations come in 3 flavors: Short Term (close < MA I), Medium Term (close < MA2) and Long Term (MA I < MA II).
Angle calculation is performed by calculating the "normalized" tangent over a delta interval. Normalization is required to make the angle independent of the price range.
The used Moving Averages can be chosen between EMA and MyMA. MyMA is a Moving Average that tries to mimic Bo William's MIMA. Due to the close resemblance between MyMA and MIMA, I do not feel comfortable to open this script source code. In order to learn how this script operates with EMAs, please refer to my Custom EMA Strategy indicator that has its source code open.
Bollinger Band length is set to the same length as MA I. Up to my knowledge, Fibonacci Phi^3/2 sub series lengths were first proposed by Bo Williams.
Buy Recommendations happen when src (close) > MA I > MA II, MA I angle > 0 degree, MA II angle > -1 degree and MA III angle > -1 degree. My simulations have show that -1 degree usage results in better returns than zero degree.
Top Buy Recommendations happen when, besides Buy recommendation conditions are met, src (close) > HBand, the Bollinger Band High Band.
Sell Recommendations come in 3 flavors: Short Term (close < MA I), Medium Term (close < MA2) and Long Term (MA I < MA II).
Angle calculation is performed by calculating the "normalized" tangent over a delta interval. Normalization is required to make the angle independent of the price range.
リリースノート
This update is just to fix the EMA calculation in the absence of enough candles. Instead of using TV standard zero price, I use the source (close) price.リリースノート
This update adds the option for using an intermediate length MA between MA I and MA II. It also adds some thresholds to be checked before showing a buy recommendation.リリースノート
This update adds a new sell indication (colored maroon) based on the decrease of the angle between the 2 smaller MAs. It also adds new parameters to adjust buy and sell conditions. For details check the Custom EMA Strategy Indicator source code.リリースノート
This update adds a new set of 3 MAs in order to detect consolidation conditions and enhance buy recomendation decisions.リリースノート
This update improves the consolidation detection algorithmリリースノート
This update just changes some parameter default values and improves buy recommendation condition detection.リリースノート
This updates changes the Long Term Sell condition to src < MA III and creates the Long Long Term Sell condition to when MA I < MA II. It also removes the requirement of red candle to maroon sell condition and tweaks some parameter default values.リリースノート
This update is just to describe the new Minimum Delta % parameter to set the minimum distance between MA I and MA II that allows a buy condition.リリースノート
This update just corrects the name of the parameter that drives the maroon selling condition to fit its actual meaning. It also updates its default vaule.リリースノート
This update adjusts the buying recomendation condition when it is not in a low trend.リリースノート
This update adjusts the MA calculation method.リリースノート
This update adjusts buy and sell recommendation conditions. It also adds a new orange flag, named PC, to indicate that is forbidden to buy. This PC flag is angle based and its validity should be evaluated together with other aspects that could not fit in here. We recommend coloring bars because buy flag condition transition is not very sensitive and we can see some green bars without a buy flag in the beginning. Please check the Custom EMA Strategy indicator source code for implementation details.リリースノート
This update adjusts buy and sell recommendation conditions. リリースノート
This update adds the option to hide the MAs, so that Buy and Sell indications can be used with other indicators without polluting the chart.リリースノート
This update just optimizes some implementation aspects.リリースノート
This update just adds a new option to hide the term related (red) Sell indication. It also changes default value for the PC (yellow) indication.リリースノート
This update just fixes a bug that prevented from hiding MyMA lines when "Show MyMAs" option was not selected.リリースノート
This update just adds a new Simple Cross Strategy option. As it has performed much better than the previous one, it was left as default. In order to use previous behavior, just uncheck the option.リリースノート
This update just a bug on the Sell indication condition detection.リリースノート
This update just adjusts the Buy condition for the Simple Cross Strategy to require the smallest length MA ROC to be greater than the Small Angle Threshold.リリースノート
This update just changes the selling condition on the Simple Cross Strategy mode to sell when MA 0 ROC < 0, if under consolidation (src < MA 5). Otherwise, Simple Cross Strategy sell condition keeps as before, when MA 0 < MA 2.リリースノート
This update just fixes the low trend condition definition for the Simple Cross Strategy to match its definition (src < MA 5)リリースノート
This update just changes the consolidation condition from (src < MA 5) to (src < MA 6) due to better backtesting results.リリースノート
This update adds another option to trigger sell when on consolidation (src < MA6). Before, on consolidation, the Simple Cross Strategy mode did a sell when MA 0 ROC < 0. Now, we can choose a MA X, with X ranging from 0 to 3, that triggers sell if src < MA X. If X equals -1, this new cross condition is disable and the previous one (MA 0 ROC < 0) is activated.リリースノート
This update just adds an extra line drawing to compensate for its disappearance when using Length shift Up or Down.リリースノート
This update is just to change the indicator illustration image.リリースノート
This update adds a new option named "Small Caps Behaviour" to force using consolidation behaviour on sell decisions.リリースノート
This update just fix the option position on the configuration panel.リリースノート
This update adds a new ROC based consolidation check option and a new field to set Bollinger Bands length. The new ROC based consolidation check option considers consolidation state when the condition (ROC 2 > ROC 3 and ROC 3 > ROC 4) is false.リリースノート
This update just adjusts the order of Buy/Top buy flags drawing.リリースノート
This update adds angle tests to the buy condition on the Simple Cross Strategy. Now, besides requiring MA 0 > MA 2, it also tests if Angle 2 > Small Angle Threshold and if Angle 6 > Large Angle Threshold. Please note that the Length Shift affects the actual lengths of the tested MAs.保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 無料かつ制限なしでご利用いただけます ― 詳細についてはこちらをご覧ください。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 無料かつ制限なしでご利用いただけます ― 詳細についてはこちらをご覧ください。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。