OPEN-SOURCE SCRIPT

Three EMA with CPR Strategy ( Trade Moments )

Explanation of the Strategy Components
Three EMAs:

Fast, medium, and slow EMAs are set to 9, 21, and 50 by default.
A bullish trend is identified when the fast EMA is above the medium EMA, which is above the slow EMA.
A bearish trend is identified when the fast EMA is below the medium EMA, which is below the slow EMA.
Central Pivot Range (CPR):

The CPR is calculated using the previous day’s high, low, and close.
pivot is the central pivot point, bc is the bottom central pivot, and tc is the top central pivot.
The CPR acts as a support/resistance zone:
Price above the top central pivot (tc) in a bullish trend is considered a strong long entry.
Price below the bottom central pivot (bc) in a bearish trend is considered a strong short entry.
Trade Entry Conditions:

For a long position, both a bullish trend and a price breakout above the top central pivot (tc) are required.
For a short position, both a bearish trend and a price breakdown below the bottom central pivot (bc) are required.
Exit Condition:

Optional exits occur if the price crosses the central pivot (pivot), signaling a potential weakening of the trade.
This script combines trend direction with the EMA alignment and uses the CPR to refine entry and exit points based on support and resistance zones. Adjust the EMA lengths and CPR levels based on your asset’s behavior for better tuning.






Chart patternsMoving AveragesPivot points and levels

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

免責事項