MTF Supertrend [Trading Nerd]Trend Trading Strategy using Supertrends
Backtesting Script that uses a multitimeframeanalysis of the Supertrend Indicator. The trend direction is determind by a higher Timeframe (TF) Supertrend. The entry Signals are given by the Supertrend of the current TF. The script is NOT repainting (the script takes the previous value of the higher TF Supertrend, if the higher TF candle is not confirmed yet).
Strategy Conditions
Longs:
The higher TF Supertrend has to be green
The current TF Supertrend change from red to green
Shorts:
The higher TF Supertrend has to be red
The current TF Supertrend change from green to red
Optional:
Option: If enabled also a trend chage of the higher TF Supertrend is a valid Entry Signal
If enabled Signals are discarded if the ADX is below the value
Take Profit
On default there is no Take Profit. You can activate a Risk Reward Based Take Profit target trough the option. Also a Partial Take Profit is possible.
Stop Loss
The default Stop Loss Strategy is a Trailing Stoploss. As trailing Price the current TF Supertrend is used.
Additional
Time Filter: Only opens trade in the defined Session. Open trades are still being closed outside of the Session.
Start Date/End Date: Limits the backtest for the defined Date Range
Trading Days: Only open Trades on the checked Days
Risk % per Trade: If enabled the Strategy uses X% of the capital (defined in Settings -> Properties -> Initial Capital)
Use Compound Interest: If enabled Capital is recalculated for every trade (initial capital + net Profit)
IMPORTANT: For low Timeframes and Markets with tight SL (like Forex) it requires a lower Margin Percent than default. Go to Settings->Properties and lower the required Long/Short Margin. Otherwise Trades might not be considered because of too less capital/marign. Margins can e.g. set to: 2% (Forex), 10% (Stocks), 20% (Crypto).
Cari dalam skrip untuk "the script"
Ichimoku Cloud with ADX (By Coinrule)The Ichimoku Cloud is a collection of technical indicators that show support and resistance levels, as well as momentum and trend direction. It does this by taking multiple averages and plotting them on a chart. It also uses these figures to compute a “cloud” that attempts to forecast where the price may find support or resistance in the future.
The Ichimoku Cloud was developed by Goichi Hosoda, a Japanese journalist, and published in the late 1960s. It provides more data points than the standard candlestick chart. While it seems complicated at first glance, those familiar with how to read the charts often find it easy to understand with well-defined trading signals.
The Ichimoku Cloud is composed of five lines or calculations, two of which comprise a cloud where the difference between the two lines is shaded in.
The lines include a nine-period average, a 26-period average, an average of those two averages, a 52-period average, and a lagging closing price line.
The cloud is a key part of the indicator. When the price is below the cloud, the trend is down. When the price is above the cloud, the trend is up.
The above trend signals are strengthened if the cloud is moving in the same direction as the price. For example, during an uptrend, the top of the cloud is moving up, or during a downtrend, the bottom of the cloud is moving down.
DMI is simple to interpret. When +DI > - DI, it means the price is trending up. On the other hand, when -DI > +DI , the trend is weak or moving on the downside. The ADX does not give an indication about the direction but about the strength of the trend.
Typically values of ADX above 25 mean that the trend is steeply moving up or down, based on the -DI and +D positioning. This script aims to capture swings in the DMI, and thus, in the trend of the asset, using a contrarian approach.
Trading on high values of ADX , the strategy tries to spot extremely oversold and overbought conditions. Values of ADX above 45 may suggest that the trend has overextended and is may be about to reverse.
This strategy combines the Ichimoku Cloud with the ADX indicator to better enter trades.
Long/Short orders are placed when these basic signals are triggered.
Long Position:
Tenkan-Sen is above the Kijun-Sen
Chikou-Span is above the close of 26 bars ago
Close is above the Kumo Cloud
MACD line crosses over the signal line
-DI is greater than +DI
ADX is greater than 45
Short Position:
Tenkan-Sen is below the Kijun-Sen
Chikou-Span is below the close of 26 bars ago
Close is below the Kumo Cloud
MACD line crosses under the signal line
+DI is greater than -DI
ADX is less than 45
The script is backtested from 1 January 2022 and provides good returns.
The strategy assumes each order is using 30% of the available coins to make the results more realistic and to simulate you only ran this strategy on 30% of your holdings. A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.
This script also works well on MATIC (15m timeframe), ETH (5m timeframe), and SOL (15m timeframe).
EHMA Range Index Basket StrategyThis script is a modified version of my EHMA Range Strategy.
EHMA Range Strategy
In addition to the EHMA, this script works with a range around the EHMA (which can be modified), in an attempt to be robust against fake signals. Many times a bar will close below a moving average, only to reverse again the next bar, which eats away at your profits. Especially on shorter timeframes, but also on choppy longer timeframes this can make a strategy unattractive to use.
With the range around the EHMA, the strategy only enters a long/exit-short position if a bar crosses above the upper range. Vice versa, it only enters a short/exit-long position if a bar crosses below the lower range. This avoids positions if bars behave choppy within the EHMA range & only enters a position if the market is confident in it's direction. Having said that, fakeouts are still possible, but a lot less frequent. Having backtested this strategy vs the regular EHMA strategy (and having experimented with various settings), this version seems to be a lot more robust & profitable!
EHMA Range Index Basket Strategy
The EHMA Range Index Basket Strategy aims to make the EHMA Range Strategy even more robust, by taking nearly 40 of the most traded crypto trading pairs and applying the EHMA Range Strategy to them. For each pair it assigns a 0 (Sell signal) or 1 (Buy signal) and adds them up. If the number of Buy signals outweigh the number of Sell signals, the index strategy triggers its Buy signal (and vice versa). The results are even more profitable & robust than with the EHMA Range Strategy on its own. Next to that, it performs a lot better on most crypto pairs, due to it's robustness. Because of that, this strategy is a lot less prone to overfitting and will likely produce better results during live trading conditions!
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
Pullback Strategy (Candle Analysis) New VersionFollowing on from the previous Pullback Candle which smashed over 100 likes - here we have the strategy behind the indicator.
Signal = Pullback Candle (This will alert on all timeframes and markets when selecting the Alert function for the Signal
Entry = When the Pullback Candle is confirmed ie 16:00 - the strategy will enter within the next two candles.
Stop loss = 0.25 ATR multiple which means we have a tighter stop loss - if greater than 1 then the stop loss will be more in percentages!!!
Take Profit = 1.5 Risk to Reward Model
Ema filter - There is a function to modify when looking into trades so as this is a bullish setup we want trades to be over the ema and using this filter will only show trades above the 200ema
Time filter - If you want to backtest Uptrends - locate the time of the start and the end of the uptrend - input this data into the settings and this will bring up the trades in that time period.
Most efficient to use this script is only in uptrends and this signal is a bullish signal - when using a ema filter we wont get trades under this so narrow down good trades for automation.
!!!!TO ENHANCE THE SYSTEM - USE TECHNICAL ANANLYSIS FOR CONFLUENCES
Most inefficient way to use the script is when price is in a downtrend and the win rate falls dramatically.
The pullback candle has a R-Expectancy of R5 so profits can be elongated when trading manually.
As the pullback candle occurs often in a trend we could pyramided trades to say have 5 trades in the same direction but the way i would trade this is to alert R1.5 then look to R2 and above to take profits manually.
(((P.S coders.... i need help to work on a profit extension code where exit long when price is below the 9ema (this seems simple but proving difficult) - this would be included onto the script if received.
[Fedra Algotrading Strategy 2tp+L&S] Futures Long or ShortStrategy for crypto market, designed for automatic algorithmic trading with bots.
Can place long and short orders
Calculates your entries based on the breakout of the simple deviation of the linear regression of the last X periods.
Configures TP (green line) and SL (red line) percentages, the TP is a trailing TP.
Optionally, you can set a first TP (white line) that sells half of the position.
Advanced trend filter to not open trades against the market. SMA (yellow line), WMA (blue line) and secret sauce
Includes an advanced system to control the backtest period (choose how many days to backtest).
Risk management by volume of capital or amount of losing trades (kill switches that will exit the trade and stop the script)
The script includes default commissions of 0.2% per trade (configurable).
- Dinamic table with Price positions to plan your limit orders if you are trading manually
- Highly customizable and optimizable.
If you want to trade longs and shorts, it is advisable to create 2 different alerts. In most cases, the optimal parameters for longs are not the same as for shorts. In a forthcoming update I will enable separate configurations.
For better performance the script uses real time price information, for this reason Tradingview may warn you that there is "repainting", as the backtest information does not contain the information of each tick but only the open, close, high and low values of each candle.
To avoid this, you can disable the "calculate on every tick" option from the strategy settings panel.
Ultimate Strategy Shell [ArtK]This strategy shell script accepts entry/exit signals from an external study indicator.
It is built to cover most common trade execution strategies such as, multiple take profit levels, break even, trailing stop loss, position reverse, laddering and more.
It also aims to provide extended trade statistics such as the actual (win/loss) figures for trades instead of figures for orders as TradingView provides in the Strategy Test Overview.
Features
- 3 Take Profit levels.
- 3 Take Profit target type options (Percentage, Risk Reward Ratio or (IN DEVELOP) Strategy).
- 2 Stop Loss type options (Percentage, Strategy).
- Break Even stoop loss (will move the Stop Loss to the entry price after the 1st or 2nd Take Profit).
- Trailing Stop Loss (will move the Stop Loss after the last Take Profit at specified deviation on every candle).
- Trades Summary Label
Shows the number of wins and losses in a row.
Shows the actual (win/loss) figures for trades instead of figures for orders as TradingView provides in the Strategy Test Overview.
Shows the period from the first trade until the last trade.
Shows how many times each Take Profit level was reached (IN DEVELOP).
(IN DEVELOP) Shows the maximum Stop Loss when using the Stop Loss – Strategy option (helpful when estimating Stop Losses when leveraging).
Plots marks at the bottom of the chart to indicate winning or losing trades (helps to quickly find losing trades for example).
- Entry Filters
-- Date Time, allows placing trades only during the specified period.
-- ADX, filters trades below specified ADX value.
-- Max Stop Loss, can be enabled when the Stop Loss type is set to "Strategy". Used to prevent taking trades which exceed liquidation price.
-- Direction, will filter trades in a certain direction.
Instruction
- The strategy script relies on an external indicator therefore it is required to add the signal indicator first.
- To adapt the signal indicator to be compatible it must have only one plot.
-- The default value of the plot should be 1 when there is no buy/sell signal.
-- When the signal indicator signals BUY the line should plot the value
-- When the signal indicator signals SELL the line should plot the value
-- (I am aiming to support EXIT signals as well as the Stop Loss and Take Profit percentages in the near future)
- The first time you load the script it will show an error "Study Error: Signal source set to default ". This means the signal indicator was not selected.
The signal indicator should be selected in the strategy configuration panel option "Signal Source"
Plutus - StrategyPlutus is a Script I've been working on for the past several months, and It's finally ready to go live! I would like to have few volunteers to help me forward-test it with different assets, preferably, with any Binance Perpetual contract traded under US$50.
The Script is delivering a Net PnL of circa 350% (0.04% commission deducted from the ~500% gross) in 14 days on the backtest when plotted on the WAVESUSDTPERP 2-min chart. Good results also with RUNEUSDTPERP and OGNUSDTPERP .
To whomever contributes with a constructive (technical) feedback, a better Stop-Loss strategy, other potential (Binance Futures ) pairs where the Script would delivery a 15-Day PnL of 400%+, and MAINLY who collaborate fowardtesting it, I'll grant access to the Strategy (which will have its Privacy Setting changed from Public to Private in 7 days from now) for a period of 2 months.
Please, explored it with different time frames, assets, markets and leave your comments!
Thanks a lot!
PS.: Tomorrow I'll write a better description.
Trendelicious StrategyA simple strategy based on Trendelicious indicator
We go long when an uptrend started 2 candles ago.
We close the position when an uptrend ended 2 candles ago.
Parameters are just the required parameters for the indicator + backtest timeframe
To avoid the noise and catch big uptrends, run on higher timeframes (4h, 1D ...)
The script also contains a code to show some stats suitable when on a mobile device.
DISCLAIMER:
This is not an advice to trade. Use at your own risk.
The author of this script cannot be held responsible for any losses incurred directly or indirectly by the usage of this strategy.
Ultimate Ichimoku Cloud StrategyThe goal of this strategy script is to provide the ultimate experience to anyone interested in the Ichimoku Kinkō Hyō (Ichimoku Cloud). The script is designed to be highly customizable and allows the user to set a custom trade date range and select any combination of inputs and conditions that satisfy their goals. Additionally, the script allows the user to visually see any combination of their set conditions by clicking the " Show Conditions Visually " checkbox. Doing so will color the background in a different color where the conditions align. Finally, a simple Stop/Take profit is added for those that wish to exit based on percentages over Ichimoku conditions.
As always, please let me know if there are any bugs, something useful that could be added or if you need some help. Leave a like if you wish!
TENKAN BOLTTENKAN BOLT
7 major point in this indicator are as follows :-
•Tenkan-sen
•Ichimoku Cloud
•Exponential Moving Average
•Change of Volume Analysis (calculated in background)
•Modified Keltner Channel (calculated in background)
•RSI Divergence (calculated in background)
•Entry and Exit Point
www.tradingview.com
There will be 2 types of Long entry alert and 2 types of Short entry alert.
•The first one is marked as "Long" or "Short" only which indicates the signal calculated by Keltner Channel, Tenkan-sen and change of volume in sudden time.
•The second one is marked as "Long Divergence" and "Short Divergence" which indicates signal by RSI Divergence in my own way (not aggressive).
The idea of this script is only trade the highest probability setup and I shall call it the "High Probability, Probability Trading". This is definitely not a buy or sell call as the idea of the script is to give a good direction for trader and to learn the high probability trading setup which includes the volatility of the market.
This script specifically created for Futures Crude Palm OIL (FCPO) market and may works differently in different market. It works great in 1 minute time-frame and 3 minute time-frame
(with slight adjustment).
Kindly contact me for usage. Thanks!
QaSH DCA Algorithm 2.0This is the strategy version of the QaSH DCA Algorithm indicator. This strategy version of the script includes live trading alert functionality, so it can be considered as a replacement that makes the indicator version obsolete. With this version, features have been added and also you can take advantage of TradingView's native backtesting system for more detailed backtest results.
QaSH DCA Algorithm implements a DCA strategy that takes advantage of price volatility by buying dips to average down, and adjusting price targets as the break-even price gets lower.
How does the DCA strategy work?
When the specified entry condition has occurred, the indicator will set up several limit orders below the current price. If price goes up a specified amount, then the layers will be overwritten at the higher prices. If price goes down and fills the first layer (limit order), then the Take Profit price is plotted and will be sent in an alert. If more layers are filled, then the TP price will move down accordingly as it’s based on the average entry price (alerts on each TP update). This action of lowering the average entry and TP price mitigates your risk, and increases the likelihood of a Take Profit event happening. This script uses a simple "ASAP" mode, where each deal will start exactly 2 bars after the last trade ended. An EMA filter and stoploss function was also added for risk management.
How does this differ from other DCA bots?
1) The layer placements, order volume , and “take profit %” for each layer or “safety order” is much more customizable than what you get from other services. For example, I can choose to have my TP% change, depending on how big the price dip was. Maybe on safety order 1 I want 10% TP, but on safety order 7 might want a 2% TP.
2) The entry condition is adjustable. For example, this script has an ema filter for entries.
3) Settings optimization. You can take advantage of the replay feature and TradingView's backtest system to see how trades would have played out, and how much PnL you would have made
4) You can use this indicator on more than just crypto. You can easily set up alerts for manual trades on stocks, or you can integrate it with your stock broker API of choice and automate your trades.
5) When combining this with an automation service, you will get unmatched execution speed by running it on your dedicated machine.
6) I can offer a lifetime subscription to the indicator upon request.
What kind of market is it best used on?
QaSH DCA Algorithm is best used on assets that are volatile. That means large and frequent swings up and down. Also I recommend running this on many uncorrelated assets at the same time. Better yet, run it with a variety of different settings simultaneously on the same asset.
What settings should I use?
The default settings are decent for most markets, and provide a good balance between profit potential and downside protection, although you can use a wide variety of settings. In a strong bull market its best to either bring up your layers to catch smaller dips, or you can go big on the first few layers (maybe 4 layers, 25% on each layer for example). In a sideways or brearish market you'll want more downside protection, so you'll want the larger orders to be at lower prices, or possibly use the stoploss and EMA filter.
Six Factors Ichimoku 1.0This strategy has the purpose to help dummies to get experienced when trade with Crypocurrencies, using the Ichimoku indicator
The following script shows an strategy based on Ichimoku indicator. Taking into account the theoretical concepts of the Ichimoku Kinko Hyo, are defined six (6) factors to open position and two (2) factors to close it. According to the author of the book, in which is based the script, it is stablished that the proper combination of the six factors when the timeframe is set in 1D and the assest Cryptocurrencies (not applicable to stable Coins), has demonstrated in the Backtesting good results.
Althoug is not the purpose, the Ichimoku indicator is composed by six components (Tenkan Line, Kijun Line, Senkou Span A, Senkou Span B and Kumo Cloud) and the relative position of the current price of the assest compared with ichimoku components define these factor.
Factors to open position
Factor one. The current price is over the Ichimoku Cloud
Factor two. When Senkou Span A is greater thant Senkou Span B, proyected 22 periods forward.
Factor three. Senkou Span A, has a positive slope, during the previous periods.
Factor four.The Tenkan Line (quick line) is above the Kijun Line (slow line) during the previous periods.
Factor five. The Chikou Span Line is above the Kumo
Factor six. The slope of the sma (200) is positive.
The long entry is recomended when the following expresion is matched
F1 and F2 and F4 and F5 and (F3 or F6)
Factors to close position
Factor one. Tenkan line has a downward trajectory for previous periods. If the price change during this periods the counter reset and start again trying to prevent exit from quick variations.
Factor two. Current price is below Kijun line
The time to close position is recommended when the following expresión occurs
F1 and F2
Some of the features of the script are the following:
Initial amount of investment stablished on 100€, but can be modified by the user.
User can easily modified the period for backtesting purposes.
"Show factors" give the user and easy interface to know the current status of the strategy`s factors. The factors appears color red (false) and color green (true)
It is possible to cancel Factor F5, which is interesting after the assests has dumped strongly. The color black means that F5 is canceled.
Change the output criteria by F1 or F2 (not recommended) but available for learning purposes.
Auxiliary lines that help to idenfify strong resistances that could compromise the strategy
Enjoy it !!!
Miguel A. Calatayud
(IK) Base Break BuyThis strategy first calculates areas of support (bases), and then enters trades if that support is broken. The idea is to profit off of retracement. Dollar-cost-averaging safety orders are key here. This strategy takes into account a .1% commission, and tests are done with an initial capital of 100.00 USD. This only goes long.
The strategy is highly customizable. I've set the default values to suit ETH/USD 15m. If you're trading this on another ticker or timeframe, make sure to play around with the settings. There is an explanation of each input in the script comments. I found this to be profitable across most 'common sense' values for settings, but tweaking led to some pretty promising results. I leaned more towards high risk/high trade volume.
Always remember though: historical performance is no guarantee of future behavior . Keep settings within your personal risk tolerance, even if it promises better profit. Anyone can write a 100% profitable script if they assume price always eventually goes up.
Check the script comments for more details, but, briefly, you can customize:
-How many bases to keep track of at once
-How those bases are calculated
-What defines a 'base break'
-Order amounts
-Safety order count
-Stop loss
Here's the basic algorithm:
-Identify support.
--Have previous candles found bottoms in the same area of the current candle bottom?
--Is this support unique enough from other areas of support?
-Determine if support is broken.
--Has the price crossed under support quickly and with certainty?
-Enter trade with a percentage of initial capital.
-Execute safety orders if price continues to drop.
-Exit trade at profit target or stop loss.
Take profit is dynamic and calculated on order entry. The bigger the 'break', the higher your take profit percentage. This target percentage is based on average position size, so as safety orders are filled, and average position size comes down, the target profit becomes easier to reach.
Stop loss can be calculated one of two ways, either a static level based on initial entry, or a dynamic level based on average position size. If you use the latter (default), be aware, your real losses will be greater than your stated stop loss percentage . For example:
-stop loss = 15%, capital = 100.00, safety order threshold = 10%
-you buy $50 worth of shares at $1 - price average is $1
-you safety $25 worth of shares at $0.9 - price average is $0.966
-you safety $25 worth of shares at $0.8. - price average is $0.925
-you get stopped out at 0.925 * (1-.15) = $0.78625, and you're left with $78.62.
This is a realized loss of ~21.4% with a stop loss set to 15%. The larger your safety order threshold, the larger your real loss in comparison to your stop loss percentage, and vice versa.
Indicator plots show the calculated bases in white. The closest base below price is yellow. If that base is broken, it turns purple. Once a trade is entered, profit target is shown in silver and stop loss in red.
Carpe Diem [Strategy]Carpe Diem Strategy, a wave cycle strategy that only enters when markets are up trending.
The script uses 3 different trend detection indicators including volume which helps with confirmation.
This script has 10 variations built within it which are fitted for the coins differnt coinditions
The coins included are
BTC/USDT 4H
ETH/USDT 4H
LTC/USDT 4H
ADA/USDT 4H
BNB/USDT 2H
BAND/USDT 4H
BAT/USDT 3H
OGN/USDT 4H
ZIL/USDT 4H
BZRX/USDT 2H
How to use the Indicator
You can change what plots are shown in the settings Cog
When the wave lines are green, the market is up trending and will be looking for a trade whereas when they are red, the market is in a sideways or downtrend.
The buy signal is given by the fast wave either crossing over the slow wave line, or crossing over the value of 25.
The exit signal is when the wave crosses back under the 75 value
This strategy includes Fees and there is NO Repaint. The script is written in version 4
There is an option in the settings cog to choose from 10 Coins and timeframes which the Strategies have been optimised for.
There is also another option in the settings cog to change the backtesting range.
There is also another option to adjust the stop loss. I have left it on the Default value which I believe works best
This strategy performs best on the Binance listings
Donchian Channels Trending Breakout StrategyThis script looks for two entry signals. Long is when the previous breakout of the donchian channels was a low, price is above the input EMA, current price is equal or higher than the upper band and we're not in a position yet. Short is the other way around, so previous breakout of the donchian channels was a high, price is below the input EMA, current price is equal or lower than the lower band.
I haven't found a script that does take the previous highs and lows into consideration. Works for any markets in any conditions because the stop loss and profit targets are based on the upper and lower band of the donchian channels, which means the stop loss and profit targets move with the trend.
For more details see the script itself, I wrote a ton of comments.
Bull Call Spread Entry StrategyThis strategy script uses the "Spread Entry Strength" overlay indicator script I designed to show entry timing optimized for an Option Bull
Call Spread.
As for this strategy...
The defaults for the strategy itself are as follows:
Period for strategy: 1/1/18 to 12/1/2021. This can be changed to a different period using the settings.
Condition for entry:
Bull Spread Entry Strength >= "Overlay Signal Strength Level"
Limit entry is used, price must be <= close when signaled
Entry occurs by next day or the order is cancelled
Condition for exit (uses a timed exit):
Bars passed since order entry >= 30 (6 weeks..~42 calendar days)
Thursday (day before "option" expiration date... assuming weekly options exist)
All of the user settings from the overlay are pulled into this for customization purposes. Details of the actual Spread Entry Strength overlay are as follows (copied from my shared indicator):
2 background shadings will occur:
The background will shade blue if the ticker is prime for a Bullish Call spread.
The background will shade purple if the the ticker is prime for a Bearish Put spread.
In theory, if the SE Strength is at one of the extremes of the Bear or Bull side, then a spread is prime for entry.
To calculate this, 8 conditions receive a 1 or zero dependent on whether the condition is true (1) or false (0), and then all of those are summed. The primary gist of the strength comes from Nishant's book, or my interpretation thereof, with some additives that limits what I need to review (such as condition 8 below.)
The 8 Bull Conditions are:
1) Bollinger Bands are outside of the Keltner Channels
2) ADX is trending up
3) RSI is trending up
4) -DI is trending down
5) RSI is under 30
6) Price is below the lower Keltner Channel
7) Price is between the lower Bollinger Band and the Bollinger basis.
8) Price at one point within the last 5 bars was below the lower Bollinger Band
The 8 Bear Conditions are the inverse conditions (except the first):
1) Bollinger Bands are outside of the Keltner Channels
2) ADX is trending down
3) RSI is trending down
4) +DI is trending up
5) RSI is over 70
6) Price is above the upper Keltner Channel
7) Price is between the upper Bollinger Band and the Bollinger basis.
8) Price at one point within the last 5 bars was above the upper Bollinger Band
There is a "market noise" filter that will filter out shading when another market move is considered, i.e. if you don't want to see the potential trade when QQQ moves more than 1% then do the following in the settings:
Check "Market Filter"
Enter QQQ in the "Market Ticker To Use"
Enter 1 in the "Market Too Hot Level"
Press Ok
Obviously, the same holds true for the "Market Too Cool Filter."
Second release notes:
Overlay Signal Strength Level - You can set your own "level" for the overlay in the settings, instead of having to change the script code itself. I have the default set to 6. A lower number shows more overlays, a higher number shows fewer (i.e. more conditions have been met.).
Provide Narrative (Troubleshooting) - Narrative label created with several outputs that will show after the last bar. This narrative needs to be turned on in the settings, as the default is "off" ... unchecked.
Remove Strength Indicator When Squeezed - when checked no overlays will be produced regardless of "scoring." Default is off.
Show Squeezes (Will Override Indicator When Concurrent) - overlays an orange background when the ticker is in a squeeze. I am still working on the accuracy here, but it's usable. This will override the strength indicator as well. This needs to be turned on, if you want it.
Short SMA Period - period used to calculate the short SMA, used in the narrative only, at this point in time.
Medium SMA Period - period used to calculate the medium SMA, used in the narrative only, at this point in time.
Long SMA Period - period used to calculate the medium SMA, used in the narrative only, at this point in time.
Outside of the settings... a few calculation adjustments here and there have occurred and some color shading adjustments to allow for the adjustable level setting.
Simple RSI strategyso this script just take it as teaching how to make easy strategy
many time we try complex one and we fail
thanks to coinrule for his very smart method of pyramid
i just here in this very simple rsi strategy want to show how even lame strategy like RSI can be very profitable:)
1. we exit by take profit
2. we make sure that for exit by take profit the stop loss will be far lets say 10% or more
3. this shit only work good in up trending markets:)
why regular rsi strategy not working? because the exit is shity ... it depend on false top that based on RSI above 70 or 80 in general.
in bullish state this will exit us faster then we desire and will cost us loss . in bearish state rsi will not go so high and we exit too late so the stop loss is our our only saver
here by exiting by% we get much better results
so what happen if the trend is bearish? you can can try to do the same just reverse order to create more shorts (sometime it work sometime is not)
end conclusion in bullish trending market even shifty strategy is good
the only reason this one work is actually because of the script of coinrule so i want to thank him on this
happy new year to all TV members
Momentum Strategy [MA Crossover + Squeeze Release + Alerts]This is a Strategy with associated visual indicators and Buy/Sell/Close Alerts for the Squeeze Momentum Indicator .
Development Notes
-------------------------
This is a fork of LazyBear's Squeeze Momentum Indicator histogram with an added moving average crossover for multiple trade signal confirmation. Functionality for Multi-Timeframe Resolution was also enabled and code was updated for PineScript v4 compatibility.
Strategy Description
-------------------------
Enter trade when the active crossover period (identified by background crossover indicator/zone) correlates with a squeeze release (black to gray cross along midline). BUY Long if momentum in uptrend or SELL Short if in downtrend. Close trade when momentum reverses.
Alerts configured for entering Long/Short position and to Close order.
Designed to have only one open long or short position at a time (no pyramiding) with an associated close order for each.
Indicator Visuals
--------------------
Crossover zone background (green or red) based on last crossover direction (only buy orders are triggered in a buy zone and sell orders in a sell zone)
Moving average crossover line matches trend (buy upwards on green and sell downwards on red)
Buy (green circle) and Sell (red circle) signals at the point of crossover
Buy (green cross) and Sell (red cross) signals at squeeze release on the midline
Long (green arrow) and Short (red arrow) order label when every indicator is triggered together
Close (purple arrow) and label when either trend or crossover zone changes
Recommend backtesting with the resolution set to current timeframe to avoid repainting; no other known repainting. There is a current bug or flaw in the script where all the Close and some of the Long and Short orders are not executed by the strategy (this doesn't affect the visual indicators, only the strategy).
Note that the provided backtest result is based on a position sizing of 10% equity with 100k initial capital. The 15-minute timeframe performed the best, with the 30-minute a close second, and 5/45-minute tied for third. Profit/loss went into the red when expanding out to 2-hours or beyond. I suspect this could be improved upon if you follow the Alerts on the oscillator versus rely solely on the strategy (due to the aforementioned issue with all entry and exit positions not being depicted).
Disclaimer
Past performance may not be indicative of future results. Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting. This post and the script are not intended to provide any financial advice.
Script is currently protected (due to the extensive development in the strategy) to prevent the source from being copied and sold.
Weighted Price Oscillator (STRATEGY)Weighted Price Oscillator is an unique indicator that shows the relationship between two custom variables that trigger signals upon specific conditions. When WPO (short for weighted price oscillator) crosses over the signal or zero line, it creates a buy signal and conversely below the signal or zero line, it generates a take profit signal. All of which are provided that the specific conditions are met.
Inside the script's options, the following options are: signal sensitivity, enable signal background color, and take profit percentage. The signal sensitivity allows you to adjust the script's trigger sensitivity, so that the script can fire signals appropriate for a specific timeframe. Enabling signal background color will provide a visual on the oscillator when a buy or take profit signal is being created. And lastly, the take profit percentage option is for configuring the trade size percentage of which you want to take profit with.
PM me for access.
Donchian Channel Strategy [for free bot]
I present to you a script for testing the Donchian channel breakout strategy for the Binance_exchange.
This strategy is trending, and is especially effective for trading cryptocurrency futures.
This strategy is very flexible, and you can configure virtually all possible parameters, moreover, separately for longs and separately for shorts.
In the script, you can configure the parameters of the channel for entry and exit, the exit method, enable or disable purchases / sales, specify take profit and stop loss, and more.
On the example of optimization, only 20% of the deposit is used. This is done for diversification, since there are 37 contracts on binance_futures (at the time of writing the script description). That is, by optimizing the parameters for different currencies, you can very well reduce risks.
Представляю Вам скрипт для тестирования стратегии пробоя канала Дончиана для биржи Бинанс.
Данная стратегия относится к трендовым, и особенно эффективная на торговли криптовалютных фьючерсов.
Данная стратегия очень гибкая, и можно настроить фактически все возможные параметры, при чем, отдельно для покупок и отдельно для продаж.
В скрипте можно настроить параметры канала на вход и на выход, метод выхода, разрешить или запретить покупки/проаджи, указать тейк-профит и стоп-лосс и другое.
На примере оптимизации используется всего 20% от депозита. Это сделано для диверсификации, так как на фьючерсах бинансе присутсвует 37 контрактов (на момент написания описания скрипта). Т.е., оптимизировав параметры под разные валюты, можно очень хорошо снизить риски.
Low Scanner strategyThis is the strategy I made using low scanner
there is no repaint as there is no security at all
the exit is by using multiple exit point by equity shown in the script of adolgov
so you can set the low low scanner to any position you want by no security MTF (look on the study for detail about it)
the exit you set acording to % and the equity as suggested by adolgov
this scripyt is free you can make the exit diiferent
it just example how to create better non repainting strategies with MTF
look on the same setting on stocks just 1 hour candle look very nice there:)
ADX_TSI_Bol Band Trend ChaserThe idea of this script is to be a low risk strategy on trending stocks (or any other trending market), aiming to achieve minimal draw down (e.g. at time of writing AAPL only had ~1.36% draw down, FB ~1.93% draw down and the SPY was 0.80% draw down and all remained profitable).
Testing proved it shouldn't be used in choppy stocks and best period was on daily charts. The back test filter goes back until 2010 so you can obtain 10 years of data.
The strategy utilizes the 200 Moving Average, a Custom Bollinger Band, a TSI with 52 period weighted moving average and ADX strength.
Although back test dates are set to 2010 - 2020, all other filters (moving average, ADX, TSI , Bollinger Band) are not locked so they can be user amended if desired. However the current settings have been tested with manual trading for quite some time to get this combination correct.
Buy signal is given when trading above the 200 moving average + 5 candles have closed above the upper custom Bollinger + the TSI is positive + ADX is above 20.
As back testing proved that this traded better only in tends then some Sell/Short conditions have been removed from the script and this only takes Long orders.
Only requires 2 additional lines of code to add shorting order and then remove the "buy" condition and this could be used for a downward trending stock instead.
Close for either long or short trades is signaled once the TSI crosses in the opposite direction indicating change in trend strength.
Further optimization could be achieved by adding a stop loss, which I may do in the future.
NOTE: This only shows the lower indicators however for visualization you can use my script "CUSTOM BOLLINGER WITH SMA", which is the upper indicators in this strategy.
This is my first attempt at coding a strategy so I'm happy to receive any feedback or hints on how this could be written better from any experienced coders!
NASDAQ:AAPL AMEX:SPY
Volume Based Buy/SellThis is my very first scrip on this platform. It's the first version of the script, It works on the volume-based moving averages and exponential moving average.
I have added the buy/sell signals for educational purposes only. While adding the buy/sell signal I have an additional check on the strength of the trend to reduce loss to a minimum.
How to use:
1. Use with Heikin Ashi Chart.
2. Use 15 Min timeframe for intraday.
Some improvements I am working in the near future is:
1. Exit tread with the maximum profit.
2. Reduce down false trad to 0%.
To encourage and support please like the script try using for your own paper trading.
Dont forget to leave a comment on if you see any improvement in the script or any idea you have. Happy treading together.