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 אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יוכלו להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אבל השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

רוצה להשתמש בסקריפ זה בגרף?

כתב ויתור