MACD/RVSI/Stoch/RSI/EXP(Drawdown)I have been trying for several months to get a script to work on the 1min and this one gives some good backtest results. This script will also work on higher timeframes however, I've not extensively tested on higher timeframes. My aim was to get results on about 20 crypto coins then run the 1min bots in parallel looking for small frequent profits across all the coins. If you would like me to try and fit backtest results to any coin or pair on any timeframe please do get in touch anytime.
It's based on several indicators which are combined and then a newish way for the stop loss to implement based on an exponential rising which limits the time in each trade unless the price moves in the direction of the trade. The other useful feature is drawdown minimization which previously made all of my 1minute bot attempts non-practical due to differences between backtesting and actually running the bot(s) live.
Its possible at the top to paste in strategy comments which can be used through web-hooks for auto trading bots. Leaving these blank just defaults to the pre-programmed comments that provide some indication of why a trade was exited.
It is possible to select for Short and/or Long trades. Note however, that there are exponential markers on the charts for both long and short trades in any setting. I found that this way the bot worked well with regards to timing.
The next part of the user interface settings gets a bit tricky so try and use the sample parameters provided below. For example, select a crypto coin then try some of the options below until a reasonable backtest result in obtained (or select the best from the parameter groups tested) then move down the settings interface to optimise with the remaining settings.
So 'Use MACD/RVSI', 'RSI clause' and 'Use Stochastic' are set to true for the below sample settings (1min timeframe).
MACD/RVSI Confluence Resolution (1min, 2min, 5min, 10min, 1hour)
Timeframe RSI (1min, 2min, 3min, 15min, 1hour)
FastStoch, SlowStoch (1min, 45min: 5min, 30min: 1min, 1hour: 5min, 1hour)
Eg. for FTX:ETHPERP (MACD/RVSI Confluence Resolution=1hour, Timeframe RSI= 1min, FastStoch = 1min, SlowStoch = 45min)
Setting the timings is tricky - there is a lot going on. Have a look at the chart and select/deselect the options. The MACD/RVSI Confluence Resolution shows red and green vertical regions on the chart background. The Timeframe RSI colors the candle bodies red and green. These go green if the RSI crossed over 31% or red in the RSI crossed under 69%. The MACD/RVSI Confluence Resolution is explained in more detail in one of my other scripts. Then the Slow Stoch colors above and below the price action with red or green lines depending if on an uptrend or downtrend (approximately). Where there is also an up/down trend on the faster timeframe stoch there are vertical shaded fill regions between the slow stop above/below lines.
With all the above conditions selected to represent the data (looking at strategy backtest results whilst adjusting) there is a reasonable approximation to a credible trade.
So once an ok backtest result is obtained by selecting timing settings. Its ontot the Stop Ramp Settings. This is an exponential line which rises rapidly after a period of time thus exiting the trade or going upwards with the trade. It kind of limits the maximum time a trade will stay in position which forms part of the timing aspect of this bot. Look at the chart exponential red lines and adjust the settings, along with the backtest results to select a good timing.
Then its the Drawdown Catcher and the Take Profit Setting. Start with the drawdown catcher disabled i.e. set to zero. Put in a conservative Take Profit, for example if a Take Profit at 6% gives the best backtest results, go for 4% to account for differences between backtest results and actual live bot performance.
Then start to increase the Drawdown Catcher. This shades a lime region where the bot will not enter a trade. I found that with most trades using this bot, if the price action moved in the direction of the trade (long or short) at the onset - this gave most of the good results (high probability of positive trade). Also if a trade entered at the start price and when south, the accumilated drawdown from these failing trades made all previous 1min bot attempt non=profitable in practice (even with good backtest results). The exp timing and also this drawdown reduction strategies seem to be the thing which makes this approach credible.
Try to go for settings that give a very high change of positive trade. For example, an 85% profitable trades will probably provide say 55% positive trades in practice as its always highly possible to just fit the parameters to the exact position/trade timings - and in reality going forwards these don't play out the same. Also a Profit Factor of 2 is about the minimum I would accept - again this provides for example a Profit Factor of 1.2 in practive.
However all being said - I think its possible with this bot on the 1min across lots of coins - with regularly updating settings - to make profits. (Not financial advice)
Please do get in touch if you would like me to fit this bot to anytimeframe to any trade.
MoonFlag PhD
Moving Averages
[Sidders] LTFDIV - Strategy version (beta)Strategy version of my previously released LTF divergence scalper. Currently being beta tested prior to full release as a premium indicator.
Description of the indicator: The indicator uses several trades of divergences and overbought/oversold levels (which can be defined) of several indicators on the 1 minute timeframe. Long signals are only given if the overall trend is bullish (determined by either moving averages or the Ichimoku system). Short signals are only given if the overall trend is bearish (determined yet again by either the moving averages or the Ichimoku system).
The strategy contains several additional filters that can be applied to sharpen the strategy and improve overall winrate and profitability. Additionally it contains a multitude of different ways of setting your stoplosses and setting your profit targets. I've also included many other customization options, such as time zones, trading periods and even the possibility to base the entire strategy on Ichimoku (either classic or crypto settings) instead of moving averages. The sky is the limit with regards to customization.
Lastly, but still a major feature: I've included a way to automate the strategy through the use of 3Comma bots. This takes away the need to sit behind your pc and trade the strategy yourself and automates everything after you've set it up properly.
Access to the strategy is currently limited. A full release will follow in the coming week. If you're interested, send me a message and I can more details (e.g. pricing). Cheers!
Coinbase to Binance premium indicator/strategy
1) Offers bar/ma chart of premium
2) Offers different trading strats based on premium(ma cross, premium value cross, smoothed premium value cross)
supersmoother code credited to someone else from tradingview
Simple MACD strategy Simple macd strategy
Rules:
if MACD bullish crosses below 0 and above 200 EMA a buy signal is created
if MACD bearish crosses above 0 and below 200 EMA a sell signal is created
best settings for winrate and profit :
1. is taking 1:1 trades so with a tp of 2% and sl of 2% winrate is around 62%
Yusram Mount MaV - Day MaV CrossOver Strgty
This indicator shows the comparison between the 7-day fast simple average and the monthly slow average of 5 bars. The red line indicates the monthly green and blue lines the daily average. If the Green-Blue line crosses the red upwards, it is a buy signal and the opposite is a sell signal. As soon as it turns green blue without waiting for the sell signal, a sell signal is created. If you are trading fast, you can consider turning green to blue as an opportunity. In the long run, the red intersection can be interpreted as a Stop point.
I hope it will be useful to everyone.
You can also find the strategy indicator with the same name.
I got the name of this indicator from my daughter's name. The meaning of the name Yüsra means "convenience". I hope this indicator will help you.Yüsram Mount HO - Day HO
Khair - Day Trade StrategyBollinger band breakout with non-standard deviation along with profit targets
Best used when applied for intraday trading. Users can customize length and deviation and test what works best for them.
Trade both long and shorts, the user also has the option to limit to long-only or both.
This strategy only works intraday interval, so it means when you try to apply it to day/week/month it won't apply.
Technicals Rating Strategy v420Ichimoku, HMA, RSI, Stoch, CCI, MACD, Technicals Rating Strategy is a trading Bot that looks at these chosen indicators and assigns a value to each, then calculates the result of adding each indicators result value to a overall rating, which is then compared to a user set level. Here seen on Bitcoin, it has the broker fee included in the testing result. If you choose to use it on Forex etc, perhaps remove the broker fee which is unrealistic for FX trading.
It has a Win/Loss ratio of only 40% wins, but it catches the big moves and thats the main thing, so if ELON MUSK had of used this strategy instead of BUY and HOLD, he could of made 700% instead of 7% (as is, may, 2021)
Mainly intended for use as Automated TRADE BOT.
(imagine if Elon Musk did use this bot with his 1.3 billion $ worth of BTC, the drawdown would be like, half a billion or something haha (p.s.- use smaller lotsize % to get smaller drawdown, but then smaller profit....) )
For use with any pair and timeframe. In fact there is a timeframe setting to set the strategy to look at alternative timeframe from chart, but as default will just be set to charts timeframe.
Better BollingersThe Bollinger Band strategy is a powerful and effective tool for automated trading in high volatility markets. The trouble is that, by itself, it is not very profitable. We need a way to know if the volatility we're seeing is part of a larger trend in the direction we want to trade in. Doing this, we can avoid entering long trades during a macro downtrending market meaning we can use tighter stop losses and open trades with more confidence than if we didn't have an idea of the larger market trend.
This script is ideal for, and geared towards, users of the 3commas automated trading platform. It behaves similarly to the familiar TA Presets BB-20- family of strategies but includes other indicators to help weed out some of the noise in a highly volatile market. Additionally, users who are not on Binance.com, but using 3commas for trading, now have access to signals comparable to those provided by the builtin signals for Binance.com.
Fibonacci EMA averages (21, 34, 55, 89, 144)Just a simple script that plots the following EMA averages that are based on the fibonacci sequence: 21, 34, 55, 89, 144
Crypto momentum strategyThis strategy is based on LazyBear's Squeeze Momentum indicator. It analyzes when the trend in the momentum is shifting, locating the peaks and the valleys, and takes those as sell and buy signals respectively. This is a long strategy, so it also takes into consideration the 50 period Exponential Moving Average to identify upward trends. If the closing price of the candle is above the 50EMA, and the slope of the 50EMA is trending upwards, then the buy signal is executed. If these conditions are not met, the buy signal is ignored.
This strategy works well with crypto trading on the day/week charts.
It has a profit ratio of 4:1 on average, and roughly half of the trades are profitable.
Qullamaggie BreakoutThe intent of this strategy is to buy breakouts with a tight stop on smaller timeframes in the direction of the longer term trend. Default longer term trend is the daily, but the user can choose any timeframe to use for the SMAs (which act as filters and trailing stops).
Exit the trade using a trailing stop of a close below either the 10 MA or 20 MA (user choice) on that larger timeframe as the position moves in your favor (i.e. whenever position price rises above the MA). This is one area where this script could use a little work or some human intervention - when the trade is entered right in the vicinity of the moving averages, you get some whipsaw. Not sure how to avoid that at this point though if you want to look at those longer term moving averages as your exit criteria.
Option of using daily ATR as a measure of finding contracting ranges and ensuring a decent risk/reward. (If the difference between the breakout point and your stop level is below a certain % of ATR, it could possibly find those consolidating periods.)
EMA_cumulativeVolume_crossover[Strategy V2]This is variation of EMA_cumulativeVolume_crossover strategy.
instead of cumulative volume crossover, I have added the EMA to cumulative volume of same EMA length.
when EMA crossover EMACumulativeVolume , BUY
when already in LONG position and price crossing over EMACumulativeVolume*2 (orange line in the chart) , Add more
Partial Exit , when RSI 5 crossdown 90
Close All when EMA cross down EMACumulativeVolume
Note
Black Line on the chart is the historical value of EMACumulativeVolume . when EMA area is green and price touch this line closes above it , you can consider consider BUY
I have tested it on SPY , QQQ and UDOW on hourly chart.
EMA setting 25 is working for all of these.
but SPY produces better results on EMA 35 setting
warning
This strategy is published educational purposes only.
SignalCAVE Strategy BuilderYou can create strategies without writing single line of Pine Script code!
Do backtesting, set alerts and explore algorithmic trading with using SignalCAVE Strategy Builder on TradingView.
SignalCAVE Strategy Builder for TradingView
SignalCAVE is a tool that help you to create strategies in TradingView. SignalCAVE offers flexible strategy builder panel enabling users to backtest and set alerts with custom conditions (selected indicators and parameters).
CAPABILITIES
You can define rules and conditions for “Long” and “Short” signals.
“Stop Loss” or “Take Profit” functions can be activated with providing percentage values.
“Only Long”, “Only Short” or both “Long and Short” signals can be used at the same time.
Available Indicators
EMA, SMA, WMA, HMA, RSI, MACD, Stochastic, Bollinger Bands, SuperTrend, Parabolic SAR, DMI, ATR, CCI, CMF, ROC, Ichimoku, OHLC Prices
How to Set Strategy Rules?
On SignalCAVE strategy settings screen, there are four types of input groups. You can populate these input boxes based on your strategy.
A: First indicator’s parameter and index value selection area
First Input: First indicator selection.
Second Input: First indicator’s parameter selection. If you want to use default parameters, select “Default Parameters”. If you want to use custom parameters, select “Custom Parameters”. If your selection was custom, then you need to fill “P:A” input boxes to assign your custom parameter.
Third Input: First indicator’s index selection. Default parameter is “0”, If you want to get previous value of indicator/price, you can type positive numbers.
?: Condition and Interval selection area.
You can select “Upper (>), Lower (<), Upper or Equal (>=), Lower or Equal (<=), CrossOver (⬆), CrossUnder (⬇)” conditions and time frame interval for calculation both first (A:) and second (B:) indicator.
B: Second indicator’s parameter and index value selection area
First Input: Second indicator selection.
Second Input: Second indicator’s parameter selection. You may use either default parameters, or custom parameters. If your selection was custom, then you need to fill “P:B” input boxes to assign your custom parameter.
Third Input: Second indicator’s index selection. Default parameter is “0”, If you want to get previous values of indicator/price, you can type positive numbers.
P:A First indicator’s custom parameter settings. If selected indicator has less then four parameters, you can fill unnecessary fields with “0” value.
P:B Second indicator’s custom parameter settings. If selected indicator has less then four parameters, you can fill unnecessary fields with “0” value.
DASHBOARD
After you build the strategy with SignalCAVE, you can see rules and conditions on dashboard with chart view screen.
Hint: By adding multiple times of SignalCAVE strategy on your chart screen, you can build more then one strategy.
STRATEGY TESTER / BACKTEST RESULTS
You can see strategy backtest results from “Strategy Tester” panel.
By changing parameters or strategy rules (strategy optimization), you may get better results. These results does not guarantee a success for future trades.
ALERT SETTINGS
If you want to get notify about your strategy outputs (Long Entry, Long Exit, Short Entry, Short Exit, Stop, Take Profit) you can set an “Alert”.
You can click “Alert” button to create a new alert. Make sure on “Conditions” selection must be “SignalCAVE” strategy.
Paste to “Message” field exactly the text below.
{{strategy.order.alert_message}}
Hint: By setting a single alarm, you can get notifications for all outputs.
Do your alerts modifies when you change the strategy conditions or parameters?
While the strategy got updated, its alerts still use the strategy’s state from the time when we made the alert (TradingView Wiki, 2018b).
This has the advantage that, once we made a script alert, we can change the script’s input options, change chart settings, or remove the script from to the chart. All of that won’t affect our existing alert. That gives a lot of flexibility to keep interacting with the chart and script.
But there’s also a disadvantage: if we do want our script’s alerts to change, we first need to remove the existing alerts. Then we have to create and configure new alerts based on the indicator’s updated code or settings.
GANN_EMA_VWAP_BY_THEHOUSEOFTRADERSGANN LEVELS + VWAP + 3 EMA= 50,100 & 200
GANN LEVELS = Eg. 10.25 = BLUE, 10.50 = PINK, 10.75 = BLUE, 11 = RED (VIP LEVEL)
MA Cross + Strategy by RealmixTwo Moving Average with crossmarker and strategy when both indicators are crossing for a possible position
FCMS - Time in x Timing - The Market - StudyTime in x Timing - The Market
█ DISCLAIMER
THIS IS NOT AN INVESTMENT ADVICE
The use of strategy functions doesn't compile recurring investments/contributions as used in this study, so disregard the results of the strategy tester.
As seen in the style/plots lists, I calculate the results in internal variables to analyze historical results.
prnt.sc
Anyway, this is only a historical study and past performance is no guarantee of future results
█ CONCEPTS
There is a discussion about Timing x Time in the market.
The point of this discussion is between buying in the better moment, against exposing yourself to the market as soon as possible.
Anyone who argues that the most important factor is the time exposed to the asset, no matter when, is usually based on the SP500 asset.
As shown in the image above, a hypothetical investor who made a single investment of US $ 1500.00 in December 1999, was trapped by a volatility of approximately 10% in the period, followed by a loss of around 50% in the following years. In December 2012, this investment was finally positive, and after 20 years it accumulated a gain of 180% - without reducing inflation in the period.
█ Timing the news
When an asset reaches a new historic high, the idea of "time in the market is the best strategy" gains momentum, after all, at this "moment" everyone previously exposed to the asset is making a profit, regardless of inflation or any benchmark.
█ Time in the market
Considering using this strategy, we can define 3 points for a brief analysis:
1. Asset
SPX is used as a reference for this type of statement due to the difficulty of finding another one with such consistency, liquidity, ease of access and time of history.
2. Long Term
We cannot consider it a long term strategy, as it never has a predetermined term
3. Recurring contributions.
To generate an average cost spread over periods of high and low, opening the possibility to realize positions with profit in eventual needs.
As shown in the image below, if this hypothetical investor made monthly contributions since the date of the first contributions, he would have the possibility of making profits between the period from October 2004 to September 2008, returning to the loss until October 2010, and then with a profit of 100% over the total amount invested.
Below, an example of an asset in a downtrend with the final balance returning below the total volume invested.
█ First Conclusion
> Recurring contributions (3) to an asset (1) during a downtrend will increase the loss for an indefinite period (2).
> Recurring contributions (3) to an asset (1) during an uptrend are more important than immediate exposure to the asset, regardless of the term (2).
> Recurring contributions (3) in an asset (1) in a region of possible long-term top (2), will negatively affect profitability even considering the resumption of the upward trend in an indefinite period.
█ Timing the market
As shown in the image below, following the strategy above: a single contribution in the amount of US$ 1000.00 at the worst moment (Dec / 2017), the hypothetical investor would have hold a loss of over 80%. At the moment it accumulates 89% of profit, having reached the maximum of 200% at the beginning of the year.
By making monthly contributions since the date of the first contribution, this investor would have the possibility to make profits from May 2019, accumulating 335% profit at the moment.
Adding the condition of buying the maximum cost of 10% above the average price of the last 200 days, the final result is little affected, and reduces losses in the initial investment period.
Adding the condition of taking profit of 50% of the position when the price is above the average of the last 200 days, and reinvesting 50% of the cash obtained in the next purchase opportunity (paying a maximum of 10% above the average of the last 200 days), the profit cumulative final price drops to 270%, but the realized profit already exceeds the total amount invested, which eliminates future risk of the operation. (favorable risk-return ratio)
Adding the condition to reinvest 50% of the cash flow, with the condition to buy when the price is below 20% away from the average of the last 200 days, the final result would be more than 400% of retained earnings, and realized profit in cash greater than the total amount invested.
█ Other Assets
It's possible to analyze other assets, including dividend yield and earnings for the equity formula. This way we can analyse assets more fairly.
ITSA4
BOVA11
█ Final Conclusion
> Exposing yourself early to a good opportunity may be good, but the risk of doing so at the wrong time could delay your projects indefinitely.
> Investment recurrence is the main driver for your future results.
> Setting a maximum value for making entries reduces short-term fluctuation but, in the long run, the effect is almost imperceptible.
> The realization of profits at favorable times considerably reduces the risk and volatility of the balance, in addition to providing cash for better opportunities in the short and medium term.
> Taking advantage of part of this cash flow for purchases in moments of opportunity, enhances future earnings.
Even an extremely simple strategy like the one used in the examples above, offers a better risk return for the investor compared to the immediate exposure to an asset.
Thus arises the desire to study more sophisticated strategies, as we will see in the future
█ Challenges
Time in the market
- Find good assets (1) to make recurring contributions (3) for an indeterminate period (2).
Timing the market
- Reading the markets to position yourself in favor of the more probable trends at certain times with predetermined terms.
MACD Trendprediction Strategy V1A trend following indicator based on the MACD and EMA. In this case, signals are not generated by crossing the signal lines as with the MACD, but as soon as the distance between the signal lines increases or decreases. A profit factor of 1.6-3.5 is achieved.
Ein Trendfolge-Indikator, auf der Basis des MACD und EMA. Dabei werden Signale nicht wie bei dem MACD per Kreuzung der Signallinien generiert, sondern sobald ein der Abstand der Signallinien zu oder abnimmt.
CMF Velocity with 200EMA StrategyThis is a demonstration of my new Indicator - CMF Velocity - in a profitable trading strategy. It is able to take shorts when the close is less than the 200 EMA, and longs when the close is greater than the 200 EMA.
RatingsThis strategy script is a modified version of the built-in 'Technical Ratings' strategy script.
English:
www.tradingview.com
Russian:
www.tradingview.com
Changes:
1) Added option to disable long and short positions (checkboxes 'Long' and 'Short').
2) Added date selection option.
3) The default commission is 0.1% (original 0%).
4) 100% of capital is used by default (5% in the original version).
Freelancer30169656This indicator is make for educational purpose.
This Indicator actually try to identify a price action. It uses 30 W moving average for Trend analysis.
The moment it crosses above the 30 W moving average,
up trend starts. But the start should be Good. The moment it crosses 30 W moving average ,
that particular candle should have high volume than average and
the RSI should be also above or equal to 50.
The preferred Time frame is to be used is Weekly.
1-> When price crosses above 30 weeks moving average,
2-> the volume should be Three times the 50 volume average.
3-> The RSI (14) should be above 50.
In this indicator neither plots moving average nor volume average nor RSI. It only plots a single Green arrow below the that
satisfy all 3 conditions.
That green arrow indicates BUY signal.
No exit criteria is defined here.
Simple MACD + 200EMA StrategyThis script is based on classic MACD / 200EMA strategy.
It takes a Long trade when MACD line crossup Signal line, when both below Zero line, and Close price above 200 EMA.
It takes a Short trade when MACD line crossdown Signal line, when both above Zero line, and Close price below 200 EMA
It seems to have decent results with 1:1.5 Risk/Reward, with 30min TF (on cryptocurrency market)
It has a number of 1 per day on average.
FEATURES
ORDERS
You can have both Long and Short, or disable one.
STOPLOSS
Stoploss is based on last swing (high or low). You can adjust the lookback period of the swing.
TAKE PROFIT
For now, there is 2 possibilities for TP :
Using adjustable Risk/Reward ratio (Trailing Stoploss need to be at 0)
Using adjustable Trailing Stoploss percentage (RR Ratio need to be at 0)
Results below are with this parameters :
Start date 01/01/2021
1:1.5 RR ratio
100USD Initial capital
100USD Order Size
0.01% Commission fees.
KSR Strategyself input Moving Average crossover with trend indicator which eliminates most of false signal
DEMA/EMA & VOL (Short strategy)Hello,
I am trying to build a short momentum strategy that is based off of the DEMA crossing under the EMA, but because many momentum strategies send too many signals, I have also implemented a volatility condition based on the average true range percentage (ATRP). Essentially, as momentum moves downwards + volatility (ATRP) moves upwards, it shorts the security. However, I am having an issue with exiting trades. I think this would be a great strategy if I could simply get the strategy to exit the trades. Does anyone mind looking through the source code and tell me what I might be doing wrong? In return, I would hope that this strategy could be useful to you in same way! Thank you for looking!