מעודכן

Dynamically Adjusting EMA Crossing

1 383

The Exponential Moving Average is the most commonly used indicator in every market. but no one can predict which pair of exponential moving average crossing will work best together. Every instrument require different EMAs crossing. It can be 2 EMA crossings or 3 EMA crossings.

Dynamically Adjusting EMA crossing tries to solve this issue. Algorithm finds the optimal EMA crossing setting for every instrument across all timeframes based on the EMA lengths provided in the settings. It evaluates the most profitable crossing combination for each instrument. The logic backtests the different combinations of EMA crossing based on the EMA lengths provided in the indicator's settings.

There are 3 EMA options in the settings Fact, Slow and Long. Indicator's Settings have the option to choose 2 EMA crossings or 3 EMA crossings.

Default Settings
Fast : 5 to 10
Slow : 13 to 19
Long : 20 to 60

Please do keep in mind that the performance of the indicator reduces as we increase the default settings range.

Please contact me for access
הערות שחרור
Learn, then lock: The old version kept changing its pick on every bar. Now it learns from the first part of the chart (blue tint), locks its pick at the dashed orange line, and never changes it again. The rest of the chart shows how the locked pick really performs.
Small fixes:

Signals only appear on closed bars — no more flickering.
Buy and sell alerts now have different messages with ticker and price.
Bad input values can't crash the script anymore.
Updated to Pine Script v6.

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.