INVITE-ONLY SCRIPT

Macro Score -- User-Customized Scores and Signals

تم تحديثه
A "macro score", as defined here, is created by giving various weights to different signals and adding them together to get one smooth score. Positive or negative values are assigned to each of the signals depending on if the statement is true or false (e.g. DPO > 0: +1, DPO < 0: -1). This manner of strategy allows for a subset of the available signals to be present at one time as opposed to every technical signal having to be active in order for a long/short signal to trigger. This particular strategy allows the user to choose between 18 different signals to be used in scoring as well as allowing the user to determine the individual weights of each score as well as the overall threshold to determine long or short signals. Weights for each score range between 1 and 5, with 5 being the greatest weight. The overall threshold for long or short is dependent on the total possible weights added together (i.e. if your weights total -10 or +10, a threshold within this range must be used).

The macro score itself is printed in an underlay as a white line that goes between the maximum positive and negative values for all weights added together for this strategy. In addition to the macro score line, a green momentum line (sourced by the macro score itself) has been included. A crossover/crossunder of the macro score and the macro momentum line is included into the long/short signal syntax in addition to a threshold for the macro score. The length of the Macro Score's momentum line can be found in the settings.

The current signals to choose from include:
- ADX Threshold - if the Average Directional Index is above a set threshold, signal positive or negative
- CMF Threshold - if the Chaikin Money Flow oscillator is above 0, signal positive; otherwise, signal negative
- CMO > TSI Signal - signal positive if there is a cross of the Chande Momentum Oscillator and the True Strength Index signal line
- CMO Threshold - if the Chande Momentum Oscillator is above 0, signal positive; otherwise, signal negative
- DPO Threshold - if the Detrended Price Oscillator is above 0, signal positive; otherwise, signal negative
- EOM Threshold - if the Ease of Money Oscillator is above 0, signal positive; otherwise, signal negative
- Jurik Threshold - if the Jurik price line (from the Jurik Volatility Bands) is above 0, signal positive; otherwise, signal negative
- MACD Threshold - if the MACD signal line is above 0, signal positive; otherwise, signal negative
- McGinley Cross - a crossover of a fast McGinley Dynamic length line and a slow McGinley Dynamic line signals positive; otherwise, signal negative
- PSAR - if the direction of the PSAR is heading long, signal positive; otherwise, signal negative
- ROC Threshold - if the Rate of Change oscillator is above 0, signal positive; otherwise, signal negative
- RSI Threshold - if the Relative Strength Index is above 50, signal positive; otherwise, signal negative
- Stoch RSI Threshold - if the Stoch RSI is above 50, signal positive; otherwise, signal negative
- Supertrend - if the Supertrend determines long, signal positive; otherwise, signal negative
- TSI Cross - a crossover of the True Strength Index value line and the TSI signal line signals positive; otherwise, signal negative
- TSI Signal Threshold - if the TSI signal line is above 0, signal positive; otherwise, signal negative
- Williams Alligator Cross - if the Williams Alligator lips cross the teeth and jaw, signal positive; otherwise, signal negative
- Williams %R - if the Williams %R is above -50, signal positive; otherwise, signal negative

Take profit, stop loss, and trailing percentages are also included, found at the bottom of the Input tab under “TT and TTP” as well as “Stop Loss”. Make sure to understand the TP/SL ratio that you desire before use, as the desired hit rate/profitability percentage will be affected accordingly. This strategy does NOT guarantee future returns. Apply caution in trading regardless of discretionary or algorithmic. Understand the concepts of risk/reward and the intricacies of each strategy choice before utilizing them in your personal trading.

Profitview Settings:
If you wish to utilize Profitview’s automation system, find the included “Profitview Settings” under the Input tab of the strategy settings menu. If not, skip this section entirely as it can be left blank. Options will be “OPEN LONG TITLE”, “OPEN SHORT TITLE”, “CLOSE LONG TITLE”, and “CLOSE SHORT TITLE”. If you wished to trade SOL, for example, you would put “SOL LONG”, “SOL SHORT”, “SOL CLOSE LONG”, and “SOL CLOSE SHORT” in these areas. Within your Profitview extension, ensure that your Alerts all match these titles. To set an alert for use with Profitview, go to the “Alerts” tab in TradingView, then create an alert. Make sure that your desired asset and timeframe are currently displayed on your screen when creating the alert. Under the “Condition” option of the alert, select the strategy, then select the expiration time. If using TradingView Premium, this can be open-ended. Otherwise, select your desired expiration time and date. This can be updated whenever desired to ensure the strategy does not expire. Under “Alert actions”, nothing necessarily needs to be selected unless so desired. Leave the “Alert name” option empty. For the “Message”, delete the generated message and replace it with {{strategy.order.alert_message}} and nothing else.

Sample setup for SOLUSDT 30M:
- Score 1 - Value 4, PSAR (0.05 start, 0.02 increment, 0.2 max value; sourced open)
- Score 2 - Value 4, Jurik Threshold (JVB Length 25, JVB Smoothing 6, JVB Price Threshold 0)
- Score 3 - Value 5, DPO Threshold (DPO Length 40, uncentered)
- Score 4 - Value 5, CMO Threshold (CMO Length 40, sourced open)
- Score 5 - Value 2, MACD Threshold (Fast Length 12, Slow Length 30, sourced open)
- Macro Length 21
- Long Threshold - -3
- Short Threshold - +3
- Take Profit % - 0.9/0.9
- Trail % - 0.005
- Stop Loss % - 1.4

Sample setup for AVAXUSDT 20M:
- Score 1 - Value 3, TSI Cross (Long Length 25, Short Length 16, Signal Length 17)
- Score 2 - Value 2, TSI Signal Threshold (same settings as the TSI Cross)
- Score 3 - Value 2, Jurik Threshold (JVB Length 20, JVB Smoothing 8, JVB Price Threshold 0)
- Score 4 - Value 2, DPO Threshold (DPO Length 40, uncentered)
- Score 5 - Value 1, Stoch Threshold (K/D 3, RSI (Stoch) Length 10, Stochastic Length 4, sourced open)
- Macro Length 13
- Long Threshold - +5
- Short Threshold - -5
- Take Profit % - 1.2/1.2
- Trail % - 0.005
- Stop Loss % - 1.5

ملاحظات الأخبار
-Added ATR based stop loss and take profit feature
ADXautomatedtradingCMFCMOCryptocurrencydpoEOMForexstatisticsTrend AnalysisTSI

نص برمجي للمستخدمين المدعوين فقط

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

لا تقترح TradingView الدفع مقابل النصوص البرمجية واستخدامها حتى تثق بنسبة 100٪ في مؤلفها وتفهم كيفية عملها. في كثير من الحالات، يمكنك العثور على بديل جيد مفتوح المصدر مجانًا في نصوص مجتمع الخاصة بنا .

تعليمات المؤلف

Message directly via TradingView or via email at thubbard@plantfi.io

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

تحذير: ‎‎‎يرجى القراءة‎‎ قبل طلب الوصول.

Take your trading to new heights with LeafAlgo Premium Indicators and Strategies. Use code SSMS4MGK at checkout for a 50% discount on your first purchase at LeafAlgo.com !

Join our Discord community today!
discord.gg/rNQ2QW59Pn
يعمل أيضًا:

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