DCA Average Arbitrage - The Quant ScienceDCA Average Arbitrage - The Quant Science™ is a quantitative algorithm based on a DCA model that uses averaging to create a statistical arbitrage system.
DESCRIPTION
The algorithm can be set long or short.
1. Long algorithm: opens long positions with 100% of the capital every time the price deviates negatively for a certain percentage distance from the average.
2. Short algorithm: opens short positions with 100% of capital every time the price deviates positively for a certain percentage distance from the average.
The closing of positions depends on the parameters activated by the user. The user can set the closing on the reverse condition and/or add functions such as stop loss, take profit and closing after a certain bar period.
USER INTERFACE SETTING
The user chooses the long or short direction and sets the parameters for average as length, source and percent distance.
AUTO TRADING COMPLIANT
With the user interface, the trader can easily set up this algorithm for automatic trading. Automating it is very simple, activate the alert functions and enter the links generated by your broker.
BACKTESTING INCLUDED
With the user interface, the trader can adjust the backtesting period of the strategy before putting it live. You can analyze large periods such as years or months or focus on short-term periods.
NO LIMIT TIMEFRAME
This algorithm can be used on all timeframes and is ideal for lower timeframes.
GENERAL FEATURES
Multi-strategy: the algorithm can apply either the long strategy or the short strategy.
Built-in alerts: the algorithm contains alerts that can be customized from the user interface.
Integrated indicator: the quantity indicator is included.
Backtesting included: automatic backtesting of the strategy is generated based on the values set.
Auto-trading compliant: functions for auto trading are included.
ABOUT THE BACKTEST
Backtesting refers to the period 1 January 2022 - today, ticker: ICP/USDT, timeframe 5 minutes.
Initial capital: $1000.00
Commission per trade: 0.03%
Analisis Trend
The Impeccable by zyberalThis strategy works differently than others, it uses the IchimokuTenkan, Kijun, and Senkou periods to compute a general sense of market trend. Then I used the MACD fast, slow, and smooth with custom inputs to compute a optimum cross for finding macro bottoms and tops for any asset. This strategy doesn't trade on weekends and does not have a set TP (take profit) for each long or short.
[B_2] 15min Crypto (Based on Technical Analysis)Republish.
HOW IT WORKS:
+ Open Long: When price close above Kumo Cloud 15m, SuperTrend 15m, RSI > 50, MACD signal (12,26,19) >0, break up Pivot High previous. Dont open long when price close just below resistants in higher timeframe (SuperTrend 2H, 4H).
+ Exit Long: When price hit TPs or SL or having Short Signals.
+ Open Short: When price close below Kumo Cloud 15m, SuperTrend 15m, RSI < 50, MACD signal (12,26,19) <0, break down Pivot Low previous.
+ Exit Short: When price hit TPs or SL or having Long Signals.
HOW TO DO IT:
Very easy to use this script. It only has 2 parts: SETUP ENTRY and SETUP EXIT.
1. SETUP ENTRY:
This strategy uses the rule of dividing capital to enter multiple orders. For example, a common rule 5-3-2 (ie: total capital is 100%, entry 1 is 50%, entry 2 is 30% and entry 3 is 20%). In this strategy, I split my capital into 4 entries. You can customize the capital percentage and price deviation for each entry.
2. SETUP EXIT:
+ Multi profit.
+ Stoploss: you have two options: Stoploss based on percentage or ATR.
+ When price hit TP1, you have two options: only move Stoploss to entry or active trailing.
BACKTEST: You can backtest this strategy on coins: ETH, CRV , RUNE, MATIC, SRM and some like: MKRUSDTPERP , AAVEUSDTPERP , SOLUSDTPERP , ETCUSDTPERP , FILUSDTPERP , BALUSDTPERP , NEARUSDTPERP , SRMUSDTPERP , ALPHAUSDTPERP , DGBUSDTPERP, ...
If you want use this scripts with setup alert or open code, please inbox to me, you are always welcome.
Ichimoku Cloud with RSI (By Coinrule)The Ichimoku Cloud is a collection of technical indicators that show support and resistance levels, as well as momentum and trend direction. It does this by taking multiple averages and plotting them on a chart. It also uses these figures to compute a “cloud” that attempts to forecast where the price may find support or resistance in the future.
The Ichimoku Cloud was developed by Goichi Hosoda, a Japanese journalist, and published in the late 1960s. It provides more data points than the standard candlestick chart. While it seems complicated at first glance, those familiar with how to read the charts often find it easy to understand with well-defined trading signals.
The Ichimoku Cloud is composed of five lines or calculations, two of which comprise a cloud where the difference between the two lines is shaded in.
The lines include a nine-period average, a 26-period average, an average of those two averages, a 52-period average, and a lagging closing price line.
The cloud is a key part of the indicator. When the price is below the cloud, the trend is down. When the price is above the cloud, the trend is up.
The above trend signals are strengthened if the cloud is moving in the same direction as the price. For example, during an uptrend, the top of the cloud is moving up, or during a downtrend, the bottom of the cloud is moving down.
This strategy combines the Ichimoku Cloud with the RSI indicator to better enter trades.
Long/Short orders are placed when three basic signals are triggered.
Long Position:
Tenkan-Sen is above the Kijun-Sen
Chikou-Span is above the close of 26 bars ago
Close is above the Kumo Cloud
RSI is greater less than 50
Short Position:
Tenkan-Sen is below the Kijun-Sen
Chikou-Span is below the close of 26 bars ago
Close is below the Kumo Cloud
RSI is greater than 50
The script is backtested from 1 June 2022 and provides good returns.
The strategy assumes each order is using 30% of the available coins to make the results more realistic and to simulate you only ran this strategy on 30% of your holdings. A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.
This script also works well on SOL (45m timeframe), BNB (1h timeframe), and ETH (1h timeframe).
AlphaTrend StrategyThe strategy version of AlphaTrend indicator for backtesting and optimisation purposes for TradingView users:
Screener / Explorer version and an English explantion video will be published soon...
AlphaTrend's parameters are designed for daily and 4H charts, feel free to optimize on all time frames.
Hope you all use Alphatrend in your profitable trades.
Kıvanç
Swing Trend StrategyThis script is a trend following system which uses a long term Moving Average to spot the trend in combination with the Average True Range to filter out Fakeouts, limiting the overall drawdown.
Default Settings and Calculation:
- The trend is detected using the Exponential Moving Average on 200 periods.
- The Average True Range is calculated on 10 periods.
- The Market is considered in an Uptrend when the price closes above the EMA + ATR.
- The Market is considered in a Downtrend when the price closes below the EMA - ATR.
- The strategy will open a LONG position when the market is in an Uptrend.
- The strategy will close its LONG positions when the price closes below the EMA.
- The strategy will open a SHORT position when the market is in a Downtrend.
- The strategy will close its SHORT positions when the price closes above the EMA.
This script is best suited for the 4h timeframe, and shows good results on BTC and ETH especially.
The options allow to modify the type of moving average to use, the period of the moving average, the ATR multiplier to add as well as the possibility to open short trades or not.
Trade HourThis script is just finds the best hour to buy and sell hour in a day by checking chart movements in past
For example if the red line is on the 0.63 on BTC/USDT chart it mean the start of 12AM hour on a day is the best hour to buy (all based on
It's just for 1 hour time-frame but you can test it on other charts.
IMPORTANT: You can change time Zone in strategy settings.to get the real hours as your location timezone
IMPORTANT: Its for now just for BTC/USDT but you can optimize and test for other charts...
IMPORTANT: A green and red background color calculated for show the user the best places of buy and sell (green : positive signal, red: negative signals)
settings :
timezone : We choice a time frame for our indicator as our geo location
source : A source to calculate rate of change for it
Time Period : Time period of ROC indicator
About Calculations:
1- We first get a plot that just showing the present hour as a zigzag plot
2- So we use an indicator ( Rate of change ) to calculate chart movements as positive and negative numbers. I tested ROC is the best indicator but you can test close-open or real indicator or etc as indicator.
3 - for observe effects of all previous data we should indicator_cum that just a full sum of indicator values.
4- now we need to split this effects to hours and find out which hour is the best place to buy and which is the best for sell. Ok we should just calculate multiple of hour*indicator and get complete sum of it so:
5- we will divide this number to indicator_cum : (indicator_mul_hour_cum) / indicator_cum
6- Now we have the best hour to buy! and for best sell we should just reverse the ROC indicator and recalculate the best hour for it!
7- A green and red background color calculated for show the user the best places of buy and sell that dynamically changing with observing green and red plots(green : positive signal, red: negative signals) when green plot on 15 so each day on hour 15 the background of strategy indicator will change to 15 and if its go upper after some days and reached to 16 the background green color will move to 16 dynamically.
Bitcoin Scalping Strategy (Sampled with: PMARP+MADRID MA RIBBON)
DISCLAIMER:
THE CONTENT WITHIN THIS STRATEGY IS CREATED FROM TWO INDICATORS CREATED BY TWO PINESCRIPTER'S. THE STRATEGY WAS EXECUTED BY MYSELF AND REVERSE-ENGINEERED TO MEET THE CONDITIONS OF THE INTENDED STRATEGY REQUESTOR. I DO NOT TAKE CREDIT FOR THE CONTENT WITHIN THE ESTABLISHED LINES MADE CLEAR BY MYSELF.
The Sampled Scripts and creators:
PMAR/PMARP by @The_Caretaker Link to original script:
Madrid MA RIBBON BAR by @Madrid Link to original script:
Cheat Code's strategy notes:
This sampled strategy (Requested by @elemy_eth) is one combining previously created studies. I reverse-engineered the local scope for the Madrid moving average color plots and set entry and exit conditions for certain criteria met. This strategy is meant to deliver an extremely high hit rate on a daily time frame. This is made possible because of the very low take profit percentage, during the context of a macro downtrend it is made easier to hit 1-3% scalps which is made visible with the strategy using sampled scripts I created here.
How it works:
Entry Conditions:
-Enter Long's if the lime color conditions are met true using the script detailed by Marid's MA
- No re-entry into positions needs to be met true (this prevents pyramiding of orders due to conditions being met true) applicable to both long and short side entries.
- To increase hit rate and prevent traps both the parameters of rsi being sub 80 and no previously engulfing candles need to be met true to enter a long position.
- Enter Short's if the red color conditions of Madrid's moving average are met true.
- Closing Long positions are typically not met within this indicator, however, it still sometimes triggers if necessary. This consists of a pmarp sub 99 and a position size greater than 0.0
- Closing Short positions are typically not met within this indicator, however, it still sometimes triggers if necessary. This consists of a pmarp over 01 and a position size less than 0.0
- Stop Loss: 27.75% Take Profit: 1% (Which does not trigger on ticks over 1% so you will see average trade profits greater than 1%)
BYBIT:BTCUSDT BINANCE:BTCUSDT COINBASE:BTCUSD
Best Of Luck :)
-CheatCode1
RSI Improved strategySet a Horizontal Ray at the price that relates highest / lowest RSI .
It 's more clear to decide when to open long / short position manually.
It's a scalping strategy that works in 15min chart(basically works in most of timeframe , if you don't look it as a scalping strategy), when RSI hits Highest / Lowest value , the strategy will open a Long / Short position.
The Default Risk Reward Ratio was 1 (1600 points : 1600 points) you can adjust it in settings
You guys can look it as a RSI alert indicator
Think before you do , use it wisely. Thanks a lot!
There is a lot of useless words in Pine if you wanna look it please ignore it.
Trend Ravi TrialTrial for trend analysis
it was not difficult to convert to look like and work like Trend Trader Karan's Tool, who invested " Lakho Rupaya" and works on the basis of price action trading also.
Let me tell you guys, this is nothing but an ATR based system which people already traded as Half Trend, Super Trend and various names. Half Trend is no more a copyrighted indicator, which stopped marketing after being exposed, but people are still cheating with such indicators.
3LS | 3 Line Strike Strategy [Kintsugi Trading]What is the 3LS | 3 Line Strike Strategy?
Incorporating the 3 Line Strike candlestick pattern into our strategy was inspired by Arty at The Moving Average and the amazing traders at TheTrdFloor .
The Three Line Strike is a trend continuation candlestick pattern consisting of four candles. Depending on their heights and collocation, a bullish or a bearish trend continuation can be predicted.
In a symphony of trend analysis, price action, and volume we can find and place high-probability trades with the 3LS Strategy.
How to use it!
----- First, start by choosing a Stop-Loss Strategy, Stop PIP Size, and Risk/Reward Ratio -----
- Stop-Loss Strategy
Fixed PIP Size – This uses the top/bottom of the indicator candle and places a TP based on the chosen Risk:Reward ratio.
ATR Trail (No set Target Profit, only uses ATR Stop)
ATR Trail-Stop (Has set Target Profit, however, stop is based on ATR inputs)
**If you choose an ATR Stop-Loss Strategy - input the desired ATR period and Multiple you would like the stop to be calculated at**
**ATR Stop-Loss Strategies have a unique alert setup for Auto-Trading. See Auto-Trading Section**
- Risk/Reward Ratio = If you have a .5 risk/reward, it means you are risking $100 to make $50.
- Additional Stop PIP Size = Number of PIPs over the default stop location of the top or bottom of the indicator candle.
----- Next, we set the Session Filter -----
Set the Timezone and Trade Session you desire. If no specific session is desired, simply set the Trade Session to 00:00 - 00:00.
----- Next, we set the Moving Average Cloud Fill -----
Enter the Fast and Slow Moving Average Length used to calculate trend direction:
MA Period Fast
MA Period Slow
These inputs will determine whether the strategy looks for Long or Short positions.
----- Next, we set the VSA – Volume Spread Analysis Settings -----
Check the box to show the indicator at the bottom of the chart if desired.
This is just a different visual output of the VSA | Volume Spread Analysis indicator available for free under the community indicators tab. You can add that indicator to your chart and see the same output in candle format.
In combination with the Moving Average Cloud, the Volume Spread Analysis will help us determine when to take a trade and in what direction.
The strategy is essentially looking for small reversals going against the overall trend and placing a trade once that reversal ends and the price moves back in the direction of the overall trend.
The 3LS Strategy utilizes confirmation between trend, volume, and price action to place high probability trades.
The VSA is completely customizable by:
Moving Average Length
MA-1 Multiplier
MA-2 Multiplier
MA-3 Multiplier
Check out the VSA | Volume Spread Analysis indicator in the community scripts section under the indicators tab to use this awesome resource on other strategies.
----- Next, we have the option to view the automated KT Bull/Bear Signals -----
Check the boxes to show the buy-sell signal on the chart if desired.
----- Next, we set the risk we want to use if Auto Trading the strategy -----
I always suggest using no more than 1-3% of your total account balance per trade. Remember, if you have multiple strategies triggering per day with each using 1%, the total percent at risk will be much larger.
For Example – if you have 10 strategies each risking 1% your total risk is 10% of your account, not 1%! Be mindful to only use 1-3% of your total account balance across all strategies, not just each individual one.
----- Finally, we backtest our ideas -----
After using the 'Strategy Tester' tab on TradingView to thoroughly backtest your predictions you are ready to take it to the next level - Automated Trading!
This was my whole reason for creating the script. If you work a full-time job, live in a time zone that is hard to trade, or just don't have the patience, this will be a game-changer for you as it was for me.
Auto-Trading
When it comes to auto-trading this strategy I have included two options in the script that utilize the alert messages generated by TradingView.
*Note: Please trade on a demo account until you feel comfortable enough to use real money, and then please stick to 1%-2% of your total account value in risk per trade.*
AutoView
PineConnector
**ATR Auto-Trading Alert Setup**
How to create alerts on 3 Line Strike Strategy
For Trailing Stops:
1) Adjust autoview/pineconnector settings
2) Click "add alert"
3) Select "Condition" = Strategy Name
4) Select "Order Fills Only" from the drop-down
3) Remove template message text from "message" box and place the exact text. '{{strategy.order.alert_message}}'
4) Click "create"
For Fixed Pip Stop:
1) Adjust autoview/pineconnector settings
2) Click "add alert"
3) Select "Condition" = Strategy Name
4) Select "alert() function calls only"
5) I like to title my Alert Name the same thing I named it as an Indicator Template to keep track
Good luck with your trading!
VIDYA Trend StrategyOne of the most common messages I get is people reaching out asking for quantitative strategies that trade cryptocurrency. This has compelled me to write this script and article, to help provide a quantitative/technical perspective on why I believe most strategies people write for crypto fail catastrophically, and how one might build measures within their strategies that help reduce the risk of that happening. For those that don't trade crypto, know that these approaches are applicable to any market.
I will start off by qualifying up that I mainly trade stocks and ETFs, and I believe that if you trade crypto, you should only be playing with money you are okay with losing. Most published crypto strategies I have seen "work" when the market is going up, and fail catastrophically when it is not. There are far more people trying to sell you a strategy than there are people providing 5-10+ year backtest results on their strategies, with slippage and commissions included, showing how they generated alpha and beat buy/hold. I understand that this community has some really talented people that can create some really awesome things, but I am saying that the vast majority of what you find on the internet will not be strategies that create alpha over the long term.
So, why do so many of these strategies fail?
There is an assumption many people make that cryptocurrency will act just like stocks and ETFs, and it does not. ETF returns have more of a Gaussian probability distribution. Because of this, ETFs have a short term mean reverting behavior that can be capitalized on consistently. Many technical indicators are built to take advantage of this on the equities market. Many people apply them to crypto. Many of those people are drawn down 60-70% right now while there are mean reversion strategies up YTD on equities, even though the equities market is down. Crypto has many more "tail events" that occur 3-4+ standard deviations from the mean.
There is a correlation in many equities and ETF markets for how long an asset continues to do well when it is currently doing well. This is known as momentum, and that correlation and time-horizon is different for different assets. Many technical indicators are built based on this behavior, and then people apply them to cryptocurrency with little risk management assuming they behave the same and and on the same time horizon, without pulling in the statistics to verify if that is actually the case. They do not.
People do not take into account the brokerage commissions and slippage. Brokerage commissions are particularly high with cryptocurrency. The irony here isn't lost to me. When you factor in trading costs, it blows up most short-term trading strategies that might otherwise look profitable.
There is an assumption that it will "always come back" and that you "HODL" through the crash and "buy more." This is why Three Arrows Capital, a $10 billion dollar crypto hedge fund is now in bankruptcy, and no one can find the owners. This is also why many that trade crypto are drawn down 60-70% right now. There are bad risk practices in place, like thinking the martingale gambling strategy is the same as dollar cost averaging while also using those terms interchangeably. They are not the same. The 1st will blow up your trade account, and the 2nd will reduce timing risk. Many people are systematically blowing up their trade accounts/strategies by using martingale and calling it dollar cost averaging. The more risk you are exposing yourself too, the more important your risk management strategy is.
There is an odd assumption some have that you can buy anything and win with technical/quantitative analysis. Technical analysis does not tell you what you should buy, it just tells you when. If you are running a strategy that is going long on an asset that lost 80% of its value in the last year, then your strategy is probably down. That same strategy might be up on a different asset. One might consider a different methodology on choosing assets to trade.
Lastly, most strategies are over-fit, or curve-fit. The more complicated and more parameters/settings you have in your model, the more likely it is just fit to historical data and will not perform similar in live trading. This is one of the reasons why I like simple models with few parameters. They are less likely to be over-fit to historical data. If the strategy only works with 1 set of parameters, and there isn't a range of parameters around it that create alpha, then your strategy is over-fit and is probably not suitable for live trading.
So, what can I do about all of this!?
I created the VIDYA Trend Strategy to provide an example of how one might create a basic model with a basic risk management strategy that might generate long term alpha on a volatile asset, like cryptocurrency. This is one (of many) risk management strategies that can reduce the volatility of your returns when trading any asset. I chose the Variable Index Dynamic Average (VIDYA) for this example because it's calculation filters out some market noise by taking into account the volatility of the underlying asset. I chose a trend following strategy because regressions are capturing behaviors that are not just specific to the equities market.
The more volatile an asset, the more you have to back-off the short term price movement to effectively trend-follow it. Otherwise, you are constantly buying into short term trends that don't represent the trend of the asset, then they reverse and loose money. This is why I am applying a trend following strategy to a 4 hour chart and not a 4 minute chart. It is also important to note that following these long term trends on a volatile asset exposes you to additional risk. So, how might one mitigate some of that risk?
One of the ways of reducing timing risk is scaling into a trade. This is different from "doubling down" or "trippling down." It is really a basic application of dollar cost averaging to reduce timing risk, although DCA would typically happen over a longer time period. If it is really a trend you are following, it will probably still be a trend tomorrow. Trend following strategies have lower win rates because the beginning of a trend often reverses. The more volatile the asset, the more likely that is to happen. However, we can reduce risk of buying into a reversal by slowly scaling into the trend with a small % of equity per trade.
Our example "VIDYA Trend Strategy" executes this by looking at a medium-term, volatility adjusted trend on a 4 hour chart. The script scales into it with 4% of the account equity every 4-hours that the trend is still up. This means you become fully invested after 25 trades/bars. It also means that early in the trade, when you might be more likely to experience a reversal, most of your account equity is not invested and those losses are much smaller. The script sells 100% of the position when it detects a trend reversal. The slower you scale into a trade, the less volatile your equity curve will be. This model also includes slippage and commissions that you can adjust under the "settings" menu.
This fundamental concept of reducing timing risk by scaling into a trade can be applied to any market.
Disclaimer: This is not financial advice. Open-source scripts I publish in the community are largely meant to spark ideas that can be used as building blocks for part of a more robust trade management strategy. If you would like to implement a version of any script, I would recommend making significant additions/modifications to the strategy & risk management functions. If you don’t know how to program in Pine, then hire a Pine-coder. We can help!
tvbot Trend Following with Mean Reversion algoDefault settings are for the ETHUSDT 5 min Binance Chart regular candles.
Back test Default settings are 10,000 usd to start, Commission 0.075%, capital deployment per position is 10%, slippage value of 1.
This algo uses the EMA to set the trend line . You are also able to turn the trend line into a range instead of just a static line. The algo uses the VWMA to set the base entry parameters. When a candle closes above or below the VWMA it will record that price and then wait for the VWMA to meet the candle close price. When that happens the Base entry condition is met. (it causes the vwma to create a hook like structure. essentially tell you that the momentum has changed directions.)
The algo will always check to see if the trend line has either breached or has been tested and held. If this condition has been met it will then go to the base entry condition to check to see if the momentum has changed.
There is a mean reversion component in this algo as well. When the price has moved away from the mean(set by user) by a certain amount the algo will start to look for a top or bottom. Once that condition has been met it will then use the base entry condition to look for a change in momentum, but the mean reversion base entry condition uses the HMA to check for a change in momentum.
This algo effectively looks like a hamburger. Mean reversion being the tops and bottoms(bun) and the trend following(beef patty)
LudovicaLudovica is a trend following strategy that works on intraday timeframes (15 minutes).
The stop loss is decided based on the last price movement, take profits are projected through a Fibonacci extension. Two different extensions are calculated, based on a filter that affects the last price movement it is chosen which one to use for take profits.
Money management is fixed fractional: regardless of the distance between entry point and stop loss, the risk on capital for each trade is decided by the user in the strategy inputs. Take profits from 1 to 4 plan to exit with 15% of the initial size, TPs from 5 to 8 plan to exit with 10% of initial size.
There is a trailing stop system to reduce the drawdown of the strategy (note that stop loss moves as the trade develops).
Take profits are limit orders, stops (loss or trailing) occur at candlestick close (set alerts on the strategy).
Optimized strategies selectable from input panel:
-ETHUSDTPERP 15 min
-CRVUSDTPERP 15 min v1
-CRVUSDTPERP 15 min v2
-SNXUSDTPERP 15 min
Other pairs in development and soon available.
This strategy is in beta stage.
[B_1] 15min Future Based on Pullback Condition
GENERAL INTRODUCTION:
This scripts is a trend catcher strategy, looking for entry points based on pullback condition.
HOW IT WORKS:
Entry Long: when price close above 15m Supertrend and an EMA line trend, MACD (12,26,9) below MACD signal (12,26,9), RSI(14) >50 & <80 and SAR is positive.
Exit Long: when price hit TPs or touch Stoploss.
Entry Short: when price close below 15m Supertrend and an EMA line trend, MACD (12,26,9) above MACD signal (12,26,9), RSI(14) <50 & >25 and SAR is negative.
Exit Short: when price hit TPs or touch Stoploss.
HOW TO USE IT:
1. Setup comment Long/Short: this setting used for auto trading. You can fill text to alert then in alert box of Tradingview, using {{strategy.order.comment}}.
2. Setup Entry
+ EMA Length: the EMA period to filter the trend (default is 30).
+ Buy/Sell ETH follow BTC: open long/short ETHUSDTPERP when BTCUSDT touch and reject SuperTrend 1H/2H/4H.
+ Long/Short again: Allow re-entry when price hit all TP or SL.
3. Setup Exit
+ Multi profit: Take profit levels are set according to the fibonacci levels.
+ Auto find TP: If having resistants in higher timeframe near TP1, TP1 will auto set at that resistant.
+ Stoploss: you have two options: Stoploss based on percentage or ATR.
+ When price hit TP1, you have two options: only move Stoploss to entry or active trailing.
4. Custom tools
+ SuperTrend MTF: they used for take multiprofit (you can show or hide them).
+ Table result.
BACKTEST:
Currently, the strategy is optimized for: BINANCE:ETHUSDTPERP . However it can also run on some other coins like: BINANCE:RUNEUSDTPERP , BINANCE:FILUSDTPERP , ...
Parameters for BINANCE:ETHUSDTPERP:
+ 01/01/2022 to present.
+ Order size starting: 01 contract.
+ commission fee: 0.02%
+ No leverage.
=> 475 trades, ratio profit: loss is 5800: 400.
If you want access to this scripts, please inbox to me, you are always welcome.
issam miftah strategymon script est différent de ceux qui sont publiés avec la précision du tp et SL meme si un RR est bas mais le taux de réussite est bien trop élevé de 70% je conseille de l'utiliser sur le timeframe M15. et ca repaint pas les signaux vous pouvez l'utiliser en automatique. Courage les traders :)
Issam Miftah
MY_TRENDThe MY_TREND strategy is designed to work with cryptocurrencies and stocks.
The optimal working timeframe is 1 - 4 hours.
The search for trading zones and main entry points is based on the Donchian channel using the author's filtering by pinning.
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.
If the price fixes above the trend line, we expect an upward movement, and if it fixes below, we expect a downward movement.
In addition, in the settings it is possible to use additional trend entries, as well as aggressive trading.
To do this, in the area of action of the main trend, built on the basis of the Donchian channel, a local trend is formed at the moving average price of the asset.
--------------------------------------------
📗 Algorithm for selecting optimal parameters:
--------------------------------------------
1. Disable the use of takes and stops, and set up the setup (described below) so that the back test readings are positive and have growing dynamics.
Pay attention to the level of drawdown and the percentage of correct trades.
2. Enable the use of a stop line, and select the most optimal stop parameters so that the drawdown level on the back test is acceptable for you.
3. Enable the use of takes and select the most optimal take for your strategy.
4. Select the type of trade (described below) and make sure that the back test readings are acceptable to you.
5. By default, the strategy uses a trading commission of 0.04% (standard for crypto futures), but for stocks it should be set in accordance with the commissions of your broker.
-------------------------------------
💹 SETUP SETTINGS:
-------------------------------------
Setup_length - distance for calculating and evaluating volatility in the Donchian channel.
For an older timeframe, it is better to lower the value, otherwise we may get a delay in the reaction of the trend to the price movement.
Setup_mult - multiplier to smooth out the reaction of the trend in the Donchian channel.
For an older TF, it is better to increase the value in order to avoid false entry signals.
Selecting the type of trade:
BASED - gives trading signals only when the basic trend changes (trading without additional entry signals).
IN_TREND - gives BASED trading signals and additional signals on the underlying trend, using the ADD SMA as a local trend indicator.
AGRESSIVE - gives BASED trading signals and additional signals on the underlying trend, when the price falls below the ADD SMA local trend line.
ADD SMA length - SMA period to form a local trend within the underlying Donchian trend (values in the range of 3-9 should be used to get a fast response).
This setting is relevant for IN_TREND and AGRESSIVE trading types.
-------------------------------------
🟢 TAKE SETTINGS:
-------------------------------------
The strategy has 3 types of take:
ATR - take based on the instrument's volatility value (adjusted by a multiplier).
FIX - take, set as a percentage (set manually).
STDEV - take, based on the calculation of the standard deviation of the price (adjusted by a multiplier and a period).
-------------------------------------
⛔️ STOP SETTINGS:
-------------------------------------
The strategy has 3 types of stops:
ATR - stop based on the instrument's volatility value (adjustable by a multiplier).
FIX - stop specified in percentage (set manually).
TREND - the stop line is equal to the base trend line.
It is possible to turn on the stop line tightening to the level of the price of entry into a position, when the price passes the value of one standard deviation into profit.
-------------------------------------
💡 OTHER USEFUL FEATURES
-------------------------------------
✅ In the strategy, you can enable / disable the use of takes and stop lines.
✅ In the strategy, you can enable / disable the display of the base and local trend lines, and enable the background highlighting of the current trend.
✅ You can choose the direction of trading: long, short or any.
✅ Leverage can be set (x3 by default).
✅ 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_TREND strategy on the chart with different settings (for different pairs or for different timeframes).
✅ You can choose the type of alerts - ALERT or BOT.
ALERT - tradingview pop-up trading alerts (you can configure them to be sent to e-mail or to the application).
BOT - trading commands following the Binance/Finandy syntax, designed to be sent to a trading bot using a webhook.
To use alerts, select "Only when the alert() function is called"
✅ 👉 In the strategy settings, each field has hints, to do this, hover over the ⓘ sign
💰 Be sure to follow the risk management when trading!
-------------------------------------
The MY_TREND strategy is private! You can get test access to it for 24 hours.
👉 In order to gain access or ask questions, write to me in private messages or at the contacts indicated in my signature.
-------------------------------------
========================================================================================================
Стратегия MY_TREND предназначена для работы с криптовалютами и акциями.
Оптимальный рабочий таймфрейм 1 - 4 часа.
Поиск торговых зон и основных точек входа производится на базе канала Donchian используя авторскую фильтрацию по закреплению.
Чтобы избежать манипуляций на рынке, алгоритм отслеживает уровень нахождения цены относительно глобального тренда и тем самым фильтрует немалую часть ложных сигналов.
При закреплении цены выше трендовой, мы ожидаем восходящее движение, а при закреплении ниже - нисходящее.
Кроме этого в настройках есть возможность использовать дополнительные входы по тренду, а также агрессивную торговлю.
Для этого в зоне действия основного тренда, построенного на базе канала Donchian, формируется локальный тренд по средней скользящей цены актива.
-----------------------------------------
📗 Алгоритм подбора оптимальных параметров:
-----------------------------------------
1. Отключите использование тейков и стопов, и настройте сетап (ниже подробно описано) так, чтобы показания бэк-теста были положительными и имели растущую динамику.
Обращайте внимание на уровень просадки и процент верных сделок.
2. Включите использование стоп-линии, и подберите наиболее оптимальные параметры стопа так, чтобы уровень просадки на бэк-тесте был для Вас приемлемым.
3. Включите использование тейков и подберите наиболее оптимальный тейк для Вашей стратегии.
4. Выберите тип торговли (ниже описано) и убедитесь в приемлемых для Вас показаниях бэк-теста.
5. По умолчанию в стратегии используется торговая комиссия 0,04% (стандартно для крипто-фьючерсов), но для акций её следует выставить в соответствии с комиссиями Вашего брокера.
-------------------------------------
💹 НАСТРОЙКА СЕТАПА:
-------------------------------------
Setup_length - дистанция для расчета и оценки волатильности в канале Donchian.
Для более старшего ТФ, значение лучше понижать, иначе мы можем получить запаздывание реакции тренда на движение цены.
Setup_mult - множитель, для сглаживания реакции тренда в канале Donchian.
Для более старшего ТФ, значение лучше повышать, чтобы избежать ложных сигналов на вход.
Выбор типа торговли:
BASED - даёт торговые сигналы только при смене базового тренда (торговля без дополнительных сигналов на вход).
IN_TREND - даёт торговые сигналы BASED и дополнительные сигналы по базовому тренду, используя ADD SMA как индикатор локального тренда.
AGRESSIVE - даёт торговые сигналы BASED и дополнительные сигналы по базовому тренду, при просадке цены ниже линии локального тренда ADD SMA.
ADD SMA length - Период SMA для формирования локального тренда внутри базового тренда Donchian (следует использовать значения в диапазоне 3-9, для получения быстрой реакции).
Данная настройка актуальна для типов торговли IN_TREND и AGRESSIVE.
-------------------------------------
🟢 НАСТРОЙКА ТЕЙКОВ:
-------------------------------------
Стратегия имеет 3 типа тейка:
ATR - тейк на базе значения волатильности инструмента (регулируется множителем).
FIX - тейк, заданный в процентах (задаётся вручную).
STDEV - тейк, на базе расчёта стандартного отклонения цены (регулируется множителем и периодом).
-------------------------------------
⛔️ НАСТРОЙКА СТОПА:
-------------------------------------
Стратегия имеет 3 типа стопа:
ATR - стоп на базе значения волатильности инструмента (регулируется множителем).
FIX - стоп, заданный в процентах (задаётся вручную).
TREND - стоп-линия равна базовой линии тренда.
Есть возможность включить подтяжку стоп-линии на уровень цены входа в позицию, при прохождении цены значения одного стандартного отклонения в профит.
-------------------------------------
💡 ПРОЧИЕ ПОЛЕЗНЫЕ ФУНКЦИИ
-------------------------------------
✅ В стратегии можно включить/отключить использование тейков и стоп-линии.
✅ В стратегии можно включить/отключить отображение линии базового и локального тренда, а включить фоновую подкраску текущего тренда.
✅ Можно выбрать направление торговли: лонг, шорт или любое.
✅ Можно установить кредитное торговое плечо (по умолчанию x3).
✅ На экране есть компактное отображение таблицы с текущими настройками стратегии и текущим состоянием (позиция, тейки, стоп).
Для удобства сохранения своих настроек - воспользуйтесь стандартной функцией PrintScreen.
✅ Вы можете подписать стратегию в поле Notes - это удобно, если Вы размещаете на графике несколько версий стратегии MY_TREND с разными настройками (для разных пар или для разных ТФ).
✅ Вы можете выбрать тип оповещений - ALERT или BOT.
ALERT - всплывающие торговые оповещения tradingview (можно настроить их отправку на e-mail или в приложение).
BOT - торговые команды с соблюдением синтаксиса Binance/Finandy, предназначенные для отправки их торговому боту с помощью webhook.
Для использования оповещений выбирайте "Только при вызове функции alert()"
✅ 👉 В настройках стратегии у каждого поля есть подсказки, для этого наведите курсор на знак ⓘ
💰 Обязательно соблюдайте риск-менеджмент при торговле!
-------------------------------------
Стратегия MY_TREND является закрытой! Вы можете получить к ней тестовый доступ на 24 часа.
👉 Для того, чтобы получить доступ или задать вопросы пишите мне в личные сообщения или по контактам, указанным в моей подписи.
-------------------------------------
Smoothed Heikin Ashi Trend on Chart - TraderHalai BACKTESTSmoothed Heikin Ashi Trend on chart - Backtest
This is a backtest of the Smoothed Heikin Ashi Trend indicator, which computes the reverse candle close price required to flip a Heikin Ashi trend from red to green and vice versa. The original indicator can be found in the scripts section of my profile.
This particular back test uses this indicator with a Trend following paradigm with a percentage-based stop loss.
Note, that backtesting performance is not always indicative of future performance, but it does provide some basis for further development and walk-forward / live testing.
Testing was performed on Bitcoin , as this is a primary target market for me to use this kind of strategy.
Sample Backtesting results as of 10th June 2022:
Backtesting parameters:
Position size: 10% of equity
Long stop: 1% below entry
Short stop: 1% above entry
Repainting: Off
Smoothing: SMA
Period: 10
8 Hour:
Number of Trades: 1046
Gross Return: 249.27 %
CAGR Return: 14.04 %
Max Drawdown: 7.9 %
Win percentage: 28.01 %
Profit Factor (Expectancy): 2.019
Average Loss: 0.33 %
Average Win: 1.69 %
Average Time for Loss: 1 day
Average Time for Win: 5.33 days
1 Day:
Number of Trades: 429
Gross Return: 458.4 %
CAGR Return: 15.76 %
Max Drawdown: 6.37 %
Profit Factor (Expectancy): 2.804
Average Loss: 0.8 %
Average Win: 7.2 %
Average Time for Loss: 3 days
Average Time for Win: 16 days
5 Day:
Number of Trades: 69
Gross Return: 1614.9 %
CAGR Return: 26.7 %
Max Drawdown: 5.7 %
Profit Factor (Expectancy): 10.451
Average Loss: 3.64 %
Average Win: 81.17 %
Average Time for Loss: 15 days
Average Time for Win: 85 days
Analysis:
The strategy is typical amongst trend following strategies with a less regular win rate, but where profits are more significant than losses. Most of the losses are in sideways, low volatility markets. This strategy performs better on higher timeframes, where it shows a positive expectancy of the strategy.
The average win was positively impacted by Bitcoin’s earlier smaller market cap, as the percentage wins earlier were higher.
Overall the strategy shows potential for further development and may be suitable for walk-forward testing and out of sample analysis to be considered for a demo trading account.
Note in an actual trading setup, you may wish to use this with volatility filters, combined with support resistance zones for a better setup.
As always, this post/indicator/strategy is not financial advice, and please do your due diligence before trading this live.
Original indicator links:
On chart version -
Oscillator version -
Update - 27/06/2022
Unfortunately, It appears that the original script had been taken down due to auto-moderation because of concerns with no slippage / commission. I have since adjusted the backtest, and re-uploaded to include the following to address these concerns, and show that I am genuinely trying to give back to the community and not mislead anyone:
1) Include commission of 0.1% - to match Binance's maker fees prior to moving to a fee-less model.
2) Include slippage of 10 ticks (This is a realistic slippage figure from searching online for most crypto exchanges)
3) Adjust account balance to 10,000 - since most of us are not millionaires.
The rest of the backtesting parameters are comparable to previous results:
Backtesting parameters:
Initial capital: 10000 dollars
Position size: 10% of equity
Long stop: 2% below entry
Short stop: 2% above entry
Repainting: Off
Smoothing: SMA
Period: 10
Slippage: 10 ticks
Commission: 0.1%
This script still remains to shows viability / profitablity on higher term timeframes (with slightly higher drawdown), and I have included the backtest report below to document my findings:
8 Hour:
Number of Trades: 1082
Gross Return: 233.02%
CAGR Return: 14.04 %
Max Drawdown: 7.9 %
Win percentage: 25.6%
Profit Factor (Expectancy): 1.627
Average Loss: 0.46 %
Average Win: 2.18 %
Average Time for Loss: 1.33 day
Average Time for Win: 7.33 days
Once again, please do your own research and due dillegence before trading this live. This post is for education and information purposes only, and should not be taken as financial advice.
[Pt] TICK Supertrend Strategy, 5 minBackground:
It is well known that the indices such as SPY and QQQ follow/represent market sentiment. The TICK index literally represents the market sentiment as it compares the number of stocks that are rising and falling on the NYSE. By default, the TICK index is a short term indicator. Therefore it isn't reliable for swing trading or long term strategies. However, it is perfect for scalping.
Although TICK is well known, many does not know how to use it effectively. As part of the background mechanism of this script, I’ve divided TICK into 5 major zones based on the close of each candle: Overbought (neutral with bearish bias), Bullish, Neutral, Bearish, and Oversold (neutral with bullish bias). Along with the use of Heikin Ashi technique, RSI, moving averages and candle analysis, this strategy aims to provide accurate representation of market sentiment and profitable entry and exit points. *** At the time of publication, this strategy has proved to be consistently profitable. HOWEVER, this DOES NOT guarantee future profitability. So use at your own risk! ***
What is it showing?
This strategy is an intraday scalping strategy that uses TICK data to predict market directions for optimal entry and exit points. It is displayed similarly to the famous Supertrend indicator, which is one of the most common ATR based trailing stop indicators, so visually it is easy to read. This strategy is suitable for trading indices such as SPX , SPY , SPX500USD , QQQ , DJI and any other tickers that have high positive correlation with TICK.
Script is proprietary, but as mentioned it incorporates the following elements with additional candlestick analysis, pattern recognition, stop-loss and profit taking strategy:
- NYSE TICK data
- Heikin Ashi candle technique
- ATR
- RSI
- Moving Averages
Bullish trend is determined by a confluence of said indicators and analyses, and is displayed as a green line under the price action. The distance is defined by an adjustable value that is based on a percentage of the previous daily ATR value. When a long order is in play, that line also acts as the stop-loss level. Bearish trend is the opposite and is displayed in red, by default.
What's unique?
Detecting a ranging market structure and avoiding overtrading in a choppy market has always proven to be difficult, even for the most professional traders. This strategy has built-in “choppiness” and volatility filtering scripts that attempts to help reduce the number of false entries. These elements are what makes this strategy unique and different from other indictors mashup strategies.
In addition, this strategy takes previous trades into account and “learn” from past trades when determining the optimal stop-loss level to maximize profitability. This allows this strategy to better adapts to changing and evolving market conditions.
Strategy statistics
All parameters are designed for 5min time frame.
At the time of publication, this strategy has proved to be consistently profitable through limited back testing data.
Initial capital = $10000
Pyramiding = 1
Slippage = 3 ticks to account for spread
Default leverage shown = 9x
Quantity per trade = 100% of account
Back testing period at time of publication = Apr 11, 2022 - July 22, 2022
Trading Session = 1000 - 1530 Mon-Fri
Timeframe = 5 min
Gain = 1338.48%
Total trades = 253
% Profitable = 45.85%
Profit Factor = 2.506
Max Drawdown = 19.36%
Extras
This release includes default AutoView alerts for trading SPX500USD on Oanda. It includes both long and short order entry alerts, and trailing stop-loss alerts.
Please DM for free trial.
3C QFL Mean reversalWhat is QFL trading strategy?
QFL stands for Quickfingersluc, and sometimes it is referred to as the Base Strategy or Mean Reversals. Its main idea is about identifying the moment of panic selling and buying below the base level and utilizing Safety orders.
What is Base level or Support Level?
Base level or Support Level refers to the lowest price level that was reached before the moment the price started increasing again. At that level, you can notice that buyers of some cryptocurrencies make a strong reaction.
In this strategy we can also reverse the strategy and go short. But i must warn you that that is alot riskier.
QFL is meant to be used on higher TF's like 1hr, 2hr and 4hr. But this strategy also work well on lower Timeframes.
The script also simulates DCA strategy with parameters used in 3commas DCA bots for futures trading.
Experiment with parameters to find your trading setup.
Beware how large your total leveraged position is and how far can market go before you get liquidated!
Do that with the help of futures liquidation calculators you can find online!
Included:
An internal average price and profit calculating, instead of TV`s native one, which is subject to severe slippage.
A graphic interface, so levels are clearly visible and back-test analyzing made easier.
Long & Short direction of the strategy.
Table display a summary of past trades
Vertical colored lines appear when the new maximum deviation from the original price has
been reached
All the trading happens with total account capital, and all order sizes inputs are expressed in percent.
ATR + MTF Candles + HullMa + DIThis is a strategy based on a youtube video by TradeIQ: www.youtube.com
I've reverse engineered the 1 minute Easy Scalping Sys 3.0 indicator (since it is not open source).
The default trading rules are set to the recommendations of TradeIQ but can be adjusted to find maximum performance.
This script uses 4 timeframes to color the bars, stop-loss ATR bands to find the stop-loss, Divergence Indicator to find an entry and Hull MA for trend analysis.
Special credits go to:
@mohamed982 for making Hull MA
@veryfid for making ATR Stop Loss Finder
@BeikabuOyaji for making ADX and DI
IPB_JPMUPS_2022Introduction :
This indicator serves two purposes
a) It is a multi dimensional floor pivot indicator, which takes its concepts from Secrets of Pivot Boss book of Frank Ochoa. Most of the indicators suggested in the book are packed in one indicator.
b) It also has an inbuilt intraday strategy which identifies trend, direction and momentum based on CPR (Central Pivot Range) concepts and accordingly comes up with trading signals.
How this indicator is different from the published ones :
A). Role as an indicator
This indicator has all the CPR (Central Pivot Range) indicators packed together which provides a ready made solution for CPR based trading. The following are the salient features of this indicator :
1) This indicator plots daily CPR using previous day high, low and close. It also plots Support and Resistance levels based on floor pivots formula.
Moreover, it also plots developing CPR which is based on current day's high, low and close. Apart from that it also plots CPR for next day session as well which is useful for EOD analysis.
2) This indicator plots weekly CPR using previous week high, low and close. It also plots developing CPR which is based on current week's high, low and close.
3) This indicator plots monthly CPR using previous month high, low and close. It also plots developing CPR which is based on current month's high, low and close.
4) This indicator plots pivot EMA which is called PEMA. It uses three different EMAs which are customisable and uses them to plot a moving average web based on pivot points of each candle, which is called as PEMA. This also facilitates PEMA plotting for higher time frame (daily time frame) as well.
5) This indicator plots daily time frame moving average in intraday chart which can be used as a key zone during trading. The period is customisable.
B) Role as a strategy
This indicator also functions as an intraday trading strategy called JPMUPS (JP stands for author's nickname. MUPS stands for Manoj Ultimate Pivot Strategy). This strategy attempts to identify trend, direction and momentum and when all these three align together it gives buy and sell signals. The concepts are as under:
Trend identification :
Whenever a trend is established, the developing CPR starts to widen. Hence this strategy uses the width of the developing CPR and compares it with the MA of the width to identify the trend. If the width of the developing CPR crosses the 34 period MA (can be customised), it assumes a trend is developing.
Direction identification:
Whenever a direction is established, the CPR components, namely BC and TC shifts its position. Hence this strategy uses this concept to identify the direction. It computes MACD sort of histogram of the BC and TC difference and whenever the histogram slops upwards, it assumes bullish direction and vice versa.
Momentum identification :
Whenever momentum is established, the developing CPR starts sloping upwards. Hence this strategy uses this concept to identify the momentum. It computes RSI of the developing CPR and if the RSI is above the 34 period MA (can be customised) of RSI , it assumes momentum is establishing and vice versa.
When all the above are aligned together, it gives buy or sell signals suitably.
How to use it :
a) Indicator usage :
1) CPR zones are key zones which predominantly acts as support and resistance zones. Looking at the price action at these zones, one can look for trading opportunities in live market.
2) Developing CPR acts as pull back zones and is very useful in live trading and also EOD analysis for spotting opportunities by combining price action.
b) Strategy usage :
1). Strategy signals are only indicative. Users are strongly advised not to use the strategy blindly. Users are advised to go though the CPR concepts thoroughly and use this strategy signals only as a supplement for further decision making / analysis.
Markets meant for :
1). This indicator and Strategy is predominantly designed for I ndian stock markets . However it can be customised for other markets as well by changing the timings of the markets in the parameters.
Market conditions meant for :
1). This indicator is meant for all types of market conditions as its predominant role is to plot the key support and resistance zones using CPR concepts.
2). The strategy is mainly found to be effective in trending markets and predominantly indices like Nifty and Bank Nifty . Hence Users are advised to use this only as an indicative feature and not blindly trade based on signals. The strategy is found to be less effective in lower time frames like 1min / 3min, etc. 15 min time frame provides fair performance. However it doesnt mean that it will continue to perform in the same manner in the future.
The Ultimate Backtest - Fontiramisu█ OVERVIEW
The Ultimate Backtest allows you to create an infinite number of trading strategies and backtest them easily and quickly.
You can leverage the trading setup you created with the tradingview's real-time alert system.
The tool is constantly being improved to accommodate more in-house indicators in order to imagine more trading strategies.
█ HOW IT WORKS.
The tool is divided into 3 main parts:
1. The indicators:
These are the indicators that you will be able to set up to create your setups.
Example: rsi, exponential moving average, home made resistance/support indicator etc.
We are working to add more and more in-house indicators to multiply the trading strategies.
2. The entry/exit strategy:
The entry/exit trades management is a central point of the strategy.
Here we propose several ways to take profits and in-house optimizations to enter a position.
3. The setup: the combination of indicators
Here it is up to you to create your own recipe.
You combine the different indicators set up above to make a real strategy.
Example: RSI Divergence + Location on a support.
Let's look at this in more detail.
Below is a description of all sections
█ 1. THE INDICATORS
TREND: MA (moving average) -->
Set up a moving average from multiple methods (sma, ema, smma...) of the type and length you want.
> A long is taken if the price is above the MA.
> A short is taken if the price comes below the MA.
You can set up a smoothing MA from the existing moving average and use it in the same way.
ENVELOPE: SUPER TREND -->
The supertrend is a trend following indicator. It clearly describes the distinction between downtrends and uptrends with a red or green direction. It is calculated according to the ATR and a factor.
> A long is taken when the direction is green and the price touches the supertrend support line.
> A short is taken when the direction is red and the price touches the supertrend resistance line.
ENVELOPE: BOLLINGER BAND -->
Bollinger bands are used to evaluate the volatility and probable evolution of prices, here we exploit the envelope
> A long is taken if the price crosses the lower band.
> A short is taken if the price crosses the upper band.
CLOUD: ICHIMOKU -->
The Ichimoku cloud aims to identify the direction and reversal points of dominant market trends. It displays support and resistance levels.
> A long is taken when the price enters the green ichimoku cloud.
> A short is taken when the price enters the red ichimoku cloud.
MOMENTUM: MACD ZERO LAG / MACD / RSI -->
RSI (Relative Strength Index) reflects the relative strength of upward movements, compared to downward movements.
MACD (Moving Average Convergence Divergence) is a momentum indicator that follows the trend and shows the correlation between two moving averages of the asset price.
MACD ZERO LAG is calculated in the same way except that the exponential moving averages that make up the calculation do not lag.
> A long is taken on a potential bullish divergence.
> A short is taken on a potential bearish divergence.
For now, with these indicators, we only take a trade based on divergences but we will add overbuy/oversell etc.
MOMENTUM: MA SLOPE -->
This house indicator allows you to use the slope of a moving average as a measure of momentum.
Define the length of the moving average whose slope we will take.
We then take a fast ma of the slope then a slow ma (You define the lengths with the parameters)
The tool foresees a subtraction between the slow and fast ma to have another interpretation of the slope.
This indicator is available and can be viewed freely on my tradingview profile.
> A long is taken when there is a potential bullish divergence on the fast/slow MA or the difference.
> A short is taken when there is a potential bear divergence on the fast/slow MA or the difference.
RESISTANCE: R/S FONTIRAMISU -->
An in-house indicator that shows resistances and supports according to the chosen parameters.
Indicator available and can be viewed freely on my tradingview profile.
> A long is taken when the price arrives on a support.
> A short is taken when the price arrives on a resistance.
-----
MOMENTUM DIVERGENCE -->
Section used to set the divergence detection.
The first field allows you to select which momentum you want to calculate the divergence on.
PIVOT DETECTION -->
Used to calculate top and dip on the chart, it is used with divergences/resistances/enter-exit optimizations....
Default parameters are: Deviation: 2.5, Depth: 10.
█ 2. STRATEGY FOR ENTERING/EXITING TRADES.
STRATEGY: TP/SL -->
Enter/Exit Trade Mode" field: The first field allows you to choose between two modes:
1. TP/SL Mode:
This mode allows you to take entries with take profits that you define afterwards with the TP1 and TP2 parameters .
> The stop loss is calculated automatically by taking the last dip if it is a long and the last top if it is a short.
> You can add a "Stop Loss % Offset" which will increase the size of the stop loss by the % value you set.
> If you activate TP2, the profit taking is split between TP1 and TP2, you can select the percentage of profit taking split between TP1 and TP2 via the "Percent Exit Profit TP1" field.
> The "TPX Multiplier" fields allow you to define the desired Risk Reward, if = 1 then RR = 1/1.
> A Trailing stop option is available, if active then the profit take will be split between TP1 and Trailing stop.
For the moment you can choose between the two MA's set up above to serve as trailing stop:
> In long, if the price goes below the MA then you take the profit (or the loss)
> In short, if the price goes above the MA then you take the profit (or the loss)
2. ONLY BUY/SELL:
Here the take profits are not taken into account, we only have an alternation between the long and the shorts.
The trailing stop applies to this mode and can be interesting depending on the use.
STRATEGY: SETUP OPTIMIZER (FP) -->
Here we have 3 home made optimization tools to take more relevant trades.
1. FAVORABLE ENTRY FROM PIVOT.
Here the tool will favor entries with interesting locations depending on dips and tops before.
A red cross with "FP" will appear on the chart each time a trade does not meet this condition.
2.STOP LOSS MAX (SL).
Will only take trades where the stop loss is maximum at X%.
A red cross with "%SL" will appear on the chart each time a trade does not meet this condition.
3. MOVE ALREADY TRADED.
Will not take several trades in the same move.
This can avoid cascading losing trades on some setups.
A red cross with "MT" will appear on the chart each time a trade does not meet this condition.
█ 3. THE SETUP: THE COMBINATION OF INDICATORS
Here, let your creativity speak.
You are free to assemble the indicators in the following way:
The conditions defined inside a group (group1/group2/group3) are combined to each other via an OR operator .
Example, if "cond01 = Momentum DIv" and "cond02 = Res/Sup Location", then trades will be triggered if one of the two conditions is met.
The conditions defined between several groups are multiplied via the AND operator .
Example, if "cond01 = Momentum DIv" and "cond12 = Res/Sup Location", then trades are taken if both conditions are met at the same time.
ALL CONDITIONS:
> NONE
No conditions selected.
> Momentum Div
Triggers when a potential divergence occurs on the selected momentum (in the divergence section).
> Momentum Div UT Sup
Triggers when a potential divergence occurs on the selected momentum (in the divergence section) in the upper timeframe.
The upper timeframe of the momentum is calculated directly in the code by multiplying the set parameters by 4 (fastlenght/slowlenght...).
> Multi MA
It is set in the "Trend: MA" section and is triggered by the conditions mentioned in the "INDICATORS" section.
> Smooting MA
Is set in the "Trend: MA" section and is triggered by the conditions mentioned in the "INDICATORS" section.
> Super Trend Env
Is set in the "ENVELOPE: SUPER TREND" section and is triggered by the conditions mentioned in the "INDICATORS" section.
> BB Env
It is set in the "ENVELOPE: BOLLINGER BAND" section and is triggered by the conditions mentioned in the "INDICATORS" section.
> Ichimoku Cloud
Is set in the "CLOUD: ICHIMOKU" section and is triggered by the conditions mentioned in the "INDICATORS" section.
> Res/Sup Location
Is set in the "RESISTANCE: R/S" section and is triggered by the conditions mentioned in the "INDICATORS" section.