Combo Backtest 123 Reversal & Modified Price-Volume Trend 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
The related article is copyrighted material from
Stocks & Commodities.
WARNING:
- For purpose educate only
- This script to change bars colors.
M-oscillator
Combo Backtest 123 Reversal & MASS Index 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
The Mass Index was designed to identify trend reversals by measuring
the narrowing and widening of the range between the high and low prices.
As this range widens, the Mass Index increases; as the range narrows
the Mass Index decreases.
The Mass Index was developed by Donald Dorsey.
WARNING:
- For purpose educate only
- This script to change bars colors.
Jim's MACDMACD Buy/Sell Strategy
Filters bearish crossovers above the 0 line and bullish crossovers below.
Uses 34 ema to further filter the trades and take only longs above and only shorts below.
Apply at least 2:1 risk to reward ratio to account for losing trades.
Trade at own risk!
RSI Classic Strategy (by Coinrule)One of the questions hobbyist traders more often ask is: what is the perfect trading indicator?
Every indicator is just a tool, so its efficiency is proportional to your ability to read its signals and translate them into an actionable trading strategy. The RSI is likely the most flexible and easy to use among the technical indicators.
This trading strategy tries to catch short-term swings on the coins of your choice with a simple yet profitable setup.
Buy when the RSI is lower than 30 (you can adjust it to 35 in times of steep uptrend).
Sell when the RSI is greater than 65 (the target may range between 60 and 75 depending on the volatility of the coin).
Note that the buy signal comes when the indicator crosses below 30 and not when it crosses above 30 as it happens on the built-in RSI strategy on Tradingview.
The present script overperforms the built-in strategy, even adding trading fees and using a lower amount of capital for each trade (30%). That means that the system can deliver higher net-profits with lower risk levels.
A typical example of market conditions where this strategy works perfectly is as follows.
The first initial breakout indicates that a new leg up in the trend may start. Bitcoin starts to trade within a range which you can identify when it reaches the point 3. That is the perfect time to start the rule because
- trading within a channel anticipates possible swings up and down
- the trend is on the upside, providing low downside risk in buying the dips.
This strategy works well with selected coins of your choice, and it's a great fit on leverage exchanges like Binance Futures.
If you prefer to run it across all available coins on the market, instead, you may choose an optimized version.
ATH Oscillator StrategyThis idea stems from the belief that people want to reverse the trend when an all time high or low is hit. This strategy incorporates that by using ath and atl values based on the lookback period and the signal gets smoothed by the input smoothing type and length. I found that the best time to use this was on the 3m chart. But I am certain that higher time frames can be used if the settings are tweaked.
Settings:
Strategy -
simple(long,short,switch) - This strategy just uses the directional change of the signal using just longs, just short, or switching between the two.
range - This strategy uses the hlines on the chart to determine when to buy and sell. These can be adjusted using the Range Top / Bot values
div - This strategy uses a simple divergence of the signal line to time entries
Lookback - How many bars back to check the ath and atl
Smoothing - How smooth you want the signal
Smoothing Type - Different ways to smooth the signal
Range Top/Bot - Changes the height of the hlines for the range strategies
On Buy/Sell Signal # - Change when you enter. Increasing this number will move the signals to the left if there are consecutive signals. Useful to find bottoms and tops.
Chart: ETHUSD Perp Bybit
Strategy Properties: 100 base order, 100% equity
Notes: Use on 3-5m time frame for best results. Change settings if you want to try other coins like BTC or higher time frames
Combo Backtest 123 Reversal & Martin Pring's Special K 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
Pring's Special K is a cyclical indicator created by Martin Pring.
His method combines short-term, intermediate and long-term velocity
into one complete series. Useful tool for Long Term Investors
Modified for any source.
WARNING:
- For purpose educate only
- This script to change bars colors.
US30-DinhChienFX Swing [2 orders]Keltner basis: 20 | trend identification: Keltner Upper/Lower 2 | entry: Stochastic breakout k cross d | Stoploss: 2, Profit: 2 |
The strategy finds the rule in 4 years, every year, every quarter. The ratio of risk/reward 1/1 to give the success percentage over 55%.
Makes a second order has a better ratio. US30''s risk/reward: 1/1.86.
Look the right label: that rule has 14 times consecutive wins and 6 times consecutive losses in history.
-----------
+ A Long trend is when the price close & crossover the Keltner Upper 2 + k value of Stochastic indicator crossover 80.
+ A Short trend is when the price close & crossunder the Keltner Lower 2 + k value of Stochastic indicator crossunder 20.
+ to Entry when k value ( Stoch indicator) make correction and cross the d value ( Stoch indicator)
- Buy: d > 70
- Sell: d < 17
*** Use the link below to obtain access to this indicator
Buy and Hold entry finder StrategyHello everyone!
I proudly present the backtest Strategy Script for my "Buy and Hold entry finder" Script.
It basically shows you the outcome, if you would use my indicator in the past.
The buy signals are limited to 1 order per month.
Order Size: Allows you to choose, how much money you want to invest per month. (Please consider, it will only invest an x amount per Order, but it will not stack the amount you did not invest in an previous month ) (Example in my indicator)
Pyramiding: Just regulates, how often you can open an position.
Commission: Here you can set how much it will cost to open an position at your broker.
I coded a feature that allows you to set a Start Date and an End Date for your backtest. In the end of the backtest the script closes all positions.
If you got any question, feel free to ask in the comments or send me a message.
Sincerely, RS Titan.
Super Trend 2 MACD pk singhalYou can automate complete strategies, and not just indicators using the TradingView free version. That’s right! explore 1000s of strategies from public library using free Tradingview and free APIBridge (paper trading). We will demonstrate this using SuperTrend strategy (not SuperTrend indicator).
MRM [VK] V4.0 strategyMRM VK strategy
This strategy uses MA, RSI , MACD combined.
MACD and RSI can be used multi time frame to filter trend.
It is a very simple strategy which goes long/short when MACD , RSI and MA Trend Changes in higher Time Frame.
RSI-VWAP Indicator %█ OVERALL
Simple and effective script that, as you already know, uses vwap as source of the rsi, and with good results as long as the market has no long-term downtrend.
RsiVwap = rsi (vwap (close), Length)
The default settings are for BTC in a 30 minute time frame. For other pairs and time frames you just have to play with the settings.
█ FEATURES
• The option to start trading from a certain date has been added.
• To make the profit more progressive, a percentage of your equity is used for entries and a percentage of your position is used for closings.
• The option to trade in Spot mode has been added, since, for the TradingView backtest, the money is infinite and if you do not limit it somehow,
it would offer you much better profits than the live trading.
QuantityOnLong = Spot ? (EquityPercent / 100) * ((strategy.equity / close) - strategy.position_size) : (EquityPercent / 100) * (strategy.equity / close)
• The option to stop the system when the drawdown exceeds the fixed limit has been added.
Drawdown, as you already know, is a very important measure of risk in trading systems.
The maximum drawdown will tell us what the maximum loss of a trading system has been during a period. This maximum loss is determined by:
strategy.risk.max_drawdown(Risk, strategy.percent_of_equity)
• Leverage plotted on labels added.
█ ALERTS
To enjoy the benefits of automatic trading, TradingView alerts can be used as direct buy-sell orders on spot, or long-close orders with leverage.
Currently there are Chrome extensions that act as a bridge between TradingView and your Exchange or Broker.
This is an example of syntax for this type of extensions. Copy and paste a message like this into the alert window:
{{strategy.order.action}} @ {{strategy.order.price}} | e = {{exchange}} a = account s = {{ticker}} b = {{strategy.order.action}} {{strategy.order.alert_message}}
█ NOTE
Certain Risks of Live Algorithmic Trading You Should Know:
• Backtesting cannot assure actual results.
• The relevant market might fail or behave unexpectedly.
• Your broker may experience failures in its infrastructure, fail to execute your orders in a correct or timely fashion or reject your orders.
• The system you use for generating trading orders, communicating those orders to your broker, and receiving queries and trading results from your broker may fail.
• Time lag at various point in live trading might cause unexpected behavior.
• The systems of third parties in addition to those of the provider from which we obtain various services, your broker, and the applicable securities market may fail or malfunction.
█ THANKS
Thanks to TradingView, its Pine code, its community and especially those Pine wizards who post their ideas that helps us to learn.
If the world is heading toward a equitable new world economic order, let's get rich first ...
Happy trading!
Oscillator Evaluator (Analysis tool)Oscillator Evaluator (Analysis tool)
The oscillator evaluator is a tool that will help you analyse and compare the oscillator of your choice to another 2 oscillators.
By selecting the strategy with which you will analyze the oscillators, you will be able to see the behaviour of the oscillators in different aspects.
First there is a moving average increase or decrease strategy, that will give you a good idea of the correlation of the oscillator with the price.
The second is a commom 2 MA crossover strategy, that will give you and idea of the validaty of that oscillator as a strategy or as a trend filter.
The third strategy is a cross over 0 signal, that will go long on a crossover of 0 and short on a crossunder 0. This helps you see how good is the oscillator at evaluating suport and resistance areas and give you an idea of its balance.
The forth strategy is a Buy/Sell on extremes of the oscillator and will let you know how good is your strategy at spotting good places to buy and sell.
The fith strategy is to evaluate how goood the oscillator is as a mean reversion filter or how good it is at spotting small price changes.
The sixth strategy is similar to the last but is focused on how good is the oscillator spotting good places to take profits on trending strategies.
The 6 strategies in the script produce signals from the oscillator and from the oscillator only.
In conclusion this tool can be used to measure your oscillator and see if it really is as good as you think in comparison to others.
This script is not intended to be used as a full strategy but as a tool.
MA Divergences StrategyThis is the Strategy version of the Study I published. It is a Moving Average that can be applied to any plot to plot divergences on any oscillator, as well as perform backtesting. You'll need a REALLY good oscillator to perform live trades using this alone, but I think it is a valuable tool and had the Strategy hanging around and for some reason didn't upload it yet.
So here it is.
Turn Length to 1 to follow the oscillator without lag. Turn Length up if you are getting too many false signals or tweak the original oscillator settings.
Denario momentum strategy Momentum strategy based on early trend detection indicator. It oscillates in the range . Negative values correspond to downtrend, positive to uptrend.
Values closer to 0 correspond to noise. You can set threshold values for long/short entry and exit.
But like any other momentum indicator use it along with extra filters to confirm entry and exit.
Super Momentum StrategyThis is a strategy utilizing multiple of Evergets RMI (thanks to him for permission to publish) and a Chance Momentum.
It buys when 4 of the RMIs are below their thresholds and sells when they are above. There is a 5th one I added last night that works in Reverse - buy when its above and sell when below, which should work better for pyramiding strats by using it at the right rate to set the overall trend.
Very basic sample below, I could have set it up better as my example but just want to publish.
Combo Backtest 123 Reversal & Market Facilitation Index 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
The Market Facilitation Index is an indicator that relates price range to
volume and measures the efficency of price movement. Use the indicator to
determine if the market is trending. If the Market Facilitation Index increased,
then the market is facilitating trade and is more efficient, implying that the
market is trending. If the Market Facilitation Index decreased, then the market
is becoming less efficient, which may indicate a trading range is developing that
may be a trend reversal.
WARNING:
- For purpose educate only
- This script to change bars colors.
RMI + Triple HMRSI + Double EVWRSI + TERSI + CMO StrategyThis is a strange experimental strategy WIP that I decided to upload an early version to share some of what I am working on. Just one script of a few.
It combines Chande Momentum with RMI and some weird ones I am experimenting with - Triple Hull MA RSI, Double Exponential + Volume Weighted RSI, Triple Exponential RSI. And to top it off, a final oscillator that combines the THMRSI with the RMI.
The main intention here, currently, is to test the usefulness of each on different timeframes and values. Currently it is considered to buy when all are below their threshold and sell when all are above, with the chande momentum crossing its line as the final confirmation.
For now there is no individual for each of the unique elements included. I am going to likely use this is a working house project to test other experimental indicators in the future.
It may be some of these are better suited for long term but I do think they have valid uses in checking short and long term momentum at the very least.
I copied the RMI from Everget.
[DS]Entry_Exit_TRADE.V01-StrategyThe proposal of this script is to show the possible trading points of BUY and SELL based on the 15-minute chart of the Nasdaq Future Index. The start point of the strategy was schedule for 2021/01/01 and until the time of this publication (2021/01/31), for 1 index contract the results presented area a Gross Profit of 2.97% with a Net Profit of 1.35%.
█ FEATURES
The indicator shows on the graph the position of the MACD and TSI indicators that are the places of strength among Buyers and Sellers.
It's possible to observe a sharp fall or rise in the price of these positions.
On the current candle, a label is displayed containing the value of the William %R Mod indicator, which will display the OverBought position (dark red) and OverSold position (dark green). The other colors like light red and green are the regions where the price makes the decision of which direction to go.
There are also other indicators:
a) The positions of the BUY (light green) and SELL areas (light red);
b) The label with the position of BUY (dark green) and SELL (dark red) with the line that connects these points;
c) DEMA 72 (orange);
d) EmaOchl4 in the color green for BULL and red for BEAR market;
e) Pivots high and low
f) Maximum (purple light) and minimum areas (blue light)
█ FUNCTIONS AND SETTINGS
The indicator uses the following functions:
(1) DEMA - Double Exponential Moving Average (08,17,34, 72)
(2) ema () - Exponential Moving Averge (72, ohlc4)
(3) plot()
(4) barcolor()
(5) cross()
(6) pivots ()
(7) William R% Md (OverBought = -7, OverSold=-93)
(8) Maximum and Minimum Value
(9) fill()
(10) macd () - Moving Average Convergence Divergence (Fast Lengt=12, Slow Length=26, Source=close, Signal Smoothing=9)
(11) tsi() - Trading Strenght Indicator==> Índice de Força Real ( IFR ) (Long Length=72, Short Length=17, Signal Length=17)
(12) Buy and Sell TRADE Points
█ PERFORMANCE AND ERRORS
The positions of BUY and SELL points are defined through the crossing of the Dema 34 candles with the Ema Ohcl4. As it is an indicator, it can present different positions from de market direction. Thus there is a need to observe the direction of the market in order to verify whether the indicate decision is really acceptable. The decision to BUY or SELL an asset must be well studied to avoid financial losses. The indicator will only help you in this decision, is your responsibility the decision of entering or leaving an asset.
█ THANKS TO
PineCoders for all they do, all the tools and help they provide, and their involvement in making a better community. All the PineCoders, Pine Pros, and Pine Wizards, people who share their work and knowledge for the sake of it and helping others, I'm very happy and grate full indeed.
█ NOTE
If you have any suggestions for improving the script or need help using it, please send a message in the comments
I SAHAM AK BUY LOW ____ Multi TimeFrame OversoldThis strategy is built to confirm the profitability of buying oversold using RSI indicator.
Buy & Sell point will appear on price chart.
Entry Point : RSI3, RSI10, AND RSI14 below 26.
Cut Loss : Entry Price - 5%.
Take Profit : Entry Price + 10%.
5 entries allowed in same direction eventhough open trade not yet closed. In layman words, you keep buying new low closing price for 5 times.
Commission fee fixed at 0.08%.
Decent fundamental counter is preferable.
Even at win rate of 50%, it is profitable due to Risk Reward Ratio of 1 to 2.
MACD controlled risk strategy exampleUsing a basic MACD as a signal this code is an example of how to base strategies around stops and calculated risk per trade rather than the more common approach of 'equity flipping' long and short for every trade and using an arbitrary %age stop which can leave you a bit exposed, lead to excessive drawdown and miss out on bigger sized positions for more profits.
Self-Optimising MACD (Experimental)Hi guys, just thought I'd share a small part of an idea i've been working on.
One of the biggest problems with algo trading is optimisation and finding a way to constantly adapt to the market conditions as time unfolds.
First of all... You should NEVER EVER trade just using a MACD, including this study, and I only produced this script in a small amount of time, so make sure you backtest it properly before using it. When backtesting, it is my advice that your sample size should be at least 5000 trades, but I recommend 10000 in order to get sufficient statistical significance.
Also, I am not a financial advisor, and any trading based decisions are your sole responsibility.
Anyways...
This script is simple... it simply uses 4 different MACD's and tracks their profit/loss and automatically uses the one with the most historical profit at any given time to execute a trade. The type of MACD will obviously change as market states fluctuate.
Included are : Hull MACD, Ema MACD, Sma MACD and VWMA Macd.
You can adjust all four of their settings to your desire.
The trade execution is simple and definitely flawed... it simply tracks the MACD when it has a crossover for long, and then the opposite for short.
The green line represents the performance of the top MACD for Longs at any given time. This line refreshes once a year, and where it is in relation to price, reflects how profitable it has been I.e - the higher it is the better.
The Red line represents the performance on the Short side, and again, it reflects profit/loss, but this time the LOWER the line is in relation to price the better.
There is no exit strategy in place! This is why I do NOT recommend trading off this script alone, but to use it as a tool to help optimise your choice of MACD.
However, your exit strategy could change your optimal choice of MACD, so keep that in mind.
The lookback period represents how far the script will track the performance at any given time. This will change your results. The longer the period, the more it will show long term success and vice versa.
This optimisation process could be done with different indicators, moving averages, or even multiple strategies to find the most statistically viable option at any given time... if you wish to have this process coded into your strategies or indicators, message me.
Enjoy.