Strategy Tester EMA-SMA-RSI-MACDOn Tradingview I never saw a custom adjustable strategy script yet, so this is it,
you can change different things and see if you'll get a good strategy or not
Settings:
First choose the source, you can choose out of:
close, open, high, low, ohlc4, hlc3, hl2
Then choose you strategy: Long & Short, Long only or Short only
Next, choose your entry "Buy/Long" (which is the "close Short position" when "Short"):
- (E)MA 1 > (E)MA 2 (Each can be made ema or sma)
- close above (E)MA 1
- RSI strategy
- macd > signal
- macd > 0
- signal > 0
Then choose your RSI values if needed (for example you want a trigger when EMA 1 > SMA 2
but only if RSI > 60, then change "IF RSI >" from 0 to 60
Next you can choose an extra argument
and even a second argument with Higher Time Frame settings
Under this you can change your (E)MA values as desired (HTF values, MACD and RSI length can be found lower)
All the same with the exit/close (or if "Short", this is your entry)
Again, change everything as you wish
Then comes the RSI length setting, MACD settings and HTF settings, followed by SL/TP settings
(you also can enable/disable SL/TP), and TIME settings (for example you want to know the profit only from this year)
Alerts are provided in next script
Have fun!
Осцилляторы
1337 StrategyThis is a WIP strategy based on the 1337 Oscillator. It seems to catch some of the nice trending moves on the 1H but needs work to filter the choppy signals after a move and during consolidation.
DD_EchoDD_Echo is a buy/sell trading strategy based on sentiment analysis such as fear and greed, Bitmex premium and quantity theory of money.
The performance metrics are as follows:
Net Profit: 412%
Sharpe Ratio: 1.27
Profit Ratio: 2.55
Hit Rate: 100%
If you want to access this, please DM me.
OathOath consists of 21 and 55 EMA , Commodity Channel Index and Supertrend indicator. It confirms a trend and gives you a signal on a pullback. Original creation worked on 1h EURUSD chart.
Oath is merely a rebrand of my previous Patient Trendfollower strategy. Unlike Patient Trendfollower, Oath has actually a good name and it does not fill your screen with noodles.
►Long setup:
• 21 EMA is above 55 EMA , which is above the Supertrend indicator.
• Commodity Channel Index is an oscillator, which prints into the chart if extreme levels are reached. Green is for a level above 100 or below -100, red is above 140 or below -140 and black is above 180 or below -180.
• If 21 EMA > 55EMA > Supertrend and an oversold signal appear, you can buy into the trend.
• When backtesting on 1h EURUSD , profit target 400 pips worked best with a stop-loss below Supertrend's bottom and the size of your spread. Spread values do not subtract from your profit.
• A picture shows two valid entries.
Further examples can be found in Patient Trendfollower 's description.
Thanks to:
• @everget for providing Supertrend solution.
• Satik FX who hand-tested the system by hand and reported results in this article. He is my main inspiration for creating the complete indicator as one because I want to be able to show and hide it with a single click.
Strategy BTBTBTBT — strategy for only long positional trading of top cryptocurrencies. BTCUSD and ETHUSD are best suited for this strategy.
The main idea of the strategy is to buy cryptocurrency with a leverage of up to 1: 3 when the market is growing, and get rid of cryptocurrency when the market is not growing or falling.
The strategy is working on a daily timeframe .
To determine the trend, the strategy uses a combination of indicators MA25 and MA99.
To determine overbought (pump) and oversold (dump), the strategy uses the oscillator "SPPO".
The strategy has three trading conditions:
1) SPPO SPPOoverBought - "pump" market. Close all long positions or leave a position with a micro-leverage of 1: 0.1 for a period of 28 days.
3) Closing> MA25 > MA99 - uptrend in the market. We open the "long" position with a leverage of 1: 3.
If market conditions do not meet the above criteria, then the strategy does not have open positions.
Input parameters
Recommended timeframe D1.
FastLength - period for fast MA. Default = 25.
SlowLength - period of slow MA. Default = 99.
SPPOoverSold - trigger for determining the dump in the market. Default = -30.
SPPOoverBought - trigger to determine the pump in the market. Default = 35.
SPPOmaxForLong - the maximum value of SPPO for opening a long position. Default = 10.
LeverageLong - leverage when entering the market with a "long" signal. Default = 3.
LeveragePamp - the amount of leverage when entering the market with a "pump" signal. Default = 0.1.
LeverageDamp - the amount of leverage when entering the market with a "dump" signal. Default = 1.
Log equity chart - If true, use a logarithmic scale for a graph of equity. Default = false.
WinStop Strategy for BItcoinWinStop strategy is a high alpha low volatility trend following strategy based on Validate PSAR trends and RSI and William %R oscillators.
bayusp V2Using multi source like RSI , MACD , Stochastic , SMA , EMA and Huge Noural Network to Predicted Open Position.
EltrutTurtle inverted.
Long when
1. 7 period high broken
2. trendflex below 1
3. inside 35,3 bollinger band
Super Z strategy - Thanks to Rafael Zioni//Original script
//https://www.tradingview.com/script/wYknDlLx-super-Z/
This is a test for verifying if this interesting study works well.
The author, thanks to him!!!, advise a possible repaint because the script uses security function.
Refer to tradingview.com for more info on repainting:
www.tradingview.com
QUOTE:
We can see repainting in the following cases:
1- Strategies using calc_on_every_tick=true. A strategy with parameter calc_on_every_tick = false may also be prone to repainting, but to a lesser degree.
(this is not the case, ndr).
2- Using security for requesting data from a resolution higher than the resolution of the chart’s main symbol (i.e. do not use ion weelky chart if you set 1440 (1Day) in inputs)
NOTE: Thanks again to Rafael Zioni. If he requires to delete this strategy, I'll do immediately.
Combo Backtest 123 Reversal & Elder Ray (Bear Power) This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
Developed by Dr Alexander Elder, the Elder-ray indicator measures buying
and selling pressure in the market. The Elder-ray is often used as part
of the Triple Screen trading system but may also be used on its own.
Dr Elder uses a 13-day exponential moving average (EMA) to indicate the
market consensus of value. Bear Power measures the ability of sellers to
drive prices below the consensus of value. Bear Power reflects the ability
of sellers to drive prices below the average consensus of value.
Bull Power is calculated by subtracting the 13-day EMA from the day's High.
Bear power subtracts the 13-day EMA from the day's Low.
You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
WARNING:
- For purpose educate only
- This script to change bars colors.
RSI Divergence Indicator strategyThis strategy is based on RSI divergence indicator.
RSI period setting 5
Go Long when Bull or Hidden Bull is shown
Exit when RSI goes above 75 OR when bear condition appears
PROFIT + V2We are glad to introduce you our new strategy PROFIT +.
The strategy PROFIT + is based on price and volume correlation analysis.
The entries are quick with tight stop loss. Best suits fot those who like
to get quick profit in the beginning of the price move.
It was tested on BTC , Bitmex exchange on 1 hour timeframe,
but it can also be used on 30, 15 and 10 minutes tf.
There is also ALERT INDICATOR for the strategy to receive notification
when there is a buy/sell signal.
To get acces to the strategy pm me.
-------------------------------------------------------------------------
Рады представить нашу новую торговую стратегию PROFIT+.
Стратегия PROFIT + основана на анализе корреляции цены и объёма.
Входы в стратегии быстрые с коротким стопом. Больше подходит для
тех кто любит забирать быстрый профит в самом начале движения.
Стратегия была тестирована на инструменте BTC биржа BITMEX
на 1 часовом таймфрейме, но она также работает на 30, 15 и 10 минутных тф.
Для стратегии также доступен ИНДИКАТОР АЛЕРТ для получения оповещения
при появлении buy/sell сигналов.
Для получения доступа к стратегии пишите мне в личные сообщения.
Ichimoku with ADXMy first attempt at coding a strategy in pine script.
The strategy tests for a confluence of bull / bear signals and executes a trade when these are met.
It uses the ADX as a screen against fake breakouts.
Armi Goldman V1.7 CopernicusScript uses an EMA (Exponential Moving Average) as an indicator. When the price crosses (breakout/breakdown) the EMA, the trigger is activated. Script does the breakout and breakdown calculations. It considers one candle close above or below the EMA.
It is used only in trending markets like bullish trends and/or bearish trends and never in flat. It can get very bad results so pay attention!
Feel free to test it and add comments.
I am open to answer any questions.
I would like to know what you think and how can we improve this strategy.
Thank you & enjoy!
Ichimoku Cloud & ADX & MACD with TSL [tg1]Hi There! Used the time at home during the corona to learn Pinescript and work on this strategy. Its finetuned for BTCUSDT on mid-high timeframe, can be used for other TF/markets, but be extra careful).
The strategy is mainly build around Ichimoku Kinko Hyo and its Tenkan and Kijun crosses. It aims to only buy/sell when there is a strong trend in any direction (using MAs, ADX and ATR) and enters a trade based on these conditions:
1) Tenkan > Kijun
2) Close > Kumo
3) MACD > Signal
4) ADX > Custom value
The same applies for shorts, just the other way around.
I added a TSL based on either % or ATR fixed % for improved risk management. Let me know if any questions.
ALLinBull&Bear v9.0 STRATEGYEach of my Allin Custom Indicators combined, ads to your understanding where the Market could go next. Each of them have their own purpose and set of rules.
You will weight gathered information to get a better understanding of when to ENTER or EXIT a position (SHORT or LONG).
First you need to find the right Indicator Settings and the best preforming TimeFrame for chosen crypto or fiat pair. You will do that with a "STRATEGY" Indicator. I chose either 3min TF for highly liquid assets or 15min TF for assets of low liquidity but you can choose whatever you want to up to 30min TF.
Do not stop until you find 80% or more Precent Profitable result (test different setting on different TF for best results) in Strategy Tester. You can backtest your Strategy with different settings and in different TimeFames to find the very best results for that pair.
BACKTESTING past results does not guarantee your future results. BACKTESTING is used to fine-tune your indicator.
Example: with a guitar tuner (Strategy Tester in our case) you fine-tune your guitar (our Indicators in our case) so you know what tone the guitar will produce when you hit a certain note ("in-tuned" visual interpretation of the Market in our case). It is normal to get a 100% Precent Profitable result from backtesting with very little Drawdown. More than 80% and low drawdown usually means Indicators is "in-tune".
CUSTOM INDICATOR TYPE: STRATEGY
SETUP
There are five different settings. To use them efficiently you need to understand what is their purpose and meaning.
"2nd", "3rd" and "4th" FIELD
All of my custom indicators use data from 4 different TimeFrames. First TimeFrame is the one you picked in TradingView. Now you need to set up the other three TimeFrames. To do that you need to click on the "Settings" icon on this indicator and change the "2nd", "3rd" and "4th" field. The preferred setting I use to start searching for the best performing set of Settings is 2-8-32 OR 3-9-27 OR 4-16-64 OR 5-20-80. Those numbers are multiplication of chosen TimeFrame.
Example: setting 2-8-32 on a 5-minute TimeFrame means it will gather data from 5min TF, 10min TF (5minX2), 40min TF (5minX8) and 160min TF (5minX32).
Smoother FIELD
This Field is used to average down all that data indicator it is gathering from the price chart. I use integers like for example 9, 18, 27, and any number in between. It is connected to volatility. High Volatility needs Low Number and vice versa.
Threshold FIELD
This Field is used to cancel down all the mini signal confirmations that are false due to an insignificant influence on future price movements. This number is usually best at 21. When you set all other Fields and get satisfying results you can still try and fine-tune it even more and get even better results.
HOW TO USE IT
First, you have to choose your TimeFrame. I choose either 3min TF for highly liquid assets and 15min TF for assets of low liquidity but you can choose whatever you want to up to 30min TF. Example: if you chose 30min TimeFrame and you fill the "4th" Field with the number "80", one of observed TF by the indicator will be "30minX80" or "2400min" or "40h" TimeFrame, so it is HUGE.
It always depends based on the nature of the actual pair you are looking at. If it is very volatile with a lot of volume, the market beat for this pair settings is very different from another pair with for example very little volume and low volatility. So you need to find the right Indicator Settings at the right TimeFrame for each pair you are following. You are basically tuning your Indicator like you would tune your guitar so you know what to expect before hitting those "strings" of yours.
Find the best performing setting and TimeFrame with help from a TradingView feature called "Strategy Tester". Get familiar with this feature. But rule of thumb is: everything more than 80% Precent Profitable result with Max Drawdown (negative yield from the worst closed position) lower or similar to AvgTrade is considered good enough tuning of my Indicators.
You need to reevaluate your best setting whenever your last trade gets a negative result or something big (whale manipulation) happens on the market. You need to re-tune your Indicator so it will be in tune with the Market again. Check and try to find better performing (better Precent Profitable result, lower Drawdown) settings periodically every few days to find your best yielding results.
CUSTOM INDICATOR: BULL&BEAR
HOW TO READ IT
WHITE WAVY LINE AND TWO HORIZONTAL WHITE LINES
With this one just follow the existing rules when exiting an oversold or overbought area as in RSI,CCI or SRSI indicator. When combining with the signal colored lines in the background it then makes better sense if it is a false signal and it will turn back or it is the right signal and it will exit the oversold or overbought area and advance in that direction.
IN THE BACKGROUND: NINE COLORED LINES
Rule of thumb here is the more GREEN LINES you see the more LONG/BUY the Signal is and vice versa. It helps to look at those lines a few hours back to get the "feel" where the market is pushing the price. First (1), second (2) and seventh (7) line are the most important lines and they have to be aligned and prevailed in the same color to get a viable signal but it still needs to be confirmed with other Signals.
Before making any decisions based on visualisation you should refresh the page. Indicator is very data sensitive and needs that very last data for the most accurate visual representation of the Market.
ALLinOscillator v3.0 STRATEGYEach of my Allin Custom Indicators combined, ads to your understanding where the Market could go next. Each of them have their own purpose and set of rules.
You will weight gathered information to get a better understanding of when to ENTER or EXIT a position (SHORT or LONG).
First you need to find the right Indicator Settings and the best preforming TimeFrame for chosen crypto or fiat pair. You will do that with a "STRATEGY" Indicator. I chose either 3min TF for highly liquid assets or 15min TF for assets of low liquidity but you can choose whatever you want to up to 30min TF.
Do not stop until you find 80% or more Precent Profitable result (test different setting on different TF for best results) in Strategy Tester. You can backtest your Strategy with different settings and in different TimeFames to find the very best results for that pair.
BACKTESTING past results does not guarantee your future results. BACKTESTING is used to fine-tune your indicator.
Example: with a guitar tuner (Strategy Tester in our case) you fine-tune your guitar (our Indicators in our case) so you know what tone the guitar will produce when you hit a certain note ("in-tuned" visual interpretation of the Market in our case). It is normal to get a 100% Precent Profitable result from backtesting with very little Drawdown. More than 80% and low drawdown usually means Indicators is "in-tune".
CUSTOM INDICATOR TYPE: STRATEGY
SETUP
There are five different settings. To use them efficiently you need to understand what is their purpose and meaning.
"2nd", "3rd" and "4th" FIELD
All of my custom indicators use data from 4 different TimeFrames. First TimeFrame is the one you picked in TradingView. Now you need to set up the other three TimeFrames. To do that you need to click on the "Settings" icon on this indicator and change the "2nd", "3rd" and "4th" field. The preferred setting I use to start searching for the best performing set of Settings is 2-8-32 OR 3-9-27 OR 4-16-64 OR 5-20-80. Those numbers are multiplication of chosen TimeFrame.
Example: setting 2-8-32 on a 5-minute TimeFrame means it will gather data from 5min TF, 10min TF (5minX2), 40min TF (5minX8) and 160min TF (5minX32).
Smoother FIELD
This Field is used to average down all that data indicator it is gathering from the price chart. I use integers like for example 9, 18, 27, and any number in between. It is connected to volatility. High Volatility needs Low Number and vice versa.
Threshold FIELD
This Field is used to cancel down all the mini signal confirmations that are false due to an insignificant influence on future price movements. This number is usually best at 21. When you set all other Fields and get satisfying results you can still try and fine-tune it even more and get even better results.
HOW TO USE IT
First, you have to choose your TimeFrame. I choose either 3min TF for highly liquid assets and 15min TF for assets of low liquidity but you can choose whatever you want to up to 30min TF. Example: if you chose 30min TimeFrame and you fill the "4th" Field with the number "80", one of observed TF by the indicator will be "30minX80" or "2400min" or "40h" TimeFrame, so it is HUGE.
It always depends based on the nature of the actual pair you are looking at. If it is very volatile with a lot of volume, the market beat for this pair settings is very different from another pair with for example very little volume and low volatility. So you need to find the right Indicator Settings at the right TimeFrame for each pair you are following. You are basically tuning your Indicator like you would tune your guitar so you know what to expect before hitting those "strings" of yours.
Find the best performing setting and TimeFrame with help from a TradingView feature called "Strategy Tester". Get familiar with this feature. But rule of thumb is: everything more than 80% Precent Profitable result with Max Drawdown (negative yield from the worst closed position) lower or similar to AvgTrade is considered good enough tuning of my Indicators.
You need to reevaluate your best setting whenever your last trade gets a negative result or something big (whale manipulation) happens on the market. You need to re-tune your Indicator so it will be in tune with the Market again. Check and try to find better performing (better Precent Profitable result, lower Drawdown) settings periodically every few days to find your best yielding results.
CUSTOM INDICATOR: OSCILLATOR
HOW TO READ IT
GREEN AREA on the bottom and RED AREA on top are just like the oversold or overbought areas in RSI, CCI or SRSI and uses the same principle.
Example: when a WHITE wave line crosses-UP WHITE horizontal line in GREEN area it means that it is a LONG/BUY signal/confirmation. It needs to be confirmed with other confirmation signals in that same Indicator on in a "BULL&BEAR" Indicator to get better understanding that the price would not turn back down due to a false price move in UPWARDS direction.
GREEN or RED OSCILLATOR WAVE AREAS indicates the direction price is going and how strong the "force" behind the price move is.
Example: if WHITE LINE is over the RED/GREEN LINE the area turns GREEN and it is a LONG/BUY signal. When a shadow color is on the OTHER SIDE that means it is an added confirmation for a LONG/BUY position. When a SHADOW AREA is over the GREEN AREA and turns RED it usually means there are still forces pulling the price down.
Before making any decisions based on visualisation you should refresh the page. Indicator is very data sensitive and needs that very last data for the most accurate visual representation of the Market.
Ichimoku Cloud & ADX & DMI & MACD [tg1]Hi There! Sharing my strategy that is mainly build on Ichimoku Kinko Hyo and its Tenkan and Kijun crosses.
In addition, I added a few other indicators to have less false breakout signals. See more details below:
Long conditions :
1) Tenkan crosses over Kijun
2) Tenkan & Kijun > Kumo
3) Close > Kumo
4) Chikou > Kumo (-n periods)
5) ADX > Custom value
6) DI+ > DI-
7) MACD > Signal
8) SMA > 200
Short conditions are simply the other way around. This indicator has been mainly tested and tuned for BTCUSDT.
Strategy - Stochastic Crosses in Trending MarketThis strategy is based on Stochastic Crosses happening in the Oversold/Overbought area, taken into account the current trend which is determined by an EMA pair.
(Only Longs in uptrend / only Shorts in downtrend)
- Long position is closed when Stochastic is entering Overbought area
- Short position is closed when Stochastic is entering Overbought area
Additionally a logic is implemented to close the position when another (subsequent) Buy or Sell Signal is given after the trend has changed (to avoid fake outs)
- EMA and Stochastic settings can be changed in the settings
- Take Profit / Stop Loss can be dynamically activated in the settings (by defaults only Take Profit is activated)
- Short Position trading can be excluded in the settings (for people trading on platforms without the possibility to open Short Positions)
- Strategy time frame can be entered in the settings
Default setup seems to work well for BTC on 4HR timeframe.
Good luck!
As this is my first strategy, I am very happy for constructive feedback on how to improve this.
Crypto Scalper Pro===========
Crypto Scalper Pro Strategy
===========
Crypto Scalper Pro is a scalping strategy developed to work alongside our Crypto Tipster Strategy, now you can trade the D markets with our Tipster, and Intra-Day markets with our Scalper!
This strategy works very well on shorter time frames across multiple crypto pairs, everything from 4H all the way down to a 5m chart, our Crypto Scalper will find the best Entry and Exit points for consistent and reliable returns.
We've added a few variables for you to play with to fine tune this scalper to suit your chosen trading plan - however, these will only adjust the strategy to a certain degree, as there are many algorithms and indicators doing their thing hidden in the background that take precedence.
Check out the Crypto Scalper Pro Alert Indicator to automate this strategy!
-----------
What's Included?
Crypto Scalper Pro comes with a host of features and is being continually updated, these features include (but are not limited to):
- Date Range Settings
Setting custom Start/End dates can help hone your strategy to suit the current times, or get a general overview of the market over the years.
- Heikin Ashi Confirmation
We added HA confirmation for both Entry & Exit of trades. This started as a form of "Safe Mode", we have since adapted our safe mode far beyond Heikin Ashi; but kept this confirmation as an added extra.
- Variable Indicator Settings
As well as our Fixed Indicators and Price Action analysis going on in the background of the strategy, we've also included some Variable Indicators that you have access to edit.
Lookback Period will help establish how far back you'd want to be confirming price indications on the strategy - the higher the number the further back it will look, making the Scalping Strategy appear smoother with less trades during choppy times, the downside with a higher lookback is you might miss the start of a potentially epic trade, and only be shown an Entry after the event has already happened.
We find Lookback Lengths of between 5 and 100 could work depending on various other settings, the market being traded, and the timeframe being used.
MA Length (Length of Moving Average) - We use a few MA's to best determine various factors involved with successfully scalping a market, overall trend direction, current price movements and fake-out detection to name just a few. You've got the option of determining a good average length for a few of these variables.
Again, a short MA Length will catch every big move right at the start, but you're almost guaranteed a Negative Expected Value with that method, due to the vast quantity of losing trades in times of chop/ranging markets. A Higher MA Length will remove a lot of chop, reduce the quantity of trades, and therefore (should) result in a higher Percent of Trades Profitable; it will however add a certain lag to the strategy, meaning those highly profitable trades we're looking for may turn out to be not so highly profitable!
- Safe Mode
Enabling Safe Mode will add a couple more confirmation indicators to the strategy - the aim of Safe Mode is, in essence, to remove any trading signals that would end of being false/bad moves. Usually resulting in less Overall Trades, a higher Net Profit, higher % Profitable, higher Profit Factor AND a lower Drawdown. Use Safe Mode to help eliminate orders that would otherwise be placed in choppy markets.
- Stop Loss/Take Profit Settings
This is where Crypto Scalper Pro really proves itself, Money Management. We have an editable Fixed SL/TP, as well as Trailing Stops for Long or Short orders, all of which you can use on their own, or combined with each other. Playing with these settings can turn an un-profitable system into a very-profitable trading plan!
-----------
For more information and a FREE 7-Day Trial with the Crypto Scalper Pro Strategy visit the link in our signature.
Good Luck and Happy Trading!
888 BOT #backtest█ 888 BOT #backtest
This is an Expert Advisor 'EA' or Automated trading script for ‘longs’ and ‘shorts’, which uses only a Take Profit or, in the worst case, a Stop Loss to close the trade.
It's a much improved version of the previous ‘Repanocha’. It doesn`t use 'Trailing Stop' or 'security()' functions (although using a security function doesn`t mean that the script repaints) and all signals are confirmed, therefore the script doesn`t repaint in alert mode and is accurate in backtest mode.
Apart from the previous indicators, some more and other functions have been added for Stop-Loss, re-entry and leverage.
It uses 8 indicators, (many of you already know what they are, but in case there is someone new), these are the following:
1. Jurik Moving Average
It's a moving average created by Mark Jurik for professionals which eliminates the 'lag' or delay of the signal. It's better than other moving averages like EMA, DEMA, AMA or T3.
There are two ways to decrease noise using JMA. Increasing the 'LENGTH' parameter will cause JMA to move more slowly and therefore reduce noise at the expense of adding 'lag'
The 'JMA LENGTH', 'PHASE' and 'POWER' parameters offer a way to select the optimal balance between 'lag' and over boost.
Green: Bullish, Red: Bearish.
2. Range filter
Created by Donovan Wall, its function is to filter or eliminate noise and to better determine the price trend in the short term.
First, a uniform average price range 'SAMPLING PERIOD' is calculated for the filter base and multiplied by a specific quantity 'RANGE MULTIPLIER'.
The filter is then calculated by adjusting price movements that do not exceed the specified range.
Finally, the target ranges are plotted to show the prices that will trigger the filter movement.
Green: Bullish, Red: Bearish.
3. Average Directional Index (ADX Classic) and (ADX Masanakamura)
It's an indicator designed by Welles Wilder to measure the strength and direction of the market trend. The price movement is strong when the ADX has a positive slope and is above a certain minimum level 'ADX THRESHOLD' and for a given period 'ADX LENGTH'.
The green color of the bars indicates that the trend is bullish and that the ADX is above the level established by the threshold.
The red color of the bars indicates that the trend is down and that the ADX is above the threshold level.
The orange color of the bars indicates that the price is not strong and will surely lateralize.
You can choose between the classic option and the one created by a certain 'Masanakamura'. The main difference between the two is that in the first it uses RMA () and in the second SMA () in its calculation.
4. Parabolic SAR
This indicator, also created by Welles Wilder, places points that help define a trend. The Parabolic SAR can follow the price above or below, the peculiarity that it offers is that when the price touches the indicator, it jumps to the other side of the price (if the Parabolic SAR was below the price it jumps up and vice versa) to a distance predetermined by the indicator. At this time the indicator continues to follow the price, reducing the distance with each candle until it is finally touched again by the price and the process starts again. This procedure explains the name of the indicator: the Parabolic SAR follows the price generating a characteristic parabolic shape, when the price touches it, stops and turns (SAR is the acronym for 'stop and reverse'), giving rise to a new cycle. When the points are below the price, the trend is up, while the points above the price indicate a downward trend.
5. RSI with Volume
This indicator was created by LazyBear from the popular RSI.
The RSI is an oscillator-type indicator used in technical analysis and also created by Welles Wilder that shows the strength of the price by comparing individual movements up or down in successive closing prices.
LazyBear added a volume parameter that makes it more accurate to the market movement.
A good way to use RSI is by considering the 50 'RSI CENTER LINE' centerline. When the oscillator is above, the trend is bullish and when it is below, the trend is bearish.
6. Moving Average Convergence Divergence (MACD) and (MAC-Z)
It was created by Gerald Appel. Subsequently, the histogram was added to anticipate the crossing of MA. Broadly speaking, we can say that the MACD is an oscillator consisting of two moving averages that rotate around the zero line. The MACD line is the difference between a short moving average 'MACD FAST MA LENGTH' and a long moving average 'MACD SLOW MA LENGTH'. It's an indicator that allows us to have a reference on the trend of the asset on which it is operating, thus generating market entry and exit signals.
We can talk about a bull market when the MACD histogram is above the zero line, along with the signal line, while we are talking about a bear market when the MACD histogram is below the zero line.
There is the option of using the MAC-Z indicator created by LazyBear, which according to its author is more effective, by using the parameter VWAP (volume weighted average price) 'Z-VWAP LENGTH' together with a standard deviation 'STDEV LENGTH' in its calculation.
7. Volume Condition
Volume indicates the number of participants in this war between bulls and bears, the more volume the more likely the price will move in favor of the trend. A low trading volume indicates a lower number of participants and interest in the instrument in question. Low volumes may reveal weakness behind a price movement.
With this condition, those signals whose volume is less than the volume SMA for a period 'SMA VOLUME LENGTH' multiplied by a factor 'VOLUME FACTOR' are filtered. In addition, it determines the leverage used, the more volume, the more participants, the more probability that the price will move in our favor, that is, we can use more leverage. The leverage in this script is determined by how many times the volume is above the SMA line.
The maximum leverage is 8.
8. Bollinger Bands
This indicator was created by John Bollinger and consists of three bands that are drawn superimposed on the price evolution graph.
The central band is a moving average, normally a simple moving average calculated with 20 periods is used. ('BB LENGTH' Number of periods of the moving average)
The upper band is calculated by adding the value of the simple moving average X times the standard deviation of the moving average. ('BB MULTIPLIER' Number of times the standard deviation of the moving average)
The lower band is calculated by subtracting the simple moving average X times the standard deviation of the moving average.
the band between the upper and lower bands contains, statistically, almost 90% of the possible price variations, which means that any movement of the price outside the bands has special relevance.
In practical terms, Bollinger bands behave as if they were an elastic band so that, if the price touches them, it has a high probability of bouncing.
Sometimes, after the entry order is filled, the price is returned to the opposite side. If price touch the Bollinger band in the same previous conditions, another order is filled in the same direction of the position to improve the average entry price, (% MINIMUM BETTER PRICE ': Minimum price for the re-entry to be executed and that is better than the price of the previous position in a given %) in this way we give the trade a chance that the Take Profit is executed before. The downside is that the position is doubled in size. 'ACTIVATE DIVIDE TP': Divide the size of the TP in half. More probability of the trade closing but less profit.
█ STOP LOSS and RISK MANAGEMENT.
A good risk management is what can make your equity go up or be liquidated.
The % risk is the percentage of our capital that we are willing to lose by operation. This is recommended to be between 1-5%.
% Risk: (% Stop Loss x % Equity per trade x Leverage) / 100
First the strategy is calculated with Stop Loss, then the risk per operation is determined and from there, the amount per operation is calculated and not vice versa.
In this script you can use a normal Stop Loss or one according to the ATR. Also activate the option to trigger it earlier if the risk percentage is reached. '% RISK ALLOWED'
'STOP LOSS CONFIRMED': The Stop Loss is only activated if the closing of the previous bar is in the loss limit condition. It's useful to prevent the SL from triggering when they do a ‘pump’ to sweep Stops and then return the price to the previous state.
█ BACKTEST
The objective of the Backtest is to evaluate the effectiveness of our strategy. A good Backtest is determined by some parameters such as:
- RECOVERY FACTOR: It consists of dividing the 'net profit' by the 'drawdown’. An excellent trading system has a recovery factor of 10 or more; that is, it generates 10 times more net profit than drawdown.
- PROFIT FACTOR: The ‘Profit Factor’ is another popular measure of system performance. It's as simple as dividing what win trades earn by what loser trades lose. If the strategy is profitable then by definition the 'Profit Factor' is going to be greater than 1. Strategies that are not profitable produce profit factors less than one. A good system has a profit factor of 2 or more. The good thing about the ‘Profit Factor’ is that it tells us what we are going to earn for each dollar we lose. A profit factor of 2.5 tells us that for every dollar we lose operating we will earn 2.5.
- SHARPE: (Return system - Return without risk) / Deviation of returns.
When the variations of gains and losses are very high, the deviation is very high and that leads to a very poor ‘Sharpe’ ratio. If the operations are very close to the average (little deviation) the result is a fairly high 'Sharpe' ratio. If a strategy has a 'Sharpe' ratio greater than 1 it is a good strategy. If it has a 'Sharpe' ratio greater than 2, it is excellent. If it has a ‘Sharpe’ ratio less than 1 then we don't know if it is good or bad, we have to look at other parameters.
- MATHEMATICAL EXPECTATION: (% winning trades X average profit) + (% losing trades X average loss).
To earn money with a Trading system, it is not necessary to win all the operations, what is really important is the final result of the operation. A Trading system has to have positive mathematical expectation as is the case with this script: ME = (0.87 x 30.74$) - (0.13 x 56.16$) = (26.74 - 7.30) = 19.44$ > 0
The game of roulette, for example, has negative mathematical expectation for the player, it can have positive winning streaks, but in the long term, if you continue playing you will end up losing, and casinos know this very well.
PARAMETERS
'BACKTEST DAYS': Number of days back of historical data for the calculation of the Backtest.
'ENTRY TYPE': For '% EQUITY' if you have $ 10,000 of capital and select 7.5%, for example, your entry would be $ 750 without leverage. If you select CONTRACTS for the 'BTCUSDT' pair, for example, it would be the amount in 'Bitcoins' and if you select 'CASH' it would be the amount in $ dollars.
'QUANTITY (LEVERAGE 1X)': The amount for an entry with X1 leverage according to the previous section.
'MAXIMUM LEVERAGE': It's the maximum allowed multiplier of the quantity entered in the previous section according to the volume condition.
The settings are for Bitcoin at Binance Futures (BTC: USDTPERP) in 30 minutes.
For other pairs and other timeframes, the settings have to be adjusted again. And within a month, the settings will be different because we all know the market and the trend are changing.
█ 888 BOT (SPANISH)
Este es un Expert Advisor 'EA' o script de trading automatizado para ‘longs’ y ‘shorts’, el cual, utiliza solo un Take Profit o, en el peor de los casos, un Stop Loss para cerrar el trade.
Es una versión muy mejorada del anterior ‘Repanocha’. No utiliza ‘Trailing Stop’, ni funciones ‘security()’ (aunque usar una función security no significa que el script repinte) y todas las señales son confirmadas, por consiguiente, el script no repinta en modo alertas y es preciso en en el modo backtest.
Aparte de los anteriores indicadores se han añadido algunos más y otras funciones para Stop-Loss, de re-entrada y apalancamiento.
Utiliza 8 indicadores, (muchos ya sabéis sobradamente lo que son, pero por si hay alguien nuevo), son los siguientes:
1. Jurik Moving Average
Es una media móvil creada por Mark Jurik para profesionales la cual elimina el ‘lag’ o retardo de la señal. Es mejor que otras medias móviles como la EMA, DEMA, AMA o T3.
Hay dos formas de disminuir el ruido utilizando JMA. El aumento del parámetro 'LENGTH' hará que JMA se mueva más lentamente y, por lo tanto, reducirá el ruido a expensas de añadir ‘lag’
Los parámetros 'JMA LENGTH', 'PHASE' y 'POWER' ofrecen una forma de seleccionar el equilibrio óptimo entre ‘lag’ y sobre impulso.
Verde : Alcista, Rojo: Bajista.
2. Range filter
Creado por Donovan Wall, su función es la de filtrar o eliminar el ruido y poder determinar mejor la tendencia del precio a corto plazo.
Primero, se calcula un rango de precio promedio uniforme 'SAMPLING PERIOD' para la base del filtro y se multiplica por una cantidad específica 'RANGE MULTIPLIER'.
A continuación, el filtro se calcula ajustando los movimientos de precios que no exceden el rango especificado.
Por último, los rangos objetivo se trazan para mostrar los precios que activarán el movimiento del filtro.
Verde : Alcista, Rojo: Bajista.
3. Average Directional Index (ADX Classic) y (ADX Masanakamura)
Es un indicador diseñado por Welles Wilder para medir la fuerza y dirección de la tendencia del mercado. El movimiento del precio tiene fuerza cuando el ADX tiene pendiente positiva y está por encima de cierto nivel mínimo 'ADX THRESHOLD' y para un periodo dado 'ADX LENGTH'.
El color verde de las barras indica que la tendencia es alcista y que el ADX está por encima del nivel establecido por el threshold.
El color Rojo de las barras indica que la tendencia es bajista y que el ADX está por encima del nivel de threshold.
El color naranja de las barras indica que el precio no tiene fuerza y seguramente lateralizará.
Se puede elegir entre la opción clásica y la creada por un tal 'Masanakamura'. La diferencia principal entre los dos es que en el primero utiliza RMA() y en el segundo SMA() en su cálculo.
4. Parabolic SAR
Este indicador, creado también por Welles Wilder, coloca puntos que ayudan a definir una tendencia. El Parabolic SAR puede seguir al precio por encima o por debajo, la particularidad que ofrece es que cuando el precio toca al indicador, este salta al otro lado del precio (si el Parabolic SAR estaba por debajo del precio salta arriba y viceversa) a una distancia predeterminada por el indicador. En este momento el indicador vuelve a seguir al precio, reduciendo la distancia con cada vela hasta que finalmente es tocado otra vez por el precio y se vuelve a iniciar el proceso. Este procedimiento explica el nombre del indicador: el Parabolic SAR va siguiendo al precio generando una característica forma parabólica, cuando el precio lo toca, se para y da la vuelta (SAR son las siglas en inglés de ‘stop and reverse’), dando lugar a un nuevo ciclo. Cuando los puntos están por debajo del precio, la tendencia es alcista, mientras que los puntos por encima del precio indica una tendencia bajista.
5. RSI with Volume
Este indicador lo creo un tal LazyBear de TV a partir del popular RSI.
El RSI es un indicador tipo oscilador utilizado en análisis técnico y creado también por Welles Wilder que muestra la fuerza del precio mediante la comparación de los movimientos individuales al alza o a la baja de los sucesivos precios de cierre.
LazyBear le añadió un parámetro de volumen que lo hace más preciso al movimiento del mercado.
Una buena forma de usar el RSI es teniendo en cuenta la línea central de 50 'RSI CENTER LINE'. Cuando el oscilador está por encima, la tendencia es alcista y cuando está por debajo la tendencia es bajista.
6. Moving Average Convergence Divergence (MACD) y (MAC-Z)
Fue creado por Gerald Appel. Posteriormente se añadió el histograma para anticipar el cruce de medias. A grandes rasgos podemos decir que el MACD es un oscilador consistente en dos medias móviles que van girando en torno a la línea de cero. La línea del MACD no es más que la diferencia entre una media móvil corta 'MACD FAST MA LENGTH' y una media móvil larga 'MACD SLOW MA LENGTH'. Es un indicador que nos permite tener una referencia sobre la tendencia del activo sobre el cual se está operando, generando de este modo señales de entrada y salida del mercado.
Podemos hablar de mercado alcista cuando el histograma del MACD se sitúe por encima de la línea cero, junto con la línea de señal, mientras que hablaremos de mercado bajista cuando el histograma MACD se situará por debajo de la línea cero.
Está la opción de utilizar el indicador MAC-Z creado por LazyBear que según su autor es más eficaz, por utilizar el parámetro VWAP (precio medio ponderado por volumen) 'Z-VWAP LENGTH' junto con una desviación standard 'STDEV LENGTH' en su cálculo.
7. Volume Condition
El volumen indica el número de participantes en esta guerra entre toros y osos, cuanto más volumen más probabilidad de que se mueva el precio a favor de la tendencia. Un volumen bajo de negociación indica un menor número de participantes e interés por el instrumento en cuestión. Los bajos volúmenes pueden revelar debilidad detrás de un movimiento de precios.
Con esta condición se filtran aquellas señales cuyo volumen es inferior a la SMA de volumen para un periodo 'SMA VOLUME LENGTH' multiplicado por un factor 'VOLUME FACTOR'. Además, determina el apalancamiento utilizado, a más volumen, más participantes, más probabilidad de que se mueva el precio a nuestro favor, es decir, podemos utilizar más apalancamiento. El apalancamiento en este script lo determina las veces que está el volumen por encima de la línea de la SMA.
El apalancamiento máximo es de 8.
8. Bollinger Bands
Este indicador fue creado por John Bollinger y consiste en tres bandas que se dibujan superpuestas al gráfico de evolución del precio.
La banda central es una media móvil, normalmente se emplea una media móvil simple calculada con 20 períodos. ('BB LENGTH' Número de periodos de la media móvil)
La banda superior se calcula sumando al valor de la media móvil simple X veces la desviación típica de la media móvil. ('BB MULTIPLIER' Número de veces la desviación típica de la media móvil)
La banda inferior de calcula restando a la media móvil simple X veces la desviación típica de la media móvil.
la franja comprendida entre las bandas superior e inferior contiene, estadísticamente, casi un 90% de las posibles variaciones del precio, lo que significa que cualquier movimiento del precio fuera de las bandas tiene especial relevancia.
En términos prácticos, las bandas de Bollinger se comporta como si de una banda elástica se tratara de manera que, si el precio las toca, éste tiene mucha probabilidad de rebotar.
En ocasiones, después de rellenarse la orden de entrada, el precio se devuelve hacia el lado contrario. Si toca la banda de Bollinger se rellena otra orden en la misma dirección de la posición para mejorar el precio medio de entrada, (% MINIMUM BETTER PRICE': Precio mínimo para que se ejecute la re-entrada y que sea mejor que el precio de la posición anterior en un % dado) de esta manera damos una oportunidad al trade de que el Take Profit se ejecute antes. La desventaja es que se dobla el tamaño de la posición. 'ACTIVATE DIVIDE TP': Divide el tamaño del TP a la mitad. Más probabilidad de que se cierre el trade pero menos ganancias.
█ STOP LOSS y RISK MANAGEMENT.
Una buena gestión de las pérdidas o gestión del riesgo es lo que puede hacer que tu cuenta suba o se liquide en poco tiempo.
El % de riesgo es el porcentaje de nuestro capital que estamos dispuestos a perder por operación. Este se aconseja que debe estar comprendido entre un 1-5%.
% Risk = (% Stop Loss x % Equity per trade x Leverage) / 100
Primero se calcula la estrategia con Stop Loss, después se determina el riesgo por operación y a partir de ahí se calcula el monto por operación y no al revés.
En este script puedes usar un Stop Loss normal o uno según el ATR. También activar la opción de que salte antes si se alcanza el porcentaje de riesgo. '% RISK ALLOWED'
'STOP LOSS CONFIRMED': Solamente se activa el Stop Loss si el cierre de la barra anterior se encuentra en la condición de límite de pérdidas. Es útil para evitar que se dispare el SL cuando hacen un ‘pump’ para barrer Stops y luego se devuelve el precio a la normalidad.
█ BACKTEST
El objetivo del Backtest es evaluar la eficacia de nuestra estrategia. Un buen Backtest lo determinan algunos parámetros como son:
- RECOVERY FACTOR: Consiste en dividir el ‘beneficio neto’ entre el ‘drawdown’. Un excelente sistema de trading tiene un recovery factor de 10 o más; es decir, genera 10 veces más beneficio neto que drawdown.
- PROFIT FACTOR: El ‘Profit Factor’ es otra medida popular del rendimiento de un sistema. Es algo tan simple como dividir lo que ganan las operaciones con ganancias entre lo que pierden las operaciones con pérdidas. Si la estrategia es rentable entonces por definición el ‘Profit Factor’ va a ser mayor que 1. Las estrategias que no son rentables producen factores de beneficio menores que uno. Un buen sistema tiene un profit factor de 2 o más. Lo bueno del ‘Profit Factor’ es que nos dice lo que vamos a ganar por cada dolar que perdemos. Un profit factor de 2.5 nos dice que por cada dolar que perdamos operando vamos a ganar 2.5.
- SHARPE: (Retorno sistema – Retorno sin riesgo) / Desviación de los retornos.
Cuando las variaciones de ganancias y pérdidas son muy altas, la desviación es muy elevada y eso conlleva un ratio de ‘Sharpe’ muy pobre. Si las operaciones están muy cerca de la media (poca desviación) el resultado es un ratio de ‘Sharpe’ bastante elevado. Si una estrategia tiene un ratio de ‘Sharpe’ mayor que 1 es una buena estrategia. Si tiene un ratio de ‘Sharpe’ mayor que 2, es excelente. Si tiene un ratio de ‘Sharpe’ menor que 1 entonces no sabemos si es buena o mala, hay que mirar otros parámetros.
- MATHEMATICAL EXPECTATION:(% operaciones ganadoras X ganancia media) + (% operaciones perdedoras X pérdida media).
Para ganar dinero con un sistema de Trading, no es necesario ganar todas las operaciones, lo verdaderamente importante es el resultado final de la operativa. Un sistema de Trading tiene que tener esperanza matemática positiva como es el caso de este script.
El juego de la ruleta, por ejemplo, tiene esperanza matemática negativa para el jugador, puede tener rachas positivas de ganancias, pero a la larga, si se sigue jugando se acabará perdiendo, y esto los casinos lo saben muy bien.
PARAMETROS
'BACKTEST DAYS': Número de días atrás de datos históricos para el calculo del Backtest.
'ENTRY TYPE': Para % EQUITY si tienes 10000$ de capital y seleccionas 7.5% tu entrada sería de 750$ sin apalancamiento. Si seleccionas CONTRACTS para el par BTCUSDT sería la cantidad en Bitcoins y si seleccionas CASH sería la cantidad en dólares.
'QUANTITY (LEVERAGE 1X)': La cantidad para una entrada con apalancamiento X! según el apartado anterior.
'MAXIMUM LEVERAGE': Es el máximo multiplicador permitido de la cantidad introducida en el apartado anterior según la condición de volumen.
Los settings son para Bitcoin en Binance Futures (BTC:USDTPERP) en 30 minutos.
Para otro pares y otras temporalidades se tienen que ajustar las opciones de nuevo. Además para dentro de un mes, los ajustes serán otros distintos ya que el mercado y la tendencia es cambiante.
Simple Tops/Bottoms, [JackT]A percentage (pyramid) script for BTC/USD, Daily.
Breakdown
The script is following one simple rule:
- Percentage orders based on volume
This is a pyramid setup based on volume but I am handling each order manually which makes it a custom pyramid strategy.
Instead of doing 100% portfolio sell/buy orders this script focuses on the momentum of volume and calculates a percentage of the portfolio that should be traded.
The percentage rises with the level of continuous orders with the same type. This means that if a second sell order is emitted before any buy order the percentage to sell is gradually increased to be higher than the previous sell order. And vise verca with buy orders.
The calculation is exponential rising but it also makes sure that the trade rarely reaches 100%. This enables the script to stay in the market on almost all opportunties given by the indicators.
How to use
The script is created from 3 indicators including Lucid SAR which helps to indicate the major trend.
It is possible to change the settings of the script in order to change the outcome. The settings is fitted to work with BTC/USD and the same settings works somewhat okay with ETH/USD aswell. Though I would recommend to fit the settings to work better with other pairs.
As mentioned, the script focuses on volume , which mean that it works better with major coins.
Enjoy the script and please let me know your thoughts!
//JackT
Rogue Profit StrategyThis is a complex script developed to measure specific volatility parameters and enter trades based on predetermined rules which are proprietary and will not be released, so don't ask for specific strategy settings.
The strategy keeps you in the market at all times either long or short. Parameters can be changed to better suit the asset your are trading, time frame and your particular trading style but the overall volatility rules for entering and exiting remain the same. It can be used to trade any asset but be aware the parameters you use for one asset, lets say Bitcoin, will not work with another asset like Forex. If the asset is on TradingView, you can use this indicator to trade it.
It is meant to trade pure price action candlesticks so do not use anything but a typical candlestick chart. You are going to have to put in some work and play around with the input parameters to make this strategy the most profitable for your trading style. Trading is hard but hopefully this strategy will help flatten the learning curve. This strategy is accompanied by an indicator study named "Rogue Profit Alert Indicator" that will work with setting alerts for manual or automated trading.
This strategy does NOT repaint.
This is a very powerful and profitable script that will simplify your trading and has been in development and tested for three years. Message for details on how to obtain access. Please allow up to 24 hours for a response.