scalping against trapped countertrendAbstract
This script attempts to find the end of countertrend.
This script uses oscillators to measure long term and short period trends. When the long term trend keeps positive and clear short term period is over, this script provides a buy signal.
This script does not contain pullback, cut loss and re-enter. You need to add it manually.
Introduction
Many traders want to buy when long term trend is bullish and short term pullback is over.
This is because we can take advantage to the emotion of countertrend traders.
Countertrend traders realizes their profit is finite and therefore want to protect their profit well and limit their loss.
This script is inspired by a searchable trading strategy video.
The video mentioned 4 points.
(1) long term trend. The video did not spend much ink on this point. You can use any method to observe.
(2) clear pullback bar (at least 50% body)
(3) weak bar after clear pullback
(4) entry trigger buy stop
This script attempts to quantize these points to determine trading direction.
This script is originally designed for timeframes lower than examples in the video but you can apply it on any timeframe.
Computing and Adjusting
(1) long term trend
This script uses smoothed stochastic.
(2) clear pullback bar
Since this script is originally designed for timeframes lower than examples in the video, so the condition becomes:
RSI is low enough
(3) weak bar after clear pullback
RSI goes back from low level.
(4) entry trigger buy stop
This script does not include this condition.
You can decide enter when buy stop or pullback.
Parameters
x_src : the value for computing oscillators
x_len_a : how many bars for measuring short term trend
x_len_b : how many bars for measuring long term trend
x_k_b : smooth long term trend, the average value of stochastic values
x_changk = check if clear short term pullback appears recently. 1 means do not use, larger numbers means how long of periods to check.
x_rsi_ct : threshold of short term pullback clear
x_rsi_ft : threshold of short term pullback end
Reading numbers in Strategy Tester
Most possible loss :
(1) to find rational pullback. Generally 1/3 to 2/3 atr.
(2) to find cut loss distance. Generally 1 to 2 atr.
Most possible profit :
to find if trading the opposite direction against this script is profitable.
Conclusion
This script can suggest us trading direction.
Waiting for pullback can reduce risk, compared to buy stop.
This script does not provide good signals in sideways markets.
Reference
A searchable trading strategy video
Cari dalam skrip untuk "profit"
Self-Optimising MACD (Experimental)Hi guys, just thought I'd share a small part of an idea i've been working on.
One of the biggest problems with algo trading is optimisation and finding a way to constantly adapt to the market conditions as time unfolds.
First of all... You should NEVER EVER trade just using a MACD, including this study, and I only produced this script in a small amount of time, so make sure you backtest it properly before using it. When backtesting, it is my advice that your sample size should be at least 5000 trades, but I recommend 10000 in order to get sufficient statistical significance.
Also, I am not a financial advisor, and any trading based decisions are your sole responsibility.
Anyways...
This script is simple... it simply uses 4 different MACD's and tracks their profit/loss and automatically uses the one with the most historical profit at any given time to execute a trade. The type of MACD will obviously change as market states fluctuate.
Included are : Hull MACD, Ema MACD, Sma MACD and VWMA Macd.
You can adjust all four of their settings to your desire.
The trade execution is simple and definitely flawed... it simply tracks the MACD when it has a crossover for long, and then the opposite for short.
The green line represents the performance of the top MACD for Longs at any given time. This line refreshes once a year, and where it is in relation to price, reflects how profitable it has been I.e - the higher it is the better.
The Red line represents the performance on the Short side, and again, it reflects profit/loss, but this time the LOWER the line is in relation to price the better.
There is no exit strategy in place! This is why I do NOT recommend trading off this script alone, but to use it as a tool to help optimise your choice of MACD.
However, your exit strategy could change your optimal choice of MACD, so keep that in mind.
The lookback period represents how far the script will track the performance at any given time. This will change your results. The longer the period, the more it will show long term success and vice versa.
This optimisation process could be done with different indicators, moving averages, or even multiple strategies to find the most statistically viable option at any given time... if you wish to have this process coded into your strategies or indicators, message me.
Enjoy.
Renovation-10 (Including 10 Traditional Indicators)This idea is not rare. It is just a combination of 10 most well know and traditional Indicators to form one renovated indicator. There are Moving Average (MA), Volume (V), Bollinger Band (BB), Relative Strength Index ( RSI ), Stochastic RSI, Modified Stochastic RSI, Moving Average Convergence Divergence ( MACD ), Average directional index ( ADX ), Average True Range (ATR) and Parabolic Stop and Reverse (PSAR). These indicators most I found was just showing entering position strategic alone. I just want to know how well them work together when combination. I modified many times and thinking for the strategic enter and exist position with the choice of these 10 indicators to maximize the profitability which shows in strategic tester in every stock and conditions.
THEORY:
Fluctuation of price is like a Wave which I categorized it into four period. They are Sideway, Breakout Positive and Negative, Retracement and Consolidation. Breakout is rare to happen, either go up or go down. After a breakout usually will have small retracement, then trend will go for sideway. After long period of sideway, the wave is starting to run out of energy and there will be consolidation period.
STRATEGIC OPTION:
S: Sideway Period
B: Breakout Period
R: Retracement Period
(+): Buy
(-): Sell
PROBLEM:
1. Not performing very well at very penny stock which the graph looks like barcode.
Suggesting can change daily graph to weekly graph to avoid.
2. Be careful with Sideway entry signal because sometimes price may continue go down. You will stuck at middle if you enter without confirmation.
Confirm the price is stable at support by current low is higher or equal to past three to five day low before entry.
3.Always remember Breakout is rare, do not push for luck
Always make profit at Sideway and Retracement trend. Can Sell half only at BB when breakout buying signal is available, to avoid losing chance of chasing breakout.
4. Breakout selling signal 2 may delay
After breakout, make sure sell all when 2-3 red candle appeared or When BB is squeezing.
5. Other tools may required to confirm entry position.
These combination strategic is more to personal experiences and knowledges, it hard to adjust in coding for strategic position.
This is my first publication and I just do it for fun, having fun in reading the script and creating own ideas.
Information provided is only educational and sharing , should not be used to take action in the markets.
JFRewards Indi Channel <Heikin> v4.0<>
SOP guidelines only given to JF members .
The ideas are:
1) Finding where to enter position of buying and sell.
2) Finding where is the realistic take profit target within 24 hours with maximum profits.
3) Finding Trailing STOP LOSS, Trailing Take Profit, Take Profit, STOP LOSS.
Fully tested with @Binance Exchanger with numerous of stablecoins and altcoins as well as BTC , ETH.
Performance cannot be shown due to non standard chart of Heikin Ashi.
Pyramiding Entries On Early Trends (by Coinrule)Pyramiding the entries in a trading strategy may be risky but at the same time very profitable with a proper risk management approach. This strategy seeks to spot early signs of uptrends and increase the position's size while the right conditions persist.
Each trade comes with its stop-loss and take-profit to enforce a proportional risk/reward profile.
The strategy uses a mix of Moving Average based setups to define the buy-signal.
The Moving Average (200) is above the Moving Average (100), which prevents from buying when the uptrend is already in its late stages
The Moving Average (9) is above the Moving Average (100), indicating that the coin is not in a downtrend.
The price crossing above the Moving Average (9) confirms the potential upside used to fire the buy order.
Each entry comes with a stop-loss and a take-profit in a ratio of 1-to-1. After over 400 backtests, we opted for a 3% TP and 3% SL, which provides the best results.
The strategy is optimized on a 1-hour time frame.
The Advantages of this strategy are:
It offers the possibility of adjusting the size of the position proportionally to the confidence in the possibilities that an uptrend will eventually form.
Low drawdowns. On average, the percentage of trades in profit is above 60%, and the stop-loss equal to the take-profit reduces the overall risk.
This strategy returned good returns both with trading pairs with Fiat/stable coins and with BTC. Considering the mixed trends that cryptocurrencies experienced during 2020 vs BTC, this strengthens the strategy's reliability.
The strategy assumes each order to trade 20% of the available capital and pyramids the entries up to 7 times.
A trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange.
Gregoire Channel StrategyAdd the strategy to the chart, and start by selecting one of four systems:
1) Trend Following
2) Trend Following - Long Only
3) Volatility Breakout
4) Volatility Breakout - Long Only
Each system is better suited to a particular type of market. Find out through back-testing which system and timeframe is best for each market.
Trend Following is good for securities that strongly trend up and down. Examples: Bitcoin, "growth" stocks.
Trend Following (Long Only) is great for stock indexes that are on a 100 year uptrend, or US-based crypto exchanges which don't allow margin trading but you want to catch the big trends (BTC, ETH).
Volatility Breakout is a defensive system designed to capture the meat of the move and protect the gains. This system is better for altcoins and mature markets like forex pairs.
Volatility Breakout (Long Only) is for US-based crypto exchanges that don't allow margin trading. Good for altcoins.
DEFAULT SETTINGS:
START DATE: 1/1/2020
FEE: 0.1% (This is the Binance.us fee per trade, tailor it to your exchange)
TAKE PROFIT GCW: 0
STOP LOSS GCW: 0
LENGTH: 20
SOURCE: HL2
The system doesn't need stop losses or take profit levels as they are built into the system, but you can add them if you want. 1 GCW = half the channel, so the distance from the top of the channel to the middle line. 2 GCW = the height of the channel.
MISC
-Make sure you calculate the fees! They make a huge difference in profitability. For example, test how Coinbase.com's fees of 0.5% compared to Binance.us's fees of 0.1%. It's huge!
-Try different sets of lengths and timeframes. For example, I like using the daily timeframe and low length for stocks and intraday timeframe with long lengths for crypto. See what tests best!
Disclaimer: past performance doesn't equal future results, this isn't financial advice, this is for entertainment purposes only, consult a professional financial advisor.
Ultimate multi-indicator strategy and script- AlphaNHBI created this to be the best multi-indicator strategy, with a matching alert script. This script is ideal for beginners, as well experienced traders who need direct indicators without any of the flashy unnecessary features. This script gets right to the point.
This strategy code was designed for the best mixture of most common indicators, allowing the user to mix and match any indicator he/she chooses. You are able to use sell signals that are either take profits and sell signals, or you are able to use the sell signals of one, or more indicators, OR you can use both (sell signals of indicators AND take profits and stop losses.)
Buying indicators allow you to use the MACD , stochastics, RSI , moving average, fibonacci, t3, Bollinger bands , fractals, and more.
This script works on anything with a chart. It can be applied to crypto, stocks, bonds, forex, etc.
If you would like the script that matches this strategy so that you can do REAL TRADING with LIVE TIME ALERTS, please DM me.
If anyone has suggestions on how to make this better, let me know! This is a growing script that I am building to be universally solid through different markets and through different market conditions!
The details of this backtest are the following:
Initial Capital: 5000
Order Size: 25%
Pyramiding: 10 (although, I don't usually use pyramiding myself, and you don't need to and you will still be largely profitable, by pyramiding definitely helps with smoothing results.)
Commission: 0.1% to match Binance fees
[3Captain] Above Average (AA+)In a market that moves constantly every day, we think about how to easily get bigger profits.
3Captain's new strategy Above Average (AA+). It is the heart of the Captain sailing the sea named Mayor.
The new strategy indicator Above Average (AA+) is implemented in the form of a strategy tester, and alerts can be set.
This strategy is based on the volatility breakthrough strategy, and it is not a logic to set the lowest point or the inflection point.
You don't try to catch an inflection point at a lower price, but rather you can see an increase and make a profit on further ups.
Depending on the event and time frame, the backtest result may be different.
The results of the backtest do not guarantee the future, so please be careful when investing your personal valuable assets.
We have prepared 4 betting methods. High odds, flats, pyramids, and inverse pyramids are each content.
You can try backtesting yourself and set the betting method you like.
Each of the black circles is an entry entry. When a signal occurs, buy, realize profit in the blue circle, and stop loss in the red circle.
This script is an invite-only script.
Please refer to the signature message below to apply for use.
매일 변화무쌍하게 움직이는 시장에서 우리는 어떻게 더 큰 수익을 손쉽게 얻을 수 있을지 고민합니다.
3Captain의 신규전략 Above Average (AA+). 시장이라는 이름의 바다를 항해하는 Captain의 마음입니다.
신규 전략지표 Above Average (AA+)은 전략테스터의 형태로 구현되어 있으며, 얼러트를 설정할 수 있습니다.
본 전략은 변동성 돌파전략을 기반으로 하며, 최저점 혹은 변곡점을 잡는 로직이 아님을 미리 안내 드립니다.
낮은가격에서 변곡점을 잡으려고 하지 않고 오히려 상승을 확인하고 추가상승에 대해 수익을 낼 수 있습니다.
종목과 타임프레임에 따라 백테스트 결과가 상이할 수 있습니다.
백테스트의 결과가 미래를 보장하지는 않으므로 개인의 소중한 자산을 투자하시는데에는 유의하시기 바랍니다.
4가지 배팅방법을 준비했습니다. 높은승률, 플랫, 피라미딩, 역피라미딩이 각각의 내용입니다.
여러분께서 직접 백테스팅을 해보시면서 마음에 드는 배팅방법으로 설정하시면 되겠습니다.
검은색 circle은 각각이 진입 엔트리 입니다. 신호 발생시 매수, 파란색 circle에서 수익실현, 빨간색 circle에서 손절하면 되겠습니다.
본 스크립트는 인바이트 온리 스크립트입니다.
사용신청은 아래 서명메세지를 참고해 주시기 바랍니다.
This script is an invite-only script.
Please refer to the signature message below to apply for use.
Bitcoin (BTC) Scalp / Short-term Short IndicatorThe purpose of this scalping Indicator is to help identifying Sell signals for short term trades on Bitcoin (Spot, Features, etc.) .
This script is working with more indicators and everything is balanced by hard work on (back)testing.
Result for users is a simple signal to SELL.
You can use it as easy indicator in your graph or create alerts.
I have the best results on 1min graph, with leverage and stop-loss feature.
This is my own version of scalping Sell Script / Indicator, which is a combination of few indicators, for example RSI , BB and price levels (actual and average) and works on standard candles.
SELL signal paints above the candle and you can set your target / trailing / stop-loss in the settings and check how it works in Strategy Tester.
Settings of this Indicator:
Take Profit
Stop Loss
Trailing Stop Loss
Trailing Stop Loss Offset
Initial Capital
Base Currency
Order size
Pyramiding
Commissions
Slippage
Average price lines (colors and visibility)
Plot background
These signals can be often observed at the beginning of a strong move, but there is a significant probability that these price levels will be revisited at a later point in time again.
Therefore these are interesting levels to place limit orders.
A Sell signal is defined as the last up candle before a sequence of down candles.
In my trading settings I have more but small positions, one safety limit order (for price averaging = better entry - easier close in profit) and stop-loss.
Sometimes trailing-profit feature have very nice profits.
Settings depends on your own money-management and free capital.
Don't ignore UP / DOWN trend. For UP trend I have an Indicator too (check my profile).
In addition to the upper/lower limits of each line, also average value is marked as this is an interesting area for price interaction and better view.
PM me to obtain access, more informations or support.
NOTICE: By requesting access to this script you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script.
Cyatophilum Scalper [BACKTEST]This indicator comes with a backtest and alert version. This is the backtest version. Its purpose is to create low timeframe and scalping strategies, by choosing from a list of built-in entry points which are described in detail below, and by configuring a risk management system to your liking.
Before diving into the entry points, I will explain the strategy and risk management settings.
These 3 settings allow to choose your strategy direction, and main behavior.
- Go Long ↗: activate or deactivate long entry points.
- Go Short ↘: activate or deactivate short entry points.
- Reversal strategy ↗↘↗↘: Activate this option will allow trades to reverse position from an opposite entry point. Keep it deactivated and trades will either wait a TakeProfit(TP) or StopLoss(SL) to be closed. When neither SL nor TP or set, this option is automatically activated.
StopLoss settings:
Both Long and Short SL can be activated and configured.
The base % price is the starting point of the stoploss, in a percentage of current price.
Trailing stop, when activated, works with 2 settings:
- % Price to Trigger: a percentage of current price the price should move in a bar to trigger a trailing movement.
- % Price Movement: the stoploss variation in a percentage of current price that moves on each bar.
TakeProfit settings:
Both Long and Short TP can be activated and configured.
The base % price is the value of the TP, in a percentage of current price.
Trailing Profit Deviation %: Percent deviation for the trailing take profit.
DCA:
DCA stands for Dollar Cost Average. The idea is to open additional orders from the base order so as to improve risk management.
These additional orders are also called Safety Orders. The indicator can handle up to 9 safety orders.
The strategy will exit either from a take profit based on percentage from base order or from a total volume percentage (Configurable in the parameters).
The steps spacing (space between each step) and safety orders volume (order size) can both scale by adding a scale multiplier.
By choosing from the base strategy dropdown menu, the indicator will generate entry points.
1. BUY SELL:
-> Low timeframes spot trading, with simple buy and sell orders.
How it works:
The indicator used is a combination of QQE (Atr based trend following indicator) and RMA 100 trendline.
I think the QQE does a great job in low timeframes because it is not impacted by the noise.
The RMA which is the moving average used in the RSI, will help giving confirmation to the entry points.
How to use:
It is meant to be used as a reversal strategy, but you can add a TP or SL if you want.
When comparing to Buy & Hold, make sure to deactivate the "Short results in the backtest" setting.
2. TREND SCALPING
-> A strategy for low timeframes trading.
How it works:
The strategy creates high volatility entries filtered by a duo convergence of adaptive trendlines (Adaptive HULL MA using the chart's resolution, Adaptive Tilson T3 using 1H resolution) and a higher timeframe (1H) RSI filter (long threshold: 70, short threshold: 40, RSI length: 10).
How to use:
Must be used on charts with a resolution smaller than 1H. Recommended: from 1m to 30m.
Must NOT be used as reversal strategy. Use it with a take profit and stop loss, and DCA if you can.
Sample risk management settings:
3. Support/Resistance BREAKOUTS
-> Trade low timeframes pivot points breakouts.
How it works:
The indicator calculates the 100 previous bars swing high and low. Any break above high or below low will trigger an entry point.
The entry is however filtered by an Adaptive Tilson T3 Trendline, an ADX 30 minimum threshold and a minimum average volume threshold.
How to use:
I recommend to click "Reversal" Strategy and set a Takeprofit target.
Find the best timeframe between 1m and 30m using the backtest version.
Example here with BTCUSDTPERP on 15m:
4. AGGRESSIVE SCALPING
-> Lots of trades in low timeframes.
How it works:
Created using Cyato AI, Higher/Lower Highs and Lows and 2 HULLMA crosses as entries, and 2 Adaptive Tilson T3 as trendfilter, a 25 ADX threshold filter and a volume filter.
How to use:
Recommended Risk Management settings: Takeprofit, Stoploss and DCA (Safety orders).
Find which timeframe work the best from 30 min and below. Should not be used above 30 min since this is the resolution for the MTF Tilson.
How to create Strategy Alerts:
Write your alert messages for EXIT, LONG and SHORT orders in the settings (Backtest section).
Then click add alert, and in the alert message, write the following:
{{strategy.order.alert_message}}
BACKTEST PARAMETERS
- Inital capital: 10 000$
- Base order size: 0.1 contract (0.1 btc)
- Safety order size: 0.1 contract (0.1 btc)
- Commission: 0.1%
- Slippage: 100 ticks
Oldest trade: 2020-08-31
Backtest Period: From 2020-08-31 to 2020-11-12
Configuration used: see the live chart configuration panel at the top.
To gain access to this paid indicator, please use the link below.
Bitcoin (BTC) Scalp / Short-term Long IndicatorThe purpose of this scalping Indicator is to help identifying Buy signals for short term trades on Bitcoin (Spot, Features, etc.) .
This script is working with more indicators and everything is balanced by hard work on (back)testing.
Result for users is a simple signal to BUY .
You can use it as easy indicator in your graph or create alerts.
I have the best results on 1min graph, with leverage and stop-loss feature.
This is my own version of scalping Buy Script / Indicator, which is a combination of few indicators, for example RSI, BB and price levels (actual and average) and works on standard candles .
LONG signal paints below the candle and you can set your target / trailing / stop-loss in the settings and check how it works in Strategy Tester .
Settings of this Indicator:
Take Profit
Stop Loss
Trailing Stop Loss
Trailing Stop Loss Offset
Initial Capital
Base Currency
Order size
Pyramiding
Commissions
Slippage
Average price lines (colors and visibility)
Plot background
These signals can be often observed at the beginning of a strong move, but there is a significant probability that these price levels will be revisited at a later point in time again.
Therefore these are interesting levels to place limit orders.
A Buy signal is defined as the last down candle before a sequence of up candles.
In my trading settings I have more but small positions, one safety limit order (for price averaging = better entry - easier close in profit) and stop-loss.
Sometimes trailing-profit feature have very nice profits.
Settings depends on your own money-management and free capital.
In addition to the upper/lower limits of each line, also average value is marked as this is an interesting area for price interaction and better view.
PM me to obtain access, more informations or support.
NOTICE: By requesting access to this script you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script.
Pivot STRTGY_V1This Strategy operates on a Daily Time Frame and decisions are made based on monthly Pivot Points.
Choosing different time frames and pivot periods influences trading decisions and is not recommended
The script contains the following calculations:
-Pivot Points,
-Short and long term moving averages (sma, ema, getting),
-Bollinger bands,
-Trend following
The strategy aims to keep the asset profitable for as long as possible by predicting the turning points of the price.
Therefore, it is not suitable for day-trade.
Average holding period of assets is 15-20 days.
The script makes decisions to buy or sell when the price is above or below the determined averages and pivot points.
In this way, it follows the trend and aims for maximum profit.
It continuously makes calculations for the distortion conditions of the trend and generates orders to exit the position when the necessary conditions are met to stop the loss.
MTF - Box Trading StrategyMultiTime Frame - Box Trading Strategies (MTF-BT))
How does it work ? The code uses dynamic levels and crossovers on higher time frames to identify trade calls.
Model 1 (Default) Uses a low risk model and Model 2 (Optional) Uses an aggressive model
How to Deploy / Use
As part of the Indicator there are a few choices the user can opt for
Box Resolution - The resolution of the higher time frame for analysis , typically set at 90 , can be customized by the users.
Use Long Strategy 1 - This would add long trades based on Model1 Algorithm for the users
Use Short Strategy 1 - This would add short trades based on Model1 Algorithm for the users
Use Long Strategy 2 - This would add long trades based on Model2 Algorithm for the users
Use Short Strategy 2 - This would add short trades based on Model2 Algorithm for the users
Check Range Val Validate the width of the channel on higher timeframe and trade only when the channel is wider than the value provided ,
The value of 0.14 is determined using series of back test across various assets
Use Stop Loss : Flag to check if Stop Loss should be done by the strategy
Stop Loss Limit : Stop Loss in Absolute terms
Use Profit Booking : Flag to check if Profit Booking should be done by the strategy
Stop Loss Limit : Profit Target in Absolute terms
Do Intraday Exit :Flag to check if trade should be taken as an Intraday only
Exit Window : Session time during which the trade should be closed , like 15:00 - 15:30 for NSE , 22:30 - 23:00 for MCX etc ,
it should be wide enough to accommodate the resolution the use has on the screen
Visual Checks - The user could manually validate the back test results on various assets they would like to use this strategy on before putting it live.
Usage/Markets : Index Trading / Equities and also well with Commodities and Currencies
Time Frame : works well between 3 and 30 , keep the Box resolution to at least 45 for 3/5 mins TF and you could move upto 180 (3 hrs ) for a 30 mins TF.
Strategy Settings Used/Assumed : All of this values are provided in the Properties Tab of the Indicator Settings
and the users can customize it to suit the broker or the product they are charting it against
Initial Capital : 100 000
Order Size : 10 Quantities for Equities , you may change it to 1 lot for Future contracts based on capital deployed
Commission : is set at 0.05%
Slippage : 20 ticks
Recalculate Option : After the Order is filled is selected by default
Disclaimer : There could be scenarios when the breakout/breakdown candle is rejected , especially when it is long one
so it is always recommended to have a confirmation candle that open-closes above the breakout candle / open-closes below the breakdown candle
If you like it and find it useful or if you find a defect or bug , Please let us know in the comments .. that would encouraging !! for us to develop it further
Thank you and have a beautiful and Profitable trading session !
How to get access
Please click on the link / email in the signature or send me a private message to get access
Feedback
Please click on the link/email in the signature or send me a private message for suggestions/feedbacks
[astropark] DMI/ADX strategy [strategy]Dear Followers,
today I'm happy to share with you my DMI / ADX Strategy .
It provides directional trend information, so if a bullish or a bearish trend is going to start. Statistically it works better on lower timeframes (from 5 minutes to 1 hour).
It is both a Swing and Scalping Strategy indicator , based on a simple trend following theory , good for trading FOREX, Indexes, Stocks, Commodities and Cryptocurrencies.
To help in Taking Profits, the strategy integrates 2 special other than bull/bear signals:
Overbought and Oversold RSI Signals , which appear both as darker background (the darker the color, the more the price is in overbought/oversold) and green "ob"-"tp" / red "os"-"tp" labels (they optionally pop up only on a configurable stronger overbought/oversold condition) (you can enable/disable it optionally)
Peak Profit Tracker , which resets every time a new trade starts and keeps track of price fluctuation during the trade: the message is don't be too greedy and take profits or lock them with a stoploss in profit (you can enable/disable it optionally)
You can edit many options in order to
have more/less bull/bear signals
enable/disable showing bull/bear signals
enable/disable showing RSI TP signals (you can edit RSI length, overbought (OB) and oversold (OS) levels)
enable/disable showing peak profits on each trade
The user who wants to use this strategy, especially via an automated bot, must always set a stoploss (example 150$ from entry on bitcoin ) or use a proper risk management strategy .
This is not the "Holy Grail", so use it with caution. It's highly suggested to use a proper money management .
This script will let you backtest performance of the indicator based on bear/bull signals.
You can find the alarms version by searching for my DMI / ADX Strategy and choosing the "alarms" named.
Here there are some examples how this DMI / ADX strategy works on many markets:
LTC/USDT 15m
BTC/USD 15m
BNB/BTC 15m
ETH/USD 15m
GOLD (XAU/USD) 15m
GOLD (XAU/USD) 1h
FB 15m
AAPL 15m
TSLA 1h
BANKNIFTY Index 5m
NIFTY 50 Index 5m
This is a premium indicator , so send me a private message in order to get access to this script .
Aditya Banknifty-2 IndicatorThis indicator is designed for Banknifty which is traded on NSE(India). It works best in 1-M and 5-M time-frame. You can always experiment with any other time-frame with various combinations of settings.
Green Line- Buy Trigger Line
Red Line- Sell Trigger Line
Period: No. bars for look-back period.
Trade Trigger Type:
1. ATR Based – Trade will be initiated based on ATR values.
For 1M time-frame: Trigger ATR Bars=7
ATR Multiplier = 3.1
For 5M time-frame: Trigger ATR Bars=7
ATR Multiplier = 0.5
2. Fixed - – Trade will be initiated based on particular fixed value.
3. % of Close - Trade will be initiated based on % of Close of script.
Take Partial Profit: Whether to book partial or not.
Partial Profit Points: It always better to book partial profit after getting into the trade. We can book 1 quantity after our partial profit target is hit by making Order Size=2 and let the remaining quantity in the trade until the reversal of trend.
Disclaimer: This script/strategy is for educational purpose and individual use only. The author of this script/strategy will not accept any liability for loss or damage as a result of reliance on the information contained in the charts. Please be fully informed regarding the risks and costs associated with trading the financial markets.
This is a premium indicator so send me a private message for access.
Use the link below to obtain access to this indicator.
Cross impro test by Canundo Crossover Crossunder Tick valuesThis is a script where I tried to check the following things:
Even thought the tick of an asset is, for example 0.5, there are calculated prices, like SMA's that have even more decimals. Leading to crosses happening that for example happen at the same price. Consequently triggering totally useless in side markets. What happens if SMA values are restricted to the tick resolution? (Option works on it's own or with a combination of the others.)
What happens if I set my own tick value, like 0.8 instead of 0.5, what will be the effect for calculated values that are used for crossings? Will tick sizes improve the success rate? (This option will work only when the first option is active.)
Can success rate, especially for sideway markets be improved when adding a spread between MA's, so that it triggers less in sideway markets? (Option works on it's own or with a combination of the others.)
First of all, I had a hard time to round prices properly when it needs to be dynamic and working for different assets with different amounts of decimal values in the tick. The solution is that abs(floor(syminfo.mintick)) will give you the amount of decimals a tick has. It works for all ticks that are at least lower than 10. I'm not sure how huge ticks are out there. I did not implement this solution at the end since I found another way to test it.
Findings:
The first option, when activated, takes out half the trades and raises the percent profitability by 8% so there is some effect. However, all of the tested options have less advantage than I hoped for but are nevertheless something worthy for sideway markets. The first option just forces the MA's from the example to use the tick resolution.
See these two images. One when the first option is off, the second when it's active.
The lines are the MA's with adjusted values, the crosses are the places of the MA's when left as is.
Here a screenshot of the third option set to the value 2 on the 1 minute XBTUSD chart.
The advantage is that less trades trigger that have a low change in price and so less trading fees will happen.
The disadvantage is that all options can implement some delay for a crossing since the crossing will trigger once a slightly bigger move into the direction was taken.
This test environment was not meant to be profitable but to test the effects.
Maybe someone finds it interesting or wanted to test the same, so here you can save some work.
ELLIPSE: Bidirectional Swing Trading Strategy (Strategy Version)The eternal question that has occupied humanity since its early existence is what is the meaning of life and why am I here? On a daily basis this quest for meaning is distilled into a somewhat simpler question: What is the reason for getting up every morning?
For many of us, these thoughts arise even more as autumn arrives and it gets dark, bleak and cold outside. I guess it is easier to forget about the meaning of your life, while swimming on a sandy beach, enjoying a cocktail. Than you are living you life and you don’t need to rationalize it. Everything makes perfect sense!
In winter however, you need to get more “creative”. I, for example, would always try to change my perspective of things by doing something that makes my heart beat faster, like drinking a bottle of Heineken on a Friday evening or having endless conversations with my mates about stupid things, or kicking a ball against BALLONTHEROOF 7 on a Saturday morning. During the week, I would take out my frustrations on the fitness equipment at the local gym.
But what if all of this is canceled by CORONA? All that’s left is to work for the boss and run your 10km lap twice a week. The question is, what do you do now, with this huge amount of ”free” time than any old person would give anything for. When you are young time is never ending, when you are older it is never enough. Time has reached a different dimension in these days.
However, you can still do 2 things. You can slowly let the walls come to you and give up or you can actually do something useful with your time and find something that you are good at.
For us this choice was easy. After the success of our positioning trading strategy the MATRIX, at the time of the corona lockdown, we started making a swing trading strategy for the 4H timeframe, called ELLIPSE. We have included all feedback and any improvements we received about the positioning strategy and integrated it into the 4H script.
The main requirements of the script that we had set ourselves were:
Bidirectional
Low max drawdown
High profit factor
Works on all main crypto coins
By fully focusing ourselves on the script over the past few months, I can’t help but (unhumbly) say that we have not only succeeded in our mission, but that we have absolutely surpassed ourselves!
The only bright spot in this heavy corona time is, if a drug becomes available, there is extra money in the bank!
***The script is invite-only, message us to get script access***
-------------------------------------------------------------------------------------------------
User Guidelines:
The trading strategy was designed and optimized for trading cryptocurrencies only; furthermore it works best on established cryptocurrencies that have a clear historical trend such as:
BTCUSD
ETHUSD
LTCUSD
XRPUSD
ADAUSD
The trading strategy is based on swing trading methodology. The script must therefore be used on 4h candles only .
Use USD trading pairs only (e.g. use ETHUSD instead of the ETHBTC) since the individual trend is captured more effectively and therefore gives better results.
The trading strategy is bidirectional , both long and short entries are generated.
-------------------------------------------------------------------------------------------------
Indicators used in this strategy:
Ichimoku Cloud ; acts as the leading indicator.
Volume ; without strong volume , a market move is not valid.
MACD and Vortex ; both being used as confirmation indicators.
Choppiness index ; avoids trading in choppy markets.
Simple and Exponential Moving Averages ; prevents trading against the trend.
The trading strategy is easy to use, bidirectional, trend based and without repainting, meaning once a signal has been made it is permanent and that no future data is used in the decision making. It detects the trend and filters out market noise based on more than 10 technical indicators. ONLY when all indicators align with each other the algorithm prints a LONG or SHORT signal. The trading strategy provides high probability trading signals and minimizes risk! This script aims to capture the profit from short to medium trending moves and by doing so filters out non-substantial trends and avoids the associated risks with these trades.
-------------------------------------------------------------------------------------------------
Features:
NO Repaint once candle is closed.
Stop loss feature ; set your own stop loss to manage your risks.
Customizable Display for the Ichimoku cloud indicator display.
Bidirectional ; both long and short trading positions can be enabled.
Full backtest feature ; Easily generate your own backtest results for each asset (Strategy Version Script).
Alerts ; Get notified via email / pop-up / sms / app once a signal is given! (Alert Version Script).
-------------------------------------------------------------------------------------------------
Backtest results
Below are the back test results. Only well established cryptocurrencies are displayed with a clear historical trend:
Long and short trading positions,
Signal to signal trading (no multiple orders),
Initial Capital: 10 000 USD,
Order size: 10% of equity per trade,
commission fee 0.1%, period: start of chart,
Exchange-----Asset------Timeframe---Percent Profitable----Profit Factor---Total Trades----Max Drawdown----------Net Profit------
Bínance------BTCUSDT------4H-----------------54.4---------------5.32-----------------57----------------1.58%------------40.34%-(4034 USD)
Bínance------ETHUSD-------4H-----------------50.9---------------5.01---------------- 57----------------2.96%------------54.93%-(5493 USD)
Bínance------LTCUSD--------4H-----------------61.0---------------5.08-----------------59----------------2.09%------------57.06%-(5706 USD)
Bínance------XRPUSD-------4H-----------------43.13--------------3.52-----------------51----------------2.42%------------43.13%-(4313 USD)
Bínance------ADAUSD-------4H-----------------57.5---------------3.36-----------------47----------------3.46%------------40.82%-(4082 USD)
-------------------------------------------------------------------------------------------------
Reminder: Use this trading strategy at your own risk and trade responsibly. We are not responsible for any financial loss using this strategy.
***The script is invite-only, message us to get script access***
hc,bitmexi have tweaked the algorithm to use the difference in MACD to get the correct direction of entries rather than using direction of candles which are not always indicative of trend direction. These changes increase net profit, profitable trades, while reducing drawdown.
What is going on here? This strategy is pretty simple. We start by measuring a very long chunk of volume history on BitMEX:XBTUSD 1 hour chart to find out if the current volume is high or low. At 1.0 the indicator is showing we are at 100% of normal historical volume . The blue line is a measure of recent volume! This indicator gets interested when the volume drops below 90% of the regular volume (0.9), and then comes back up over 90%. There's usually a pump of increased price activity during this time. When the 0.9 line is crossed by the blue line, the indicator surveys the last 2 bars of price action to figure out which way we're going, long or short. Green is long. Red is short. To exit the trade we use a 7 period fast ema of the volume crossing under an 11 ema slower period which shows declining interest in the market signifying an end to the pump or dump. The profit factor is quite high with 5x leverage, but historically we see 50% drawdown -- very risky. 1x leverage looks nice and tight with very low drawdown. Play with the inputs to see what matches your own risk profile. I would not recommend taking this into much lower timeframes as trading fees are not included in the profit calculations. Please don't get burned trading on stupid high leverage. This indicator is probably not going to work well on alts, as Bitcoin FOMO build up and behavior is different. This whole indicator is tuned to Bitcoin , and attempts to trade only the meatiest part of the market moves.
Engulfing strategy with DMI confirmationThe strategy contains Bearish and Bullish Engulfing trend reverse alerts with entry and closure notifications. Entries are enforced by Directional Movement Index (DMI) indicator levels combination. The strategy can be applied to spot, futures and marginal trading exchanges. It is suitable for both long and short positions and works accurately with BTC, USDT, ETH and BNB quote currencies. Best to use with 1H timeframe charts
Strategy elements can be configured at your own desire with user interface settings, no programming skills required:
1. Choose signals type: Long, Short or Both
2. Choose trend detection pattern rule:
SMA50 - provides a higher number of positions
SMA50 + SMA200 provides a higher accuracy
3. Change risk management settings to make the most accurate and efficient configuration. You can set up unique stop loss, take profit and trailing offset for different assets
4. Configure strategy periods
DMI and ADX lengths
ADX Smoothing
Key level
EMA and SMA lengths
5. Configure backtest dates
6. Show or hide RSI support and resistance bands
Engulfing strategy provides information for traders to enter the market in anticipation of a possible reversal in trend. Engulfing candles tend to signal a reversal of the current trend in the market. This specific pattern involves two candles with the latter candle "engulfing" the entire body of the candle before it. The engulfing candle can be bullish or bearish depending on where it forms in relation to the existing trend. The script calculates and compares values of the price action candles to define is there an engulfing and what type it is: bullish or bearish
If there is a bullish engulfing the indicator fills price action candle with yellow color
If there is a bearish engulfing the indicator fills price action candle with purple color
Advantages of the script:
1. The script detects presence of both types of engulfing: Bullish and Bearish
2. Weak engulfment signals and market noises are filtered by RSI bands and DMI confirmations. This allows to receive only strong and confirmed engulfment signals
3. This script has configurable risk management settings (order size, commission, take profit, stop loss and trailing). This provides you opportunity of direct broker connection and allows to conduct backtests before applying the strategy to real account. You also can set up strategy actions alerts
At the chart you can see the historical price action of ADAUSDT at Binance exchange from the January 1st 2019 till current date. The strategy is set up to receive only long signals because it is a spot market. Moments when the strategy triggered to enter a position are shown as L label while position entries are shown as "Long" messages. Moments when a certain position should be closed are shown as "Exitlong" messages
The strategy demonstrate high backtest results:
Mathematical expectation of risk management settings is positive = 1.34%
Percent profitable = 93.33%
Profit factor = 3.253
Quantity of entries = 75
Net profit = 15.22%
How to use?
Long signals:
1. Apply indicator to a trading pair your are interested in.
2. Click Settings button and select Alert Positions Type Long
3. Once bullish engulfing and confirmation conditions are met price action candle will be colored yellow and script strategy will enter a position.
4. Check Strategy Tester to set up optimal Risk management settings: stop loss, trailing profit activation point, trailing offset
5. Set up the strategy alert to be notified when a position should be opened or closed
Short signals:
1. Apply indicator to a trading pair your are interested in.
2. Click Settings button and select Alert Positions Type Short
3. Once bearish engulfing and confirmation conditions are met price action candle will be colored purple and script strategy will enter a position.
4. Check Strategy Tester to set up optimal Risk management settings: stop loss, trailing profit activation point, trailing offset
5. Set up the strategy alert to be notified when a position should be opened or closed
Best regards,
SkyRock Signals team
If you want to receive access to the strategy please contact us in personal message!
Bollinger Bands Strategy with Intraday Intensity IndexFor Educational Purposes. Results can differ on different markets and can fail at any time. Profit is not guaranteed.
This only works in a few markets and in certain situations. Changing the settings can give better or worse results for other markets.
This is a mean reversion strategy based on Bollinger Bands and the Intraday Intensity Index (a volume indicator). John Bollinger mentions that the Intraday Intensity Index can be used with Bollinger Bands and is one of the top indicators he recommends in his book. It seems he prefers it over the other volume indicators that he compares to for some reason. III looks a lot like Chaikin Money Flow but without the denominator in that calculation. On the default settings of the BBs, the III helps give off better entry signals. John Bollinger however is vague on how to use the BBs and it's hard to say if one should enter when it is below/above the bands or when the price crosses them. I find that with many indicators and strategies it's best to wait for a confirmation of some sort, in this case by waiting for some crossover of a band. Like most mean reversion strategies, the exit is very loose if using BBs alone. Usually the plan to exit is when the price finally reverts back to the mean or in this case the middle band. This can potentially lead to huge drawdowns and/or losses. Mean reversion strategies can have high win/loss ratios but can still end up unprofitable because of the huge losses that can occur. These drawdowns/losses that mean reversion strategies suffer from can potentially eat away at a large chunk of all that was previously made or perhaps up to all of it in the worst cases, can occur weeks or perhaps up to months after being profitable trading such a strategy, and will take a while and several trades to make it all back or keep a profitable track record. It is important to have a stop loss, trailing stop, or some sort of stop plan with these types of strategies. For this one, in addition to exiting the trade when price reverts to the middle band, I included a time-based stop plan that exits with a gain or with a loss to avoid potentially large losses, and to exit after only a few periods after taking the trade if in profit instead of waiting for the price to revert back to the mean.
IFR2The IFR2 strategy is based on the RSI indicator.
If the two period RSI is less than the overbought level (25 is the default, but you can configure it to be lower), a long position is placed at the close of the candle. If you are doing it live, you'd have to enter the market ~ 10 minutes before it closes, check the RSI, and buy if it is lower than your overbought level. This generates a discrepancy in the backtesting, but since it is a very small difference, it can be disregarded. Higher overbought levels generate more signals, but they mostly are unreliable. Lower values generates better yields, but they won't occur very often. This strategy is designed to be used in a daily graph, and I don't recommend using it in intraday periods, since you'll make too little money to compensate for the operational cost.
The strategy exits when the high price of two previous candles is reached. If the exit price is higher than the closing price of when you entered, you'll be at a profit, otherwise you'll be at a loss. The exit price is plotted in the graph and it's colors depends on the current open profit: positive values will be green, negative will be red.
This strategy completely disregards the current trend. Long orders will be placed even if you are at a strong down trend. This may seem odd, but you have to keep in mind that this is a volatility based strategy , not a trend following one.
This setup was designed by Alexandre Wolwacz, a.k.a. Stormer.
Bitcoin - MA Crossover StrategyBefore You Begin:
Please read these warnings carefully before using this script, you will bear all fiscal responsibility for your own trades.
Trading Strategy Warning - Past performance of this strategy may not equal future performance, due to macro-environment changes, etc.
Account Size Warning - Performance based upon default 10% risk per trade, of account size $100,000. Adjust BEFORE you trade to see your own drawdown.
Time Frame - D1 and H4. H4 has a lower profit factor (more fake-outs, and account drawdown), D1 recommended.
Trend Following System - Profitability of this system is dependent on STRONG future trends in Bitcoin (BTCUSD).
Default Settings:
This script was tested on Daily and 4 Hourly charts using the following default settings. Note that 4 Hourly exhibits higher drawdowns and lower profit factor, whilst Daily appears more stable.
Account Size ($): 100,000 (please adjust to simulate your own risk)
Equity Risk (%): 10 (please adjust to simulate your own risk)
Fast Moving Average (Period): 20
Slow Moving Average (Period): 40
Relative Strength Index (Period): 14
Trading Mechanism:
Trend following strategies work well for assets that display the tendency of long-trends. Please do not use this script on financial assets that have a historical tendency for mean reversion. Bitcoin has historically exhibited strong trends, and thus this script is designed to capitalise on that behaviour. It is hoped (but we cannot predict), that Bitcoin will strongly trend in the coming days.
LONG:
Enter Long - When fast moving average (20) crosses ABOVE slow moving average (40)
Exit Long - When fast moving average (20) crosses BELOW slow moving average (40)
SHORT:
Enter Short - When fast moving average (20) crosses BELOW slow moving average (40)
Exit Short - When fast moving average (20) crosses ABOVE slow moving average (40)
Risk Warnings:
Do note that "moving averages" are a lagging indicator, and as such heavy drawdowns could occur when a trade is open. If you are trading this system manually, it is best to avoid emotions and let the system tell you when to enter and exit. Do not panic and exit manually when under heavy drawdown, always follow the system. Do not be emotional. If possible, connect this to your broker for auto-trading. Ensure that your risk per trade (Equity Risk) is SMALL enough that it does not result in a margin-call on your trading account. Equity risk must always be considered relative to your total account size.
Remember: You bear all financial responsibility for your trades, best of luck.
PineScript v4 - Forex Pin-Bar Trading StrategyPineScript v4, forex trading robot based on the commonly used bullish / bearish pin-bar piercing the moving averages strategy.
I coded this robot to stress-test the PineScript v4 language to see how advanced it is, and whether I could port a forex trading strategy from MT4 to TradingView.
In my opinion, PineScript v4 is still not a professional coding language; for example you cannot use IF-statements to modify the contents of global variables; this makes complex robot behaviour difficult to implement. In addition, it is unclear if the programmer can use nested IF-ELSE, or nested FOR within IF.
The sequence of program execution is also unclear, and although complex order entry and exit appears to function properly, I am not completely comfortable with it.
Recommended Chart Settings:
Asset Class: Forex
Time Frame: H1
Long Entry Conditions:
a) Moving Average up trend, fast crosses above slow
b) Presence of a Bullish Pin Bar
c) Pin Bar pierces either Moving Average
d) Moving Averages must be sloping up, angle threshold (optional)
Short Entry Conditions:
a) Moving Average down trend, fast crosses below slow
b) Presence of a Bearish Pin Bar
c) Pin Bar pierces either Moving Average
d) Moving Averages must be sloping down, angle threshold (optional)
Exit Conditions:
a) Stoploss level is hit
b) Takeprofit level is hit
c) Moving Averages cross-back (optional)
Default Robot Settings:
Equity Risk (%): 3 //how much account balance to risk per trade
Stop Loss (x*ATR, Float): 2.1 //stoploss = x * ATR, you can change x
Risk : Reward (1 : x*SL, Float): 3.1 //takeprofit = x * stop_loss_distance, you can change x
Fast MA (Period): 20 //fast moving average period
Slow MA (Period): 50 //slow moving average period
ATR (Period): 14 //average true range period
Use MA Slope (Boolean): true //toggle the requirement of the moving average slope
Bull Slope Angle (Deg): 1 //angle above which, moving average is considered to be sloping up
Bear Slope Angle (Deg): -1 //angle below which, moving average is considered to be sloping down
Exit When MA Re-Cross (Boolean): true //toggle, close trade if moving average crosses back
Cancel Entry After X Bars (Period): 3 //cancel the order after x bars not triggered, you can change x
Backtest Results (2019 to 2020, H1, Default Settings):
EURJPY - 111% profit, 2.631 profit factor, 16.43% drawdown
EURUSD - 103% profit, 2.899 profit factor, 14.95% drawdown
EURAUD - 76.75% profit, 1.8 profit factor, 17.99% drawdown
NZDUSD - 64.62% profit, 1.727 profit factor, 19.14% drawdown
GBPUSD - 58.73% profit, 1.663 profit factor, 15.44% downdown
AUDJPY - 48.71% profit, 1.635 profit factor, 11.81% drawdown
USDCHF - 30.72% profit, 1.36 profit factor, 22.63% drawdown
AUDUSD - 8.54% profit, 1.092 profit factor, 19.86% drawdown
EURGBP - 0.03% profit, 1.0 profit factor, 29.66% drawdown
USDJPY - 1.96% loss, 0.972 profit factor, 28.37% drawdown
USDCAD - 6.36% loss, 0.891 profit factor, 21.14% drawdown
GBPJPY - 28.27% loss, 0.461 profit factor, 39.13% drawdown
To reduce the possibility of curve-fitting, this robot was backtested on 12 popular forex currencies, as shown above. The robot was profitable on 8 out of 12 currencies, breakeven on 1, and made a loss on 3.
The default robot settings could be over-fitting for the EUR, as we can see out-sized performance for the EUR pairs, with the exception of the EURGBP. We can see that GBPJPY made the largest loss, so these two pairs could be related.
Risk Warning:
This is a forex trading strategy that involves high risk of equity loss, and backtest performance will not equal future results. You agree to use this script at your own risk.