Creativ3mindz

Market Slayer (i)

Creativ3mindz 已更新   
Market Slayer (i)

This script is designed to provide insights into market trends and generate trading signals based on a combination of moving average crossovers and trend confirmation. It aims to assist traders in identifying potential entry and exit points in the market.

Input Parameters:

Trend Timeframe: Allows the user to specify the timeframe for trend analysis. Default is set to W (weekly).
Trend Value: Defines the sensitivity of the trend detection algorithm.
Short SMA Length: Length of the short-term Simple Moving Average (SMA).
Long SMA Length: Length of the long-term Simple Moving Average (SMA).
Bullish Color: Color representation for bullish signals.
Bearish Color: Color representation for bearish signals.
Take Profit Color: Color representation for take profit events.
Simple Moving Average (SMA) Logic:

Two SMAs are calculated based on the provided lengths: one short-term and one long-term.
Short-term SMA values are plotted with a semi-transparent bearish color.
Long-term SMA values are plotted with a semi-transparent bullish color.
Trend Logic:

The script employs a modified SSL (Schaff Trend Cycle) indicator to determine the trend direction.
Trend direction is determined based on whether the closing price is above or below the SSL (Schaff Trend Cycle) indicator.
Trend changes are detected by comparing the current trend direction with the previous two trend directions.
Signal Logic:

Buy signals are generated when the short-term SMA crosses above the long-term SMA and the trend is bullish.
Sell signals are generated when the short-term SMA crosses below the long-term SMA and the trend is bearish.
Signals are confirmed only if there is no open position.
Take Profit Logic:

Take profit events are triggered when the trend changes direction after a position has been opened.
Take profit events are confirmed only if there is an open position.
Alerts:

Various alerts are included to notify traders of different events such as signal generation, take profit opportunities, and trend changes.
Usage of lookahead:

Within the script, the lookahead argument is utilized in the request.security() function to control how much historical data should be loaded for trend analysis.
Setting lookahead=barmerge.lookahead_on enables the script to consider future price movements when calculating trend conditions.
This functionality can enhance the accuracy of trend detection by incorporating future bars into the analysis.
Usage:

Traders can use this script on the TradingView platform to visualize market trends, identify potential entry and exit points, and receive timely alerts for trading opportunities.
版本注释:
-remodeled script to no repaint code.
-added pbx dots to show trend change.
-all lookahead functions are off.
-removed sma functions
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?