Low volatility Buy w/ TP & SL (Coinrule)The compression of volatility usually leads to expansion. When the breakout comes, it can ignite strong trends. One way to catch a coin trading in an accumulation area is to spot three moving averages with values close to each other. The strategy uses a combination of Moving Averages to spot the best time to buy a coin before its breakout.
Buy Condition
The MA200 is greater than the MA100
The MA50 is greater than the MA100
According to backtesting results, the 1-hour time frame is the best to run this strategy.
Sell Condition
Take Profit: the price increases 8% from the entry price
Stop Loss: the price drops 4% from the entry price
The strategy has a profitability of 40-60% (depending on the market conditions). Having a ratio of two between Take profit and Stop Loss helps keeping the strategy profitable in the long term.
Volatility
Wilder's Volatility Trailing Stop Strategy with various MA'sFor 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 strategy is based on Wilder's Volatility System. It is an ATR trailing stop that is used for long term trends. This strategy focuses on the trailing stop alone and goes long and short only when it goes above or below the trailing line. It is similar to Donchian channels except it does not include the certain period channel breakout, only the trailing signal. This is only the trailing stop and an attempt to show how well it works standalone as Wilder described.
In his book, Wilder recommends a multiplier of 2.8-3.1 and an ATR lookback of 7 periods along with a running moving average or otherwise known as Wilder's moving average. The calculation and programming part for the trailing stop varies everywhere. I opted to keep it as simple and accurate as I could think of and interpret from the book. The variations to these types of indicators are numerous unfortunately, but Wilder seems to be the original author of ATR and this ATR-based trailing stop. In his book he says to use the significant closing price or highest/lowest closing price for the calculation part but I also included the option of choosing the highest high and lowest low, and the option to choose various moving averages in case anyone wants to experiment.
Comparing this and Donchian channels, it seems that a 2.5 multiplier is somewhat similar to the middle band of DCs and a 3.0 multiplier is somewhat similar to a double length middle band of DCs. It's hard to say which is the better trailing stop for a long term strategy. It's hard to beat the simplicity of DCs but maybe some might find a need for more inputs in a trailing stop or maybe an ATR based one like Wilder's can work better depending on what setting or strategy it's used in.
Bollinger Bands and RSI mix with DCAThis strategy uses a mix of Bollinger Bands and RSI to enter long positions. It impliments DCA.
Moving Average, T3 and Bollinger StrategyThis strategy uses a SMA much like an the faster EMA in many oscillators and the T3 average of the same period as the intermediate trend. Exits are defined by encounters with the Bollinger Band. The long term trend is defined by T3 moving averages of an even longer period.
TrendMaAlignmentStrategy - Long term tradesThis is another strategy based on moving average alignment and HighLow periods. This is more suitable for long term trend traders and mainly for stocks.
Candle is colored lime if : Lookback Period has at least one bar with moving averages fully aligned OR None of the bars in Lookback periods has negatively aligned moving averages (More than half are positively aligned).
Candle is colored orange if : Lookback Period has at least one bar with moving averages fully aligned in negative way OR none of the bars in lookback has positively aligned moving averages (More than half are negatively aligned).
If either of above conditions are met, candle is colored silver.
Moving average alignment parameters:
Moving Average Type : MA Type for calculating Aligned Moving Average Index
Lookback Period : Lookback period to check highest and lowest Moving Average index.
HighLow parameters:
Short High/Low Period: Short period to check highs and lows
Long High/Low Period: Longer Period to check highs and lows.
If short period high == long period high, which means, instrument has made new high in the short period.
ATR Parameters:
ATR Length: ATR periods
StopMultiplyer: To set stop loss.
ReentryStopMultiplyer: This is used when signal is green buy stop loss on previous trade is hit. In such cases, new order will not be placed until it has certain distance from stop line.
Trade Prameters:
Exit on Signal : To be used with caution. Enabling it will allow us to get out on bad trades early and helps exit trades in long consolidation periods. But, this may also cause early exit in the trend. If instrument is trending nicely, it is better to keep this setting unchecked.
Trade direction : Default is long only. Short trades are not so successful in backtest. Use it with caution.
Backtest years : limit backtesting to certain years.
Part of the logic used from study's below:
Other strategies based on these two studies are below (which are meant for short - medium terms):
Profit Maximizer StrategyFirst I would like to thank to @KivancOzbilgic for developing this indicator.
All the credit goes to him.
I just created a strategy, in order to try to find the perfect parameters, timeframe and currency for it.
I will provide below the same description like he has in the publish of profit maximizer
Profit Maximizer - PMax combines the powerful sides of MOST (Moving Average Trend Changer) and SuperTrend (ATR price detection) in one indicator.
Backtest and optimization results of PMax are far better when compared to its ancestors MOST and SuperTrend. It reduces the number of false signals in sideways and give more reliable trade signals.
PMax is easy to determine the trend and can be used in any type of markets and instruments. It does not repaint.
The first parameter in the PMax indicator set by the three parameters is the period/length of ATR.
The second Parameter is the Multiplier of ATR which would be useful to set the value of distance from the built in Moving Average.
I personally think the most important parameter is the Moving Average Length and type.
PMax will be much sensitive to trend movements if Moving Average Length is smaller. And vice versa, will be less sensitive when it is longer.
As the period increases it will become less sensitive to little trends and price actions.
In this way, your choice of period, will be closely related to which of the sort of trends you are interested in.
We are under the effect of the uptrend in cases where the Moving Average is above PMax;
conversely under the influence of a downward trend, when the Moving Average is below PMax.
Built in Moving Average type defaultly set as EMA but users can choose from 8 different Moving Average types like:
SMA : Simple Moving Average
EMA : Exponential Movin Average
WMA : Weighted Moving Average
TMA : Triangular Moving Average
VAR : Variable Index Dynamic Moving Average aka VIDYA
WWMA : Welles Wilder's Moving Average
ZLEMA : Zero Lag Exponential Moving Average
TSF : True Strength Force
Tip: In sideways VAR would be a good choice
You can use PMax default alarms and Buy Sell signals like:
1-
BUY when Moving Average crosses above PMax
SELL when Moving Average crosses under PMax
2-
BUY when prices jumps over PMax line.
SELL when prices go under PMax line.
Breakout Trend Trading Strategy - V2This is an alternate version of Breakout Trend Trading Strategy - V1
Only difference is, this strategy places stop orders based on calculated targets whereas V1 waits for price to close target levels and then places market orders. Hence, you will receive the target prices before trade executes in strategy.
Parameters are same as that of Breakout Trend Trading Strategy - V1
There is one additional parameter on Trade Type - which permits user to allow only breakout, pullback or reverse trading or combination of all.
Backtesting parameters remain same :
Capital and position sizing : Capital and position sizing parameters are set to test investing 2000 wholly on certain stock without compounding.
Initial Capital : 2000
Order Size : 100% of equity
Pyramiding : 1
Test cases remain same :
Positive : AAPL , AMZN , TSLA , RUN, VRT , ASX:APT
Negative Test Cases: WPL , WHC , NHC , WOW, COL, NAB (All ASX stocks)
Special test case: WDI
Negative test cases still show losses in back-testing. I have attempted including many conditions to eliminate or reduce the loss. But, further efforts has resulted in reduction in profits in positive cases as well. Still experimenting. Will update whenever I find improvements. Comments and suggestions welcome :)
Breakout Trend Trading Strategy - V1Strategy in nutshell:
This strategy is made to be used in daily time-frames. Works better on trending instruments where volume is available. Hence, this is more suitable for trending shares rather than currencies, commodities and indexes where volume data is either not present or not reliable.
Breakout signifies the continuation of trend. Hence, trade in the direction of breakouts. Breakouts are calculated based on high volume and price movement in a day. This will be combined with few other conditions to generate buy and sell signals along with stop and compound targets. Supertrend is used for trend bias. Our buy and sell targets do not directly depend on the bias. But, entry criteria in opposite trend is made much difficult than that of trend direction. Further explanation of method and input parameters are explained below.
Backtesting parameters :
Capital and position sizing : Capital and position sizing parameters are set to test investing 2000 wholly on certain stock without compounding.
Initial Capital : 2000
Order Size : 100% of equity
Pyramiding : 1
ExitOnSignal : If unchecked exit is triggered solely on trailing stop
Trade Direction : Long, Short or All. Short condition is riskier than long conditions and often results in losses as per my observation. On most of the stocks trending up, strategy will not generate any short signals. This is achieved by comparing yearly high lows to previous two years to decide whether to allow short or long entries.
allowImmediateCompound : Applicable only if compounding/pyramiding is enabled in trade. If checked allows to place compounding orders immediately. If unchecked, it waits for stopline to cross order price before placing next compound.
Display Mode :
Targets : Whenever breakout happens, show marker for upTarget and downTarget
TargetChannel : Show up target and downtarget as a channel
Target With Stop : Along with targets, show also stop levels for breakouts
Up Channel : Channel created from UpTarget and respective stops
Down Channel : Channel created from DownTarget and respective stops
ShowTrailingStop : Shows trailing stop and compound lines when there is a trading position.
ShowTargetLevels : Shows Buy Sell target levels along with stop and compound lines. Trades are done as market orders. Hence, target levels are displayed after strategy makes the trade. Since only one order allowed per side without compounding, target, stop and compound levels are shown sometimes even without trade being made. These can be considered as entry levels if there is no existing position.
ShowPreviousLevels : Shows previous buy/sell target levels. When enabled, layout can look messy.
StopMultiplyer: To Set trailing stop loss.
BacktestYears: Number of years to include in backtest
So far my test cases are:
Positive : AAPL, AMZN, TSLA, RUN, VRT, ASX:APT
Negative Test Cases: WPL, WHC, NHC, WOW, COL, NAB (All ASX stocks)
Special test case: WDI
Negative test cases still show losses in backtesting. I have attempted including many conditions to eliminate or reduce the loss. But, further efforts has resulted in reduction in profits in positive cases as well. Still experimenting. Will update whenever I find improvements. Comments and suggestions welcome :)
Inferential Statistics And Quick Metrics For Strategy Analysis.Part of this script is used to calculate inferential statistics and metrics not available through the built in variables in the strategy tester.
A label will be created on the last bar displaying important strategy results, so you can test and analyze strategies quicker.
The built in strategy itself is just an example. You can copy and paste the metrics into any existing version 4 strategy and instantly use it**
**Just be sure all the variable names are unique in your target script.
I am looking for critique and would appreciate input on the statistical functions. I am aware that some of these functions are based on the assumption that the data is normally distributed. It's not meant to be perfect, but it is meant to be helpful. So if you think I can add or improve something to make it more helpful, let me know.
AlignedMA and Cumulative HighLow Strategy V2Based on earlier strategy published - AlignedMA and Cumulative HighLow Strategy. Adjustments are done in entry and exit criteria to make it work for shares.
Modified to preserve existing entry criteria + additional MA shift condition. Exit criteria is set based on supertrend and trailing stops.
Most of the parameters are already optimized. You only need to alter SupertrendMult for individual shares based on individual share volatility. Usually works within 2-4.
There might be bit of repainting. I am unable to understand if there is any. Any suggestions on further improvements welcome :)
Note to moderators : I have used 1000 as initial capital with 100% on each trade. As strategy does not compound - I believe this is reasonable. I have kept this setting as this makes it easier to compare with buy and hold return.
Profit Maximizer PMax Strategy - Long-ShortI developed a different strategy perspective for the Profit Maximizer PMax indicator prepared by Kıvanç Özbilgiç.
When you come to the settings section;
- You will see 2 options as Straregy Type. You can test the price and pmax intersections as different strategies.
- I added the Long-Short option for spot traders to calculate the profitability rate correctly. Spot traders should not choose this option.
Here you can set alarms on the original indicator with the parameters you find successful.
Türkçe:
Kıvanç Özbilgiç tarafından hazırlanan Profit Maximizer PMax indikatör için farklı bir strateji bakış açısı geliştirdim.
Ayarlar bölümüne geldiğinizde;
- Straregy Type olarak 2 seçenek göreceksiniz. Fiyat kesişimi ve pmax kesişimlerini, farklı stratejiler olarak test edebilirsiniz.
- Spot işlem yapanlar için karlılık oranını doğru hesaplayabilmeleri için Long-Short seçeneği ekledim. Spot işlem yapanların bu seçeneği seçmemeleri gerekmektedir.
Burada başarılı bulduğunuz parametreler ile orijinal indikatör üzerinde alarmlar kurabilirsiniz.
Higher High / Lower Low StrategyThis is a very simple trend following strategy for Day Trading. The premise is to follow the Moving Average for the trend direction and buy/sell the dips and blips in the trend.
1. In an uptrend, when the candle action offers a "dip", or a lower high, the strategy will then buy on the close of the candle that breaks the high of the previous candle.
2. In a downtrend, when the candle action offers a"blip", or a higher low, the strategy will then sell on the close of the candle that breaks the low of the previous candle.
3. The strategy will go Long only or Short only, not both. It must be manually reversed in the settings when a new trend is established.
4. The start month and year allow you to backtest from then until now. It's not one month at a time.
5. The strategy uses a reversal of the Stochastic %K variable as the exist. The setting for Period K controls the exit for backtesting purposes.
6. The strategy uses a moving average to determine the trend. The setting for the Period MA controls the SMA.
7. The strategy has the option of filtering the number of trades based on the direction of the MACD and/or the Signal line. This can either reduce or increase the probability, and is highly dependent on the price action of the instrument.
WARNING: I am not a licensed financial advisor. This script is intended for entertainment purposes only. I highly recommend you manually enter and exit positions per your own Trading Rules, and do not blindly follow any software or recommendation. Use of this script is elective and at your own discretion, and risk.
If you like this script, please give it a Thumb's Up, and leave a comment. If you would like any custom scripts developed, contact me to discuss it. All of my work here is open and available, free of charge. It can be copied and edited to suit your needs.
PMax Explorer STRATEGY & SCREENERProfit Maximizer - PMax Explorer STRATEGY & SCREENER screens the BUY and SELL signals (trend reversals) for 20 user defined different tickers in Tradingview charts.
Simply input the name of the ticker in Tradingview that you want to screen.
Terminology explanation:
Confirmed Reversal: PMax reversal that happened in the last bar and cannot be repainted.
Potential Reversal: PMax reversal that might happen in the current bar but can also not happen depending upon the timeframe closing price.
Downtrend: Tickers that are currently in the sell zone
Uptrend: Tickers that are currently in the buy zone
Screener has also got a built in PMax indicator which users can confirm the reversals on graphs.
Screener explores the 20 tickers in current graph's time frame and also in desired parameters of the SuperTrend indicator.
Also you can optimize the parameters manually with the built in STRATEGY version.
PMax indicator :
Profit Maximizer - PMax is a brand new indicator developed by me.
It's a combination of two trailing stop loss indicators;
One is Anıl Özekşi's MOST (Moving Stop Loss) Indicator
and the other one is well known ATR based SuperTrend
Profit Maximizer - PMax tries to solve this problem. PMax combines the powerful sides of MOST (Moving Average Trend Changer) and SuperTrend (ATR price detection) in one indicator.
Backtest and optimization results of PMax are far better when compared to its ancestors MOST and SuperTrend. It reduces the number of false signals in sideways and give more reliable trade signals.
PMax is easy to determine the trend and can be used in any type of markets and instruments. It does not repaint.
The first parameter in the PMax indicator set by the three parameters is the period/length of ATR.
The second Parameter is the Multiplier of ATR which would be useful to set the value of distance from the built in Moving Average.
I personally think the most important parameter is the Moving Average Length and type.
PMax will be much sensitive to trend movements if Moving Average Length is smaller. And vice versa, will be less sensitive when it is longer.
As the period increases it will become less sensitive to little trends and price actions.
In this way, your choice of period, will be closely related to which of the sort of trends you are interested in.
We are under the effect of the uptrend in cases where the Moving Average is above PMax;
conversely under the influence of a downward trend, when the Moving Average is below PMax.
Built in Moving Average type defaultly set as EMA but users can choose from 8 different Moving Average types like:
SMA : Simple Moving Average
EMA : Exponential Movin Average
WMA : Weighted Moving Average
TMA : Triangular Moving Average
VAR : Variable Index Dynamic Moving Average aka VIDYA
WWMA : Welles Wilder's Moving Average
ZLEMA : Zero Lag Exponential Moving Average
TSF : True Strength Force
Tip: In sideways VAR would be a good choice
You can use PMax default alarms and Buy Sell signals like:
1-
BUY when Moving Average crosses above PMax
SELL when Moving Average crosses under PMax
2-
BUY when prices jumps over PMax line.
SELL when prices go under PMax line.
Donchian Channels Strategy - Long Term TrendFor 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 longer term trend following strategy that uses Donchian Channels for trend following and uses the upper and lower bands to find price breakouts to enter the market and then uses the middle band as a trailing stop to exit. DCs are known as the original trend following strategy made by Richard Donchian.
Usually the middle band uses the same length of the upper and lower bands in its calculation but I included the default option of using a middle band that is double the length of the other bands, but also an option to use the regular input length that most Donchian strategies use if needed. If long term trends are somehow found, this longer middle band lets the profits run longer and lets you see where the long trends were at if the market had any. The double lengthed middle band looks surprisingly very similar to a 3x ATR trailing stop, which is the recommended setting Wilder suggested for trend following. If a good ATR stop or other trailing stop can't be found, this longer middle band can act as a substitute for it.
For some reason I can't seem to find anything related to Donchian strategies on here despite the popularity and simplicity of it, not even a single working one to my liking, so I made my own. It seems this strategy only works in trending markets. I intentionally handpicked a market that the backtest does well on to illustrate the potential it might have for other markets where trending following strategies might work on and what to expect the results in those might be. Trend following strategies are said to have high profits but at the same time lower accuracy due to the failure rate of being able to catch the right trend. If you all got any suggestions or feedback please let me.
High/low crypto strategy with MACD/PSAR/ATR/EWaveToday I am glad to bring you another great creation of mine, this time suited for crypto markets.
MARKET
Its a high and low strategy, designed for crypto markets( btcusd , btcusdt and so on), and suited for for higher time charts : like 1hour, 4hours, 1 day and so on.
Preferably to use 1h time charts.
COMPONENTS
Higher high and lower low between different candle points
MACD with simple moving average
PSAR for uptrend and downtrend
Trenddirection made of a modified moving average and ATR
And lastly elliot wave oscillator to have an even better precision for entries and exits.
ENTRY DESCRIPTION
For entries we have : when the first condition is meet(we have a succession on higher high or lower lows), then we check the macd histogram level, then we pair that with psar for the direction of the trend, then we check the trend direction based on atr levels with MA applied on it and lastly to confirm the direction we check the level of elliot wave oscillator. If they are all on the same page we have a short or a long entry.
STATS
Its a low win percentage , we usually have between 10-20% win rate, but at the same time we use a 1:30 risk reward ratio .
By this we achieve an avg profit factor between 1.5- 2.5 between different currencies.
RISK MANAGEMENT
In this example, the stop loss is 0.5% of the price fluctuation ( 10.000 -> 9950 our sl), and tp is 15% (10.000 - > 11500).
In this example also we use a 100.000 capital account, risking 5% on each trade, but since its underleveraged, we only use 5000 of that ammount on every trade. With leveraged it can be achieved better profits and of course at the same time we will encounter bigger losses.
The comission applied is 5$ and a slippage of 5 points aswell added.
For any questions or suggestions regarding the script , please let me know.
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.
ATR Stop Buy StrategyThis strategy trial is let you to giving sell and buy orders with ATR (average true range) and an coefficent for them. it is my first strategy work, needs to be upgraded. USE IT WITH YOUR OWN RISK. IT IS NOT EVEN GUARANTEED TO WORK.
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.
2 Candles Inside ATR2 agitated candles falling inside ATR range, awaiting possibly a big move.
Buy / Sell signals at combined high / low can be used as order with other as stop loss.
Counter trade, when this minimal stop loss is hit, is also as useful. However, wait till the SL candle closes, before opening position on the other side.
Works quite well on 15 mins chart, with settings of ATR duration 25 and multiplier 0.6. These settings are configurable, so feel free.
Lagged Donchian Channel + EMAThis strategy is based on a lagged 24 periods Donchian Channel and a 200 periods EMA .
The enter positions are calculated this way :
Bull entry
1. we wait for the close of a candle below the channel and it must be below the 200 EMA
2. the following candle must be a green one and close in the lagged channel
3. we put a long order at the close of the second candle, a stop loss at the low of last 3 candles and a x3 take profit
Bear entry
1. we wait for the close of a candle above the channel and it must be above the 200 EMA
2. the following candle must be a red one and close in the lagged channel
3. we put a short order at the close of the second candle, a stop loss at the high of last 3 candles and a x3 take profit
For both long or short positions :
If the order is not filled, it's cancelled if the price reach 50% of the TP or if the price reach the stop loss level
The position is closed if a new bear/bull condition appears in the other side of the position (if a bear appears when you're long and inversement)
Features :
Position calculator's included with leverage option
Labels of position can be plotted or not
Bull/Bear channels can be plotted with red and green filled
All parameters can be changed for backtesting
Better results have been got with defaults parameters on LTCUSDTPERP in H1 timeframe => profit factor of 2.84 with almost 100 positions.
Hope this strategy will be useful and it would be cool if I could get feedback, comments or better combinations of parameters !!
Don't hesitate to like and leave a comment ;)
@Mysteriown
VWAP and BB strategy [EEMANI]This strategy combines VWAP and BB indicators
BUY RULE
1. EMA50 > EMA 200
2. if current close > vwap session value
3. check if price dipped BB lower band for any of last 10 candles
EXIT RULE
1. price closes above BB upper band
STOP LOSS EXIT
1. As configured --- default is set to 5%
warning: for the use of educational purposes only
Configurable BB+RSI+Aroon strategy backtest for binary optionsI wanted to share this strategy that I use myself for binary options trading. After trading binary options for several years I have learned that every single day is unique... assets behave differently every single day. So, when I start the day I want to know which is the optimum combination of parameters in my indicators that will give me the signals I want during the day and I get that by doing a quick backtest of the parameters combination in a specific asset that same day. When trading Binary Options I usually do 3 or 4 trades max per day and, yes, there are moments in which even with the right backtest data the signals fail (I strongly believe that there is no strategy that guarantees 100% success in any type of trade, and this one here is not an exception - but has worked well with some assets). So, here is my contribution to improve your productivity by automating a bit that backtesting part.
How this script works?
It is a simple price crossunder / crossover Bollinger Bands (BB) with a confirmation from RSI overbought / oversold signals and a fast Aroon. You will see the BB plotted with its confirmations:
(1) a blue circle that plots in the chart when the price is coming back inside the channel (within the Bollinger Bands)
(2) an orange square that plots in the chart when the RSI is coming back from the overbought or oversold areas
(3) a triangle that could be red or green depending on the Aroon confirmation: Red if Aroon Down is crossing down Aroon Up or green if vice versa.
The strategy will call for long (Call) if:
(1) the price is crossing over the lower band of the Bollinger Bands, coming back inside the channel
(2) Aroon Up is crossing or has crossed above Aroon Down
(3) RSI is crossing over the oversold limit
Consequently, the strategy will call for a short (Put) if:
(1) the price is crossing down the upper band of the Bollinger Bands, coming back inside the channel
(2) Aroon Down is crossing or has crossed below Aroon Up
(3) RSI is crossing under the overbought limit
You can configure:
1. Aroon length (keep it as fast as possible: 3, 4 or 5 are recommended values)
2. The point where Aroon Up and Aroon Down cross to make the signal valid (50 is by default. It could also be 25 or 75)
3. The RSI length
4. RSI Overbought and Oversold limits (they do not need to be symmetric: you can use 29 and 93, for example)
5. Bollinger Bands length and standard deviation
6. Number of bars to keep your option open. Depending on the timeframe used, this will determine the time you will keep your binary option open. If you are in a 1 min chart and keep this parameter in 3, then you will need to configure your binary option to expire in 3 minutes.
How to evaluate your backtest?
In Binary Options you only need the success rate, so what I do is that when I am manually updating the parameters I keep my strategy tester window open checking the winning trades vs losing trades ratio ("Percent Profitable"). I personally will only keep an asset monitored looking for signals that day if the Percent Profitable on the backtest of the same day is above 80%.
Regarding the code: it is open, public and free. No need to ask for permission if you want to copy+paste and use it in whole or parts.
Happy pip hunting!
-marco
Bollinger band (band display 5σ)Set the color for each bands and indicate the Bollinger bands.
In order to indicate with simple moving average line,hide the bollonger bands line and set the color for bands.
ボリンジャーバンドの帯域ごとに色を設定して表示します。
単純移動平均線と同時表示しても見やすいように、ボリンジャーバンドの線を非表示にして、帯域に色を設定して表示することができます。