Super 8 - 30M BTCWelcome to Super 8, the ultimate automatic trading script for Pine!
This bad boy is designed to go both long and short, and it's equipped with all the tools you need to maximize your profits. Whether you're looking to take profit, set a trailing stop, or protect yourself with a stop loss, Super 8 has you covered.
But that's not all! Super 8 is also loaded with 8 powerful indicators to help you make informed decisions. We've got the EMA, ADX, SAR, MACD, VOLUME, BOLLINGER BANDS, DONCHIAN, and ATR all working together to give you the best possible trading experience.
And if you want to take it to the next level, Super 8 also has a feature that lets you use stepped entries in normal mode or incremental 1,2,3,... to improve your average price. Plus, if you're using trailing stop, you can activate the Backtest precision to use lower timeframes.
But what's in a name? Super 8 is called that because it's just that... super! It's tailored specifically for the OKX:BTCUSDT.P pair, so you know you're getting the best possible results. it's highly adjustable and can be used with any other pair. So no matter what market you're trading in, Super 8 has got you covered.
So if you want to level up your trading game, give Super 8 a try. You won't be disappointed.
Certain Risks of Live Algorithmic Trading:
Backtesting Cannot Assure Actual Results.
The relevant market might fail or behave unexpectedly.
Your broker may experience failures in its infrastructure, fail to execute your orders in a correct or timely fashion or reject your orders.
The system you use for generating trading orders, communicating those orders to your broker, and receiving queries and trading results from your broker may fail.
Time lag at various point in live trading might cause unexpected behavior.
The systems of third parties in addition to those of the provider from which we obtain various services, your broker, and the applicable securities market may fail or malfunction.
Cerca negli script per "algo"
Wolfe Strategy [Trendoscope]Hello Everyone,
Wish you all Merry X-Mas and happy new year. Lets start 2023 with fresh new strategy built on Wolfe Indicator. Details of the indicator can be found here
🎲 Wolfe Concept
Wolfe concept is simple. Whenever a wedge is formed, draw a line joining pivot 1 and 4 as shown in the chart below:
For simplicity, we will only consider static value for Target and Stop. But, entry is done based on breaking the triangle. Revised strategy looks something like this:
🎲 Settings
Settings are simple and details of each are provided via tooltips.
Out of these, the most important one is minimum risk reward ratio. If you set lower risk reward threshold then losing few trades may generate more losses than more winning trades. Similarly higher value will filter out most of the trades and may not work efficiently. Default value set to 1 to make sure optimal risk reward is present before placing trade. Also make note that since the entry bar is always moving towards stop, as and when pattern progress, the RR will also increase. Hence, a pattern which is below RR threshold may become good to trade at certain point of time in future.
🎲 Strategy Parameters
Default strategy parameters are initialised via definition. Margins are set to 100 to disable leveraged trades. Appropriate values are chosen for other parameters. These can be altered based on individual strategy and trading plan.
As the strategy concentrates on the single pattern, number of trades generated are comparatively less. But, there is chance to increase the algorithm further to catch more such patterns on larger scale. Will try to work on them in next versions.
🎲 Pine Strategy limitations
Backtest can only be done on one direction as pine strategy cannot have both long and short open trades together. Hence, it is mandatory to chose either long/short trades in settings.
Since pyramiding is limited to 1, there is possibility of a pattern not generating trade even though the entry conditions are met. They are just based on pine limitations and not necessarily mean patterns are not good for placing trades.
Macro Score - DFMA-BasedA "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.
The DFMA - Democratic Fibonacci Moving Average - is a separate indicator that we have released that takes 10 different Fibonacci MAs (lengths of 3 to 233, at Fibonacci intervals) and averages them to form the DFMA line. This helps by creating a consensus on the trend based on moving averages alone. Crossovers of the DFMA with the various Fib MA lengths as well as a cross of the price source and these lines can provide adequate long and short signals.
This strategy has the signals and weights pre-determined in the code. Heaviest weights have been given to crosses of the DFMA line/Fib MA (233) as well as the crosses of the Fib MA (3)/DFMA. Additionally, there are thresholds for DPO ( Detrended Price Oscillator , above or below 0), CMO ( Chande Momentum Oscillator , above or below 0), Jurik Volatility Bands (above or below 0), and Stoch RSI (above or below 50). These foursignals hold a lighter weight than the MA cross signals.
The macro score itself is printed in an underlay as a white line that goes between -10 and 10 for this strategy. In addition to the macro score line, a blue 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 (-5/5).
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.
Default Properties, for AVAX 20M:
DPO - 40, uncentered
CMO - 25, open
K/D - 3/3
RSI Stoch Length - 3
Stoch Length - 4
Stoch Source - open
JVB Length - 25
JVB Smoothing - 2
DFMA source - close
Macro Length - 13
TP % - 1.5%
TTP % - 0.005%
SL % - 2%
[SPOILED]SteadyScalpyHi Traders,
This is my testing strategy which implemented Trading View's trailing stop loss feature. This strategy mainly focus on ETH/USDT perp contract15 minutes timeframe, backtest capital is set to 1000 USDT, 10% equity, 0.04% commission, limited backtest date from Jan 2022 to now, result as shown below. I have faith in this strategy, but still please use only a small amount of money to test, like 5-10% of your total capital.
The strategy contains a couple modules, entry module, trend filter module, take profit, and stop loss module.
How to use:
Stoch RSI:
5 MA types were provided which is HMA / VWMA / WMA / EMA / SMA , HMA with Length setting of 5, 8 seems to be most efficient. VWMA and WMA with 8, 13 will generate less entry signals but with less entry risks.
Price Step:
This is the core feature of this strategy and it is based on Demark9 and price action. With Step 1&2 enabled, it will generate more entry signals. signals can be filtered by trend magic. if disable this option, Stoch RSI will be the only entry signal left in this strategy.
Trend Magic:
Trend Magic uses CCI and ATR to calculate trend status; green means uptrend, red means downtrend, pretty straight forward; the best value for this indicator would be, 21, 34, 55, 89. Only long allow when trend magic turns green and vice versa.
Take Profit and Stop Loss:
The default value for TP is set to 0.4%. Once the price hits 0.4%, it begins trailing; once the price drawdown 0.01%, it will close trade. The orange line indicates the ATR trailing take profit; once 'close' crosses ATR, it will exit the trade immediately. I also added a failsafe as a final stop loss, when price movement exceeds threshold (default 1%), it will exit trade no matter what.
Enjoy :)
Extended Recursive Bands StrategyThe original indicator was created by alexgrover .
All credit goes to alexgrover for creating the indicator that this strategy uses.
This strategy was posted because there were multiple requests for it, and no strategy based on this indicator exists yet.
The Recursive Bands Indicator, an indicator specially created to be extremely efficient, I think you already know that calculation time is extra important in algorithmic trading, and this is the principal motivation for the creation of the proposed indicator. Originally described in Alex's paper "Pierrefeu, Alex (2019): Recursive Bands - A New Indicator For Technical Analysis", the indicator framework has been widely used in his previous uploaded indicators, however it would have been a shame to not upload it, however user experience being a major concern for me, I decided to add extra options, which explain the term "extended".
The Indicator
The indicator displays one upper and one lower band, every common usages applied to bands indicators such as support/resistance , breakout, trailing stop, etc, can also be applied to this one. Length controls how reactive the bands are, higher values will make the bands cross the price less often.
In order to provide more flexibility for the user alexgrover added the option to use various methods for the calculation of the indicator, therefore the indicator can use the average true range , standard deviation, average high-low range, and one totally exclusive method specially designed for this indicator.
Added logic:
We have implemented a logic that checks whether the bands have been following in the same direction for a set amount of bars. This logic must be true before it can enter trades. This is completely new code that was written by us entirely, and it makes a huge difference on strategy performance.
Strategy Long conditions:
1 — Price low is below the the lower band.
2 — The lower band keeps increasing in value until the 'lookback' setting amount of bars is reached.
Strategy Short conditions:
1 — Price high is above the upper band.
2 — The upper band keeps decreasing in value until the 'lookback' setting amount of bars is reached.
Strategy Properties:
We have set a default commission of 0.06% because these are Bybit's fees. The strategy uses an order size of 10% of equity, since drawdown is very low like this. We also use a 10 tick slippage to keep results realistic and account for this. All other settings were left as default apart from initial capital, just to decrease the size of the numbers.
Macro Score -- User-Customized Scores and SignalsA "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
Macro Score - TSI-BasedA "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 strategy has the signals and weights pre-determined in the code. Heaviest weights have been given to various TSI (True Strength Index) signals, including a crossover/crossunder of TSI signal and TSI value, a threshold for the TSI Signal (above or below 0), and a crossover/crossunder of the CMO (Chande Momentum Oscillator) and the TSI signal line. Additionally, there are thresholds for DPO (Detrended Price Oscillator, above or below 0), Jurik Volatility Bands (above or below 0), and Stoch RSI (above or below 50). These three signals hold a lighter weight than the three TSI signals.
The macro score itself is printed in an underlay as a white line that goes between -10 and 10 for this strategy. In addition to the macro score line, a red 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 (-6/6).
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.
Normalized CCI Divergence StrategyStrategy Overview:
This script takes the Commodity Channel Index and normalizes the equation to be read easier by the user. Bullish, Bearish, Hidden Bullish, and Hidden Bearish divergences are identified and displayed in the underlay. Hidden Bullish and Hidden Bearish are turned off by default, but can be turned on in the user settings. The strategy itself signals long or short based on the appearance of these divergences in addition to previous CCI values being above or below a threshold. *Shorter timeframes such as 5M are recommended.* 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.
FFT Strategy Bi-Directional Stop/Profit/Trailing + VMA + AroonThis strategy uses the Fast Fourier Transform inspired from the source code of @tbiktag for the Fast Fourier Transform & @lazybear for the VMA filter.
If you are not familiar with the Fast Fourier transform it is a variation of the Discrete Fourier Transform. Veritasium on youtube has a great video on it with a follow up recommendation from 3brown1blue. In short it will extract all the frequencies from a set of data. @tbiktag laid the groundwork for creating the indicator which will allow you to isolate only those signals which are the most relevant and remove the noise. I recommend having @tbiktag's FFT Transform indicator side by side with this to understand what my variation is doing by setting similar settings .
Using this idea, you can then optimize a strategy to the frequencies that are best. The main entry signal is when the FFT Signal crosses above or below the 0 line .
Included with this strategy is the ability to optionally bi-directionally set:
Stop Loss
Trailing Stop Loss
Take Profit
Trailing Take Profit
Entries are optionally further filtered by use of the VMA using the algorithm from LazyBear which allows you to adjust a variable moving average with 3 market trend detections. Green represents upwards momentum; Blue sideways trading and Red downwards momentum. The idea being to filter out buy or sell entries unless the market is moving in that direction, and this makes a big difference as you can see for yourself when you turn it off or on. Turning it off will change the color of the FFT signal to orange instead of the green, blue, red colors .
I have added 2 custom stop loss types as well for experimentation:
1. VMA Filter stop loss to exit the trade if the VMA detects a market trend direction change matching the rules you have set. I have set this to off by default, but it is there so you can see what affect it may have on other tickers. It can increase the profit factor but usually at a cost of net profit.
2. The Aroon Filter stop loss with different lengths for the short or long direction. For the Aroon strategy (which is a trend change detector) it is considered bullish if the upper line (green in my code) is above 70 and the lower line (red in my code) is below 30 and the opposite for the bearish case. With this in mind, I have set it to filter by default only the extreme ends (99 and 1) to increase profit factor and net profit but I encourage you to try different settings and see how it affects things. Turning this off yields much higher net profit but at the cost of the profit factor and drawdown . To disable this just uncheck the 'Use Aroon Filter Long' (or short) and it will also hide the aroon graphics and crosses on the plot.
I will be adding more features in an attempt to lower the drawdown on this strategy but I hope you enjoy what I have so far!
Linear EDCA v1.2Strategy Description:
Linear EDCA (Linear Enhanced Dollar Cost Averaging) is an enhanced version of the DCA fixed investment strategy. It has the following features:
1. Take the 1100-day SMA as a reference indicator, enter the buy range below the moving average, and enter the sell range above the moving average
2. The order to buy and sell is carried out at different "speed", which are set with two linear functions, and you can change the slope of the linear function to achieve different trading position control purposes
3. This fixed investment is a low-frequency strategy and only works on a daily level cycle
----------------
Strategy backtest performance:
BTCUSD (September 2014~September 2022): Net profit margin 26378%, maximum floating loss 47.12% (2015-01-14)
ETHUSD (August 2018~September 2022): Net profit margin 1669%, maximum floating loss 49.63% (2018-12-14)
----------------
How the strategy works:
Buying Conditions:
The closing price of the day is below the 1100 SMA, and the ratio of buying positions is determined by the deviation of the closing price from the moving average and the buySlope parameter
Selling Conditions:
The closing price of the day is above the 1100 SMA, and the ratio of the selling position is determined by the deviation of the closing price and the moving average and the sellSlope parameter
special case:
When the sellOffset parameter>0, it will maintain a small buy within a certain range above the 1100 SMA to avoid prematurely starting to sell
The maximum ratio of a single buy position does not exceed defInvestRatio * maxBuyRate
The maximum ratio of a single sell position does not exceed defInvestRatio * maxSellRate
----------------
Version Information:
Current version v1.2 (the first officially released version)
v1.2 version setting parameter description:
defInvestRatio: The default fixed investment ratio, the strategy will calculate the position ratio of a single fixed investment based on this ratio and a linear function. The default 0.025 represents 2.5% of the position
buySlope: the slope of the linear function of the order to buy, used to control the position ratio of a single buy
sellSlope: the slope of the linear function of the order to sell, used to control the position ratio of a single sell
sellOffset: The offset of the order to sell. If it is greater than 0, it will keep a small buy within a certain range to avoid starting to sell too early
maxSellRate: Controls the maximum sell multiple. The maximum ratio of a single sell position does not exceed defInvestRatio * maxSellRate
maxBuyRate: Controls the maximum buy multiple. The maximum ratio of a single buy position does not exceed defInvestRatio * maxBuyRate
maPeriod: the length of the moving average, 1100-day MA is used by default
smoothing: moving average smoothing algorithm, SMA is used by default
useDateFilter: Whether to specify a date range when backtesting
settleOnEnd: If useDateFilter==true, whether to close the position after the end date
startDate: If useDateFilter==true, specify the backtest start date
endDate: If useDateFilter==true, specify the end date of the backtest
investDayofweek: Invest on the day of the week, the default is to close on Monday
intervalDays: The minimum number of days between each invest. Since it is calculated on a weekly basis, this number must be 7 or a multiple of 7
The v1.2 version data window indicator description (only important indicators are listed):
MA: 1100-day SMA
RoR%: floating profit and loss of the current position
maxLoss%: The maximum floating loss of the position. Note that this floating loss represents the floating loss of the position, and does not represent the floating loss of the overall account. For example, the current position is 1%, the floating loss is 50%, the overall account floating loss is 0.5%, but the position floating loss is 50%
maxGain%: The maximum floating profit of the position. Note that this floating profit represents the floating profit of the position, and does not represent the floating profit of the overall account.
positionPercent%: position percentage
positionAvgPrice: position average holding cost
--------------------------------
策略说明:
Linear EDCA(Linear Enhanced Dollar Cost Averaging)是一个DCA定投策略的增强版本,它具有如下特性:
1. 以1100日SMA均线作为参考指标,在均线以下进入定买区间,在均线以上进入定卖区间
2. 定买和定卖以不同的“速率”进行,它们用两条线性函数设定,并且你可以通过改变线性函数的斜率,以达到不同的买卖仓位控制的目的
3. 本定投作为低频策略,只在日级别周期工作
----------------
策略回测表现:
BTCUSD(2014年09月~2022年09月):净利润率26378%,最大浮亏47.12%(2015-01-14)
ETHUSD(2018年08~2022年09月):净利润率1669%,最大浮亏49.63%(2018-12-14)
----------------
策略工作原理:
买入条件:
当日收盘价在 1100 SMA 之下,由收盘价和均线的偏离度,以及buySlope参数决定买入仓位比例
卖出条件:
当日收盘价在 1100 SMA之上,由收盘价和均线的偏离度,以及sellSlope参数决定卖出仓位比例
特例:
当sellOffset参数>0,则在 1100 SMA以上一定范围内还会保持小幅买入,避免过早开始卖出
单次买入仓位比例最大不超过 defInvestRatio * maxBuyRate
单次卖出仓位比例最大不超过 defInvestRatio * maxSellRate
----------------
版本信息:
当前版本v1.2(第一个正式发布的版本)
v1.2版本设置参数说明:
defInvestRatio: 默认定投比例,策略会根据此比例和线性函数计算得出单次定投的仓位比例。默认0.025代表2.5%仓位
buySlope: 定买的线性函数斜率,用来控制单次买入的仓位倍率
sellSlope: 定卖的线性函数斜率,用来控制单次卖出的仓位倍率
sellOffset: 定卖的偏移度,如果大于0,则在一定范围内还会保持小幅买入,避免过早开始卖出
maxSellRate: 控制最大卖出倍率。单次卖出仓位比例最大不超过 defInvestRatio * maxSellRate
maxBuyRate: 控制最大买入倍率。单次买入仓位比例最大不超过 defInvestRatio * maxBuyRate
maPeriod: 均线长度,默认使用1100日MA
smoothing: 均线平滑算法,默认使用SMA
useDateFilter: 回测时是否要指定日期范围
settleOnEnd: 如果useDateFilter==true,在结束日之后是否平仓所持有的仓位平仓
startDate: 如果useDateFilter==true,指定回测开始日期
endDate: 如果useDateFilter==true,指定回测结束日期
investDayofweek: 每次在周几定投,默认在每周一收盘
intervalDays: 每次定投之间的最小间隔天数,由于是按周计算,所以此数字必须是7或7的倍数
v1.2版本数据窗口指标说明(只列出重要指标):
MA:1100日SMA
RoR%: 当前仓位的浮动盈亏
maxLoss%: 仓位曾经的最大浮动亏损,注意此浮亏代表持仓仓位的浮亏情况,并不代表整体账户浮亏情况。例如当前仓位是1%,浮亏50%,整体账户浮亏是0.5%,但仓位浮亏是50%
maxGain%: 仓位曾经的最大浮动盈利,注意此浮盈代表持仓仓位的浮盈情况,并不代表整体账户浮盈情况。
positionPercent%: 仓位持仓占比
positionAvgPrice: 仓位平均持仓成本
RSI Buy & Sell Trading ScriptThis is my first attempt at a trading script using the RSI indicator for Buy & Sell signals (so please be nice but would appreciate any constructive comments).
Starting with $100 initial capital and using 10% per trade
You can select which month the backtesting starts
There is also a monthly table (sorry can’t remember who I got this from) that shows the total monthly profits, but you’ll need to turn it on by going into settings, Properties and in the Recalculate section tick the “On every tick” box
It should do the following:
Open Buy order if the RSI > 68 and the current Moving Average is greater than the previous Moving average
• TP1 = 50% of Order at 0.4%
• TP2 = 50% of order at 0.8%
• SL = 2% below entry
• Close Buy order if the RSI < 30
Open Sell order if the RSI < 28 and the current Moving Average is less than the previous Moving average
• TP1 = 50% of Order at 0.4%
• TP2 = 50% of order at 0.8%
• SL = 2% above entry
• Close Buy order if the RSI < 60
I would like to build on this if you have any ideas/ code that could help like the following:
• Move the SL to break even when it hits TP1
• Move the SL to TP1 when TP2 hits
• Moving take profit code so I can let the some of the trade stay in play (activate if it hits 1% profit and close trade if price retracts 0.5%)
The Gral : Alpha Scalping Demo (Atom)You want to make money. This bot will allow you to do it.
We know how it can be challenging, frustrating, struggling to make money especially in bear market. Save your energy, your emotions, your nerves! Alpha Scalping will allow you to sleep better and make money while you sleep!
We tested hundreds of indicators, strategies, mt4 ea and bots since 2010, today we will start to release a series of successful bots and automatic strategies for you, some of them will be free, some of them will be paid (monthly subscriptions)
We will also indicate how to connect the Alpha Scalping to your Binance or FTX account so you can trade automatically.
Enjoy, subscribe and stay tuned!
NB : This bot is a demo only, it will work only on ATOMUSDTPERP
Bot for ALGOUSDTPERP :
supertrend advanceHELLO FRIENDS ...............THIS IS SUPERTREND ADVANCE WITH HENKIASHI CANDLE ...I got so many request on supertrend with henkiashi. This is for all of them ..I am making it open for all so you can change its coding according to your need
SOME IMPONTENT UPDATE IN THIS SUPERTRNED
1) You Can Use It for option trading ...you can do algo option trading using this strategy
2) YOU CAN USE CUSTOME SYNTAX TO ALGO TRADE IN STOCK,FOREX,COMMODITY AND CRYPTO
3) YO CAN USE IT IN INTRADAY TIME PERIOD ALSO U CAN SET ITS ENTRY AND EXIT TIME
4) YOU CAN USE HENKIASHI SUPERTREND ON NORMAL CANDLE STICK CHART
5) YOU CAN USE ITS QUNTITY FEATURE .BY THIS WAY U CAN DOUBLE YOUR QUNTITY SIZE ON LOSSING TRADE AND WHEN PROIFT TRADE OCCUR ITS QUNTITY AGAIN AUTOMATICALLY SHIFTED TO NORMAL QUNTITY ....THIS FEATURE ONLY HELP TRADER WITH MORE MARGIN....USE THIS FEATURE PROPERLY.THIS FEATURE BEST WORK ON ONE SIDE MEANS ONLY BUY SIDE TRADE OR SELL SIDE TRADE
6)YOU CAN SET YOUR TARGET AND STOPLOSS IN POINTS AND IN PERCENTAGE
7) YOU CAN CHOSE ONE SIDE TO TRADE ONLY BUY SIDE OR SELL SIDE
HOPE THIS FEARTURES HELPS EVERY ONE
ALL THE BEST FOR SUCESSFULL TRADING
Price change scalping short and long strategyPrice change scalping Short and Long strategy uses a rate of change momentum oscillator to calculate the percent change in price between a period of time. Rate of change calculation takes the current price and compares it to a price of "n" periods while the period of time can be defined by a user. The calculated rate of change value is then compared to the upper threshold and the lower threshold values to determine if a position should be opened. If the threshold is crossed and filtering conditions are met a strategy position will be triggered. Entry, take profit, and stop loss prices are calculated and displayed on the chart as well as positions directions. Once the entry price is crossed, a long or short position is created and once the take profit price is crossed, the stop loss price will begin to trail behind the price action using the close of the previous bar. Once the trailing stop price is crossed, the position is closed. If the entry price is not crossed and the price action crosses the stop level, the trade setup is cancelled. The strategy is enhanced by DCA algorithm which allows to average entry price with safety orders. The script also allows to use Martingale coefficient to increase averaging power
Advantages of this script:
Strategy has high net profit of 293% at backtests
Backtests show high accuracy around 71%
High frequency and low duration of trades
Can be used with short-term timeframes ranging from 5 to 60 minutes
Strategy is sustainable to market slumps due to DCA implementation
Can be used for short and long positions (can be adjusted to long only, short only or both)
Can be applied to any market and quote currency
Easy to configure user interface settings
Built in detailed statistic menu
How to use?
1. Apply the strategy to a trading pair your are interested in using 5 to 60 minutes timeframe chart
2. Configure the strategy: change layer values, order size multiple and take profit/stop loss values according to current market cycle stage
3. Set up a TradingView alert to trigger when strategy conditions are met
4. Strategy will send alerts when to enter and when to exit positions which can be applied to your portfolio using external trading platforms
5. Update settings once market conditions are changed using backtests on a monthly period
STD-Filtered, Gaussian-Kernel-Weighted Moving Average BT [Loxx]STD-Filtered, Gaussian-Kernel-Weighted Moving Average BT is the backtest for the following indicator
Included:
This backtest uses a special implementation of ATR and ATR smoothing called "True Range Double" which is a range calculation that accounts for volatility skew.
You can set the backtest to 1-2 take profits with stop-loss
Signals can't exit on the same candle as the entry, this is coded in a way for 1-candle delay post entry
This should be coupled with the INDICATOR version linked above for the alerts and signals. Strategies won't paint the signal "L" or "S" until the entry actually happens, but indicators allow this, which is repainting on current candle, but this is an FYI if you want to get serious with Pinescript algorithmic botting
You can restrict the backtest by dates
It is advised that you understand what Heikin-Ashi candles do to strategies, the default settings for this backtest is NON Heikin-Ashi candles but you have the ability to change that in the source selection
This is a mathematically heavy, heavy-lifting strategy. Make sure you do your own research so you understand what is happening here.
STD-Filtered, Gaussian-Kernel-Weighted Moving Average is a moving average that weights price by using a Gaussian kernel function to calculate data points. This indicator also allows for filtering both source input price and output signal using a standard deviation filter.
Purpose
This purpose of this indicator is to take the concept of Kernel estimation and apply it in a way where instead of predicting past values, the weighted function predicts the current bar value at each bar to create a moving average that is suitable for trading. Normally this method is used to create an array of past estimators to model past data but this method is not useful for trading as the past values will repaint. This moving average does NOT repaint, however you much allow signals to close on the current bar before taking the signal. You can compare this to Nadaraya-Watson Estimator wherein they use Nadaraya-Watson estimator method with normalized kernel weighted function to model price.
What are Kernel Functions?
A kernel function is used as a weighing function to develop non-parametric regression model is discussed. In the beginning of the article, a brief discussion about properties of kernel functions and steps to build kernels around data points are presented.
Kernel Function
In non-parametric statistics, a kernel is a weighting function which satisfies the following properties.
A kernel function must be symmetrical. Mathematically this property can be expressed as K (-u) = K (+u). The symmetric property of kernel function enables its maximum value (max(K(u)) to lie in the middle of the curve.
The area under the curve of the function must be equal to one. Mathematically, this property is expressed as: integral −∞ + ∞ ∫ K(u)d(u) = 1
Value of kernel function can not be negative i.e. K(u) ≥ 0 for all −∞ < u < ∞.
Kernel Estimation
In this article, Gaussian kernel function is used to calculate kernels for the data points. The equation for Gaussian kernel is:
K(u) = (1 / sqrt(2pi)) * e^(-0.5 *(j / bw )^2)
Where xi is the observed data point. j is the value where kernel function is computed and bw is called the bandwidth. Bandwidth in kernel regression is called the smoothing parameter because it controls variance and bias in the output.
Andean ScalpingAndean Scalping Implementation - BETA
- Uses Andean Oscillator: alpaca.markets
- Implements a threshold moving average (SMA 1000) on the Andean Signal line at 1.1 factor to filter out small moves
- TP/SL using ATR bands at 3x multiplier
Probabilistic Analysis Table - The Quant ScienceProbabilistic Analysis Table - The Quant Science ™ is the quantitative table measuring the probability of price changes and quantifies the ratio of sessions for three different assets.
This table measures the ratios of bull and bear events and measures the probability of each event through data generated automatically by the algorithm.
The data are calculated for three different assets:
1. Main asset: set on the chart.
2. Second asset: set by user interface.
3. Third asset: set by the user interface.
The timeframe is set by the chart and is the same for all three assets. You can change the timeframes directly from the chart.
The user can add tickers and adjust the analysis period directly from the user interface. The user can edit the percentage changes and the values to be analyzed for each asset, directly from the user interface.
TABLE DESCRIPTION
1. Total global trade session: are the total number of bars for each asset.
2. Total positive trade session: are the number of positive bars for each asset.
3. Probability positive trade session: is the ratio of total sessions to positive sessions.
4. Total negative trade session: are the number of negative bars for each asset.
5. Probability negative trade session: is the ratio of total sessions to negative sessions.
6. Positive trade session 0.50%: are the number of positive bars greater than 0.50% for each asset.
7. Probability positive trade session 0.50%: is the ratio of total sessions to positive sessions with increases greater than 0.50% (this value is set by default, you can change it from the user interface).
8. Negative trade session -0.50%: are the number of negative bars smaller than -0.50% for each asset.
9. Probability negative trade session -0.50%: is the ratio of total sessions to negative sessions with declines less than -0.50% (this value is set by default, you can change it from the user interface).
10. Positive trade session 1%: are the number of positive bars greater than 1% for each asset.
11. Probability positive trade session 1%: is the ratio of total sessions to positive sessions with increases greater than 1% (this value is set by default, you can change it from the user interface).
12. Negative trade session -1%: are the number of negative bars less than -1% for each asset.
13. Probability negative trade session -1%: is the ratio of total sessions to negative sessions with declines less than -1% (this value is set by default, you can change it from the user interface).
This table was created for traders and quantitative investors who need to quickly analyze session ratios and probabilities.
Key Performance IndicatorWe are happy to introduce the Key Performance Indicator by Detlev Matthes. This is an amazing tool to quantify the efficiency of a trading system and identify potential spots of improvement.
Abstract
A key performance indicator with high explanatory value for the quality of trading systems is introduced. Quality is expressed as an indicator and comprises the individual values of qualitative aspects. The work developing the KPI was submitted for the 2017 VTAD Award and won first prize.
Introduction
Imagine that you have a variety of stock trading systems from which to select. During backtesting, each trading system will deliver different results with regard to its indicators (depending on, inter alia, its parameters and the stock used). You will also get different forms of progression for profit development. It requires great experience to select the “best” trading system from this variety of information (provided by several indicators) and significantly varying equity progression forms. In this paper, an indicator will be introduced that expresses the quality of a trading system in just one figure. With such an indicator, you can view the results of one backtest at a glance and also more easily compare a variety of backtesting results with one another.
If you are interested in learning more about the calculations behind this indicator then I have included a link to the english version of his research paper.
Along with this, we now offer indicator development services. If you are interested in learning more then feel free to reach out to get a quote for your project.
**Please note that we have NOT inputted any real strategy into the code and therefore it is not producing any real value. Feel free to change the code as desired to test any strategy!**
drive.google.com
Magic BOXThe Magic BOX strategy is designed to work with cryptocurrency and Forex.
Working timeframe from 1 minute to 1 hour.
The strategy is based on the formation of a trade zone. Probably everyone has already noticed that every day there is a period of time that sets a certain corridor for further price movement in order to get out of it up or down. In the Magic BOX strategy, you yourself set the period that gives the best result using only 2 parameters - "Start hour" and "Final hour".
Every day, the algorithm generates a zone at a selected time and then opens deals to break through the upper or lower level of the resulting trading zone.
In addition, the settings have the ability to show additional entries - these are the moments of price rollback to the middle of the zone, as well as repeated breakouts of levels after the completion of the previous transaction.
-------------------------------------
💹 SETUP SETUP:
-------------------------------------
To configure, you should change the values "Start hour" and "Final hour" - the hour of the beginning and the hour of the end of the formation of the trading zone.
By default, the parameters are 20 hours and 7 hours (the time corresponds to the time zone of the exchange!).
To enable additional re-breakout signals, use - "Additional deals (repeat in the zone)"
To enable additional signals for position averaging use - "Additional deals (averaging position)"
-------------------------------------
🟢 TAKE SETUP:
-------------------------------------
The strategy has 3 types of take: BOX, FIX and DAY_CLOSE
BOX - take as a percentage of the width of the formed zone.
FIX - take as a percentage of the asset price.
DAY_CLOSE - select the hour at the beginning of which we close the position forcibly.
-------------------------------------
⛔️ STOP SETUP:
-------------------------------------
The strategy has 3 types of stop line: BOX, FIX and DAY_CLOSE
BOX - stop as a percentage of the width of the formed zone.
FIX - stop as a percentage of the asset price.
DAY_CLOSE - select the hour at the beginning of which we close the position forcibly.
-------------------------------------
💡 OTHER USEFUL FEATURES
-------------------------------------
✅ The screen has a compact display of a table with strategy settings and current level values.
For the convenience of saving your settings, use the standard PrintScreen function.
✅ 👉 In the strategy settings, each field has hints, to do this, hover over the ⓘ sign
-------------------------------------
Magic BOX strategy is closed! You can get test access to it for 48 hours.
👉 In order to gain access or ask questions, write to me in private messages or at the contacts indicated in my signature.
-------------------------------------
-------------------------------------
Magic BOX strategy is closed! You can get test access to it for 48 hours.
👉 In order to gain access or ask questions, write to me in private messages or at the contacts indicated in my signature.
-------------------------------------
========================================================================================================
Стратегия Magic BOX предназначена для работы с криптовалютой и Форексом.
Рабочий таймфрейм от 1 минуты до 1 часа.
В основе стратегии лежит формирование зоны проторговки. Наверное уже каждый заметил, что каждый день есть период времени, который задаёт некий коридор для дальнейшего движения цены с целью выйти из него вверх или вниз. В стратегии Magic BOX Вы сами задаёте тот период, который даёт наилучший результат с помощью всего 2-х параметров - "Start hour" и "Final hour".
Каждый день алгоритм формирует зону в выбранное время и далее открывает сделки на пробой верхнего или нижнего уровня полученной зоны проторговки.
Кроме этого в настройках есть возможность показать дополнительные входы - это моменты отката цены к середине зоны, а также повторные пробития уровней, после завершения предыдущей сделки.
-------------------------------------
💹 НАСТРОЙКА СЕТАПА:
-------------------------------------
Для настройки следует изменять значения "Start hour" и "Final hour" - час начала и час окончания формирования зоны проторговки.
По умолчанию стоят параметры 20 часов и 7 часов (время соответствует времени часовой зоны биржи!).
Для включения дополнительных сигналов повторных пробоев используйте - "Additional deals (repeat in the zone)"
Для включения дополнительных сигналов на усреднение позиции используйте - "Additional deals (averaging position)"
-------------------------------------
🟢 НАСТРОЙКА ТЕЙКОВ:
-------------------------------------
Стратегия имеет 3 типа тейка: BOX, FIX и DAY_CLOSE
BOX - тейк в процентах от ширины сформированной зоны.
FIX - тейк в процентах от цены актива.
DAY_CLOSE - выбираем час, в начале которого принудительно закрываем позицию.
-------------------------------------
⛔️ НАСТРОЙКА СТОПА:
-------------------------------------
Стратегия имеет 3 типа стоп-линии: BOX, FIX и DAY_CLOSE
BOX - стоп в процентах от ширины сформированной зоны.
FIX - стоп в процентах от цены актива.
DAY_CLOSE - выбираем час, в начале которого принудительно закрываем позицию.
-------------------------------------
💡 ПРОЧИЕ ПОЛЕЗНЫЕ ФУНКЦИИ
-------------------------------------
✅ На экране есть компактное отображение таблицы с настройками стратегии и текущими значениями уровней.
Для удобства сохранения своих настроек - воспользуйтесь стандартной функцией PrintScreen.
✅ 👉 В настройках стратегии у каждого поля есть подсказки, для этого наведите курсор на знак ⓘ
-------------------------------------
Стратегия Magic BOX является закрытой! Вы можете получить к ней тестовый доступ на 48 часов.
👉 Для того, чтобы получить доступ или задать вопросы пишите мне в личные сообщения или по контактам, указанным в моей подписи.
-------------------------------------
MY_SCALP strategyThe MY_SCALP strategy is designed to work with any instrument (cryptocurrency, stocks, forex).
The working timeframe for scalping is small from 1 to 15 minutes, and for trend trading from 30 minutes.
Signals are generated based on the price range (channel) within which the price of the instrument moves.
When the price of the channel breaks up, we expect an upward movement, and when it breaks down, we expect a downward movement.
To avoid manipulations in the market, the algorithm monitors the level of the price relative to the global trend and thus filters out a large part of the false signals.
In addition, in the settings it is possible to show additional inputs - these are the moments of rebound from the edge of the channel inwards, also with filtering applied.
-------------------------------------
💹 SETUP SETUP:
-------------------------------------
To adjust, you should change the value of the CHANNEL multiplier - this depends on the sensitivity and flexibility of the range.
For TF 5m it will be about 8-9, and for TF 1H about 4-5. That is, the higher the TF, the lower the value of the CHANNEL multiplier.
-------------------------------------
🟢 TAKE SETUP:
-------------------------------------
The strategy has 2 takes
You can choose the type of take - FIX or CHANNEL
FIX - fixed targets in %.
CHANNEL - channel takes (The width of the channel at the moment the signal appears is multiplied by the specified multiplier and thus the size of the take is calculated.).
Important: the 1st take cannot be more than the 2nd!
-------------------------------------
⛔️ STOP SETUP:
-------------------------------------
Stop type is also selectable:
FIX - fixed stop in %.
CHANNEL - channel stop (set % of the price for the offset from the opposite side of the trading channel. For additional entries, the stop uses the value of half the channel width + the specified offset from the position entry price).
You have the opportunity to activate the stop line tightening when the 1st tp1 take breakeven is reached.
-------------------------------------
💡 OTHER USEFUL FEATURES
-------------------------------------
✅ In the strategy, you can enable / disable the display of takes and stop lines.
✅ In the strategy, you can enable / disable the display of points of probable price rebounds.
✅ You can choose the direction of trading: long, short or any.
✅ You can choose the percentage of the position to close on the 1st take.
✅ It is possible to enable background highlighting of the current trend. This background does not stretch to the entire screen, but is limited to the calculated extremes, within which the asset price moves.
✅ The screen has a compact display of a table with the current strategy settings and the current state (position, takes, stop).
For the convenience of saving your settings, use the standard PrintScreen function.
✅ You can sign the strategy in the Notes field - this is convenient if you place several versions of the MY_SCALP strategy on the chart with different settings (for different pairs or for different timeframes).
✅ 👉 In the strategy settings, each field has hints , to do this, hover over the ⓘ sign
-------------------------------------
MY_SCALP strategy is closed! You can get test access to it for 48 hours.
👉 In order to gain access or ask questions, write to me in private messages or at the contacts indicated in my signature.
-------------------------------------
========================================================================================================
Стратегия MY_SCALP предназначена для работы с любым инструментом (криптовалюта, акции, форекс).
Рабочий таймфрейм для скальпинга - малый от 1 до 15 минут, а для трендовой торговли от 30 минут.
В основе формирования сигналов лежит ценовой рейндж (канал), внутри которого движется цена инструмента.
При пробитии ценой канала вверх, мы ожидаем восходящее движение, а при пробитии вниз - нисходящее.
Чтобы избежать манипуляций на рынке, алгоритм отслеживает уровень нахождения цены относительно глобального тренда и тем самым фильтрует немалую часть ложных сигналов.
Кроме этого в настройках есть возможность показать дополнительные входы - это моменты отскока от края канала внутрь, также с применением фильтрации.
-------------------------------------
💹 НАСТРОЙКА СЕТАПА:
-------------------------------------
Для настройки следует ищменять значение множителя канала CHANNEL - это этого зависит чувствительность и гибкость рейнджа.
Для ТФ 5м это будет примерно 8-9, а для ТФ 1Ч примерно 4-5. То есть, чем выше ТФ, тем ниже значение множителя CHANNEL.
-------------------------------------
🟢 НАСТРОЙКА ТЕЙКОВ:
-------------------------------------
Стратегия имеет 2 тейка
Тип тейка можно выбрать - FIX или CHANNEL
FIX - фиксированные тейки в %.
CHANNEL - канальные тейки (Ширина канала в момент появления сигнала умножается на заданный множитель и таким образом высчитывается размер тейка.).
Важно: 1-й тейк не может быть больше 2-го!
-------------------------------------
⛔️ НАСТРОЙКА СТОПА:
-------------------------------------
Тип стопа также выбирается:
FIX - фиксированный стоп в %.
CHANNEL - канальный стоп (задаётся % цены для отступа от противоположной стороны торгового канала. Для дополнительных входов стоп использует значение половины ширины канала + заданный отступ от цены входа в позицию).
У Вас есть возможность активировать подтяжку стоп-линии при достижении 1-го тейка tp1 в безубыток.
-------------------------------------
💡 ПРОЧИЕ ПОЛЕЗНЫЕ ФУНКЦИИ
-------------------------------------
✅ В стратегии можно включить/отключить отображение тейков и стоп-линии.
✅ В стратегии можно включить/отключить отображение точек вероятных отскоков цены.
✅ Можно выбрать направление торговли: лонг, шорт или любое.
✅ Можно выбрать процент позиции для закрытия на 1-м тейке.
✅ Есть возможность включения фоновой подкраски текущего тренда. Данный фон не растягивается на весь экран, а ограничивается расчётными экстремумами, в рамках которых двигается цена актива.
✅ На экране есть компактное отображение таблицы с текущими настройками стратегии и текущим состоянием (позиция, тейки, стоп).
Для удобства сохранения своих настроек - воспользуйтесь стандартной функцией PrintScreen.
✅ Вы можете подписать стратегию в поле Notes - это удобно, если Вы размещаете на графике несколько версий стратегии MY_SCALP с разными настройками (для разных пар или для разных ТФ).
✅ 👉 В настройках стратегии у каждого поля есть подсказки , для этого наведите курсор на знак ⓘ
-------------------------------------
Стратегия MY_SCALP является закрытой! Вы можете получить к ней тестовый доступ на 48 часов.
👉 Для того, чтобы получить доступ или задать вопросы пишите мне в личные сообщения или по контактам, указанным в моей подписи.
-------------------------------------
Bot fib/pivot Hello, friends!
This strategy is based on the fibonacci level you choose in the setup and possible pivot points under the control of Williams’ Percent Range.
Williams' Percent Range is a dynamic indicator that detects overbought/oversold conditions.
When the possible reversal points coincide with the fibonacci level, and the high or low points according to Williams also coincide, then an entry occurs.
One of the oldest and most reliable trading tools are widely used support and resistance levels.
In this strategy, we are trying to find these reversal levels based on fibonacci.
//LOGIC ENTRY SETTINGS
Deviation-deviation from the pivot point, the lower this figure, the more entries. The yellow lines on the chart are pivot points.
Fibonacci lvl-fibonacci level, from which the entry will occur, provided that other conditions match
Highest lookback-The setting, which refers to Williams' Percent Range , looks at how many candles ago, was high or low. The smaller the number, the larger, but less accurate inputs.
//AMOUNT(USDT) FIRST ORDER AND > % NEXT
-Martingale first order (the amount of the entrance to the usdt) / next order (Increase of each subsequent order as a percentage)
//EXIT SETTINGS (%, RSI)
-Use RSI for close position? (the position will not be closed if it is in the red, even if the RSI conditions worked)
-Use % for exit? Exit immediately upon reaching the specified percentage
-Use trailing? When the checkbox is checked, the position will be exited by trailing.
Activation trail,after?- When the specified percentage is reached, trailing is activated!
Stop_trail,%- if the last candle falls from the high (after the trailing is activated), the position will be exited.
For example:
We entered the purchase at 100 per asset, activation costs 10, and stop is 2.
the price reached 110, there was an activation, after that it went up to 120, and from the high of the last candle, a 2% drop occurs and the trade is exited.
PS:The default value is 1%, what does this give us? if there is a sharp increase, then we take away all the movement
Use only long?
Allow long?- Only long trades will be displayed
Allow short? Only short trades will be displayed
Allo reverse? Upon receipt of a return signal, the opposite position will be closed.
//MARTINGALE GRID
If there is a check mark in the line "Use martingale and grid?"
then the grid will be active
If there is a check mark in the "Limit each next entry,%?" then, even if the entry from the bot logic is triggered, and the price does not fall by the specified percentage, then there will be no entry!
If there is a check mark in the "Grid,%" column, then purchases with martingale support will be added with a decrease by the specified percentage!
PS: "Grid" always starts anew, as the input from logic triggered!
//FILTER SETTINGS
1) Use filter oscillator? (The filter uses 7 averaged oscillators)
Period-the period for which you will be billing
Upper line-Short entry border.
(if 40, then there will be no entry until it reaches)
Lower line-Long entry border.
(20 until below 20 no entry)
2)Use filter range?
Filter type-moving average selection
Bars back-offset speed based on number of last bars
Period-period to calculate
3)Use filter supertrend?
Supertrend filter with multitimeframe
// How do filters work 2 and 3?
Filters can work either one by one or together.
A trade is entered when conditions from the logic and filters in the red zone are triggered, when there are no entries in the green zone.
//DATA RANGE:
-Testing results for any period of time
//PIRAMIDING
-Also in the settings there is a pyramid of order, keep this in mind. Make a deal for a small part of the deposit, and not for all the money at once!
PS: to use martingale, you need to write in the hook messages:
"amount": "{{strategy.order.contracts}}" (purchases will be in the amount of coins equivalent to USDT)
The default settings for TF are 1 minute, 10 inputs.
You can choose your settings for any TF, but look at different coins to make sure you have good statistics
Ebb N Flo Trend [Backtester]Ebb n Flo Trend is a trend indicator that makes use of higher time frame High - Low pivots to determine when a trend has changed
In order to reduce over trading, and to reduce fake outs, the script relies on a clever combination of Fib ratio expansions and an averaged candle close
By combining the above strategies, the trend indicator forms a trailing trend indicator
The script determines when the current market condition has crossed over or under the trailing trend, and based on the closing conditions will change the trend of the script signaling a change. If the trend indicator is below the current market and green, the trend is bullish. If the trend is above the market and red, the trend is bearish
The indicator does not repaint, as such, once a signal has been received, the condition has been met on a previous candle and is final
Trend indicator can be used on any markets, for both Long and Short swings, however is best suited for long term trading on certain crypto markets (based on backtesting results). Be on the lookout for pairs with decent volume on reputable exchanges. It is not a holy grail type script for all markets. The key is to find enough to diversify your trades.
As can be seen in the backtester results, the script performs exceptionally well when trading using the 1W higher time frame (selection in the script settings), in the 1D current time frame (selecting the chart time frame)
The script is ideal for the beginner trader that cannot spend hours everyday looking at charts.
The backtesting results are based on allocating 10% of your portfolio to a single trade - this should be determined by your risk appetite.
There are risks associated with any form of investing. Never invest more than you are willing to lose. Past performance is not a guarantee or predictor of future performance. Do your own due diligence before making any investment decisions.
Configuration:
The dropdown in the script selects the time frame for Highs and Lows that the script must consider, and the chart time frame is the time frame of which closing conditions the script should use
Alerts:
The indicator comes with 2 off alerts: open_LONG and open_SHORT, which in itself is self explanatory, however, due to the slow trading nature of the script, alerts are generally not needed
Once you receive access to the trial version, you will also receive a link to a video that will show you exactly how to set up the script
Happy trading
Buy Sell Bot StrategyHello Everyone,
In this strategy, I benefited from the values of RSI and wave trend indicators, which are the oldest and most used indicators in the market. I contributed to this bi-valued indicator myself with a bivariate formula. My variables are actually a simple intersection algorithm, the intersection of the wave trend indicator and the RSI indicators when they are oversold or overbought.
As you all know, we can send signals to bot sites via tradingview. You can use bot signals boxes in this strategy. You can analyze past transactions in the Date settings section. In the indicator settings section, you can change the settings of the overbought and oversold zones. Perhaps the most important feature here is the USE SELL SIGNALS section. I would like to emphasize this section in particular that when you mark the use sell signal section, the strategy will be processed in the buy section and will not be processed in the sell section. If you do not click on the USE SELL SIGNALS section, the strategy will be processed in the buy section, but this time it will be exited when the target in the take profit section is reached. THIS WAS IMPORTANT.
There is another important point here. Always in position and USE SELL SIGNALS sections do not work together. Run these two features one by one. It is a strategy that is constantly in operation through the name of the Always in position feature, I do not recommend it. The USE PERCENTAGE DECREASE feature, on the other hand, is the section where we want the share to drop as a percentage to enter the second trade after the first purchase is made in the settings section if you activate the pyramiding feature. You can use the tradingview help page for the pyramiding feature.
I found this strategy suitable to use in the 1-hour time frame in the crypto market and adjusted it that way. Of course, you can use it by changing the settings in stocks and in different time periods. big wins