Dow Theory based Strategy (Markttechnik)What makes this script unique?
calculates two trends at the same time: a big one for the overall strong trend - and a small one to trigger a trade after a small correction within the big trend
only if both trends (the small and the big trend) are in an uptrend, a buy signal is created: this prevents a buy signal from being generated in a falling market just because an upward movement begins in a small trend
the exit strategy can be configured very flexibly and individually: use the last low as stop loss and automatically switch to a trialing stop loss as soon as the take profit is reached (instead of finishing the trade)
the take profit strategy can also be configured - e.g. use the last high, a fixed percentage or a combination of it
plots each trade in detail on the chart - e.g. inner candles or the exact progression of the stop loss over the entire duration of the trade to allow you to analyze each trade precisely
What does the script do and how?
In this strategy an intact upward trend is characterized by higher highs and lower lows only if the big trend and the small trend are in an upward trend at the same time.
The following describes how the script calculates a buy signal. Every step is drawn to the chart immediately - see example chart above:
1. the stock rises in the big trend - i.e. in a longer time frame
2. a correction takes place (the share price falls) - but does not create a new low
3. the stock rises again in the big trend and creates a new high
From now on, the big trend is in an intact upward trend (until it falls below its last low).
This is drawn to the chart as 3 bold green zigzag lines.
But we do not buy right now! Instead, we want to wait for a correction in the big trend and for the start of a small upward trend.
4. a correction takes place (not below the low from 2.)
Now, the script also starts to calculate the small trend:
5. the stock rises in the small trend - i.e. in a shorter time frame
6. a small correction takes place (not below the low from 4.)
7. the stock rises above the high from 5.: a new high in the shorter time frame
Now, both trends are in an intact upward trend.
A buy signal is created and both the minor and major trend are colored green on the chart.
Now, the trade is active and:
the stop loss is calculated and drawn for each candle
the take profit is calculated and drawn to the chart
as soon as the price reaches the take profit or the stop loss, the trade is closed
Features and functionalities
Uptrend : An intact upward trend is characterized by higher highs and lower lows. Uptrends are shown in green on the chart.
The beginning of an uptrend is numbered 1, each subsequent high is numbered 2, and each low is numbered 3.
Downtrend: An intact downtrend is characterized by lower highs and lower lows. Downtrends are displayed in red on the chart.
Note that our indicator does not show the numbering of the points of the downtrend.
Trendless phases: If there is no intact trend, we are in a trendless phase. Trendless phases are shown in blue on the chart.
This occurs after an uptrend, when a lower low or a lower high is formed. Or after a downtrend, when a higher low or a higher high is formed.
Buy signals
A buy signal is generated as soon as a new upward trend has been formed or a new high has been established in an intact upward trend.
But even before a buy signal is generated, this strategy anticipates a possible emerging trend and draws the next possible trading opportunity to the chart.
In addition to the (not yet reached) buy price, the risk-reward ratio, the StopLoss and the TakeProfit price is shown.
With this information, you can already enter a StopBuy order, which is thus triggered directly with the then created buy signal.
You can configure, if a buy signal shall be created while the big trend is an uptrend, a downtrend and/or trendless.
Exit strategy
With this strategy, you have multiple possibilities to close your position. All of them can be configured within the settings. In general, you can combine a take profit strategy with a stop loss strategy.
The take profit price will be calculated once for each trade. It will be drawn to the chart for active trade.
Depending on your configuration, this can be the last high (which is often a resistance level), a fixed percentage added to the buy price or the maximum of both.
You can also configure that a trailing stop loss is used as soon as the take profit price is reached once.
The stop loss gets recalculated with each candle and is displayed and plotted for each active and finished trade. With this, you can easily check how the stop loss changed during your trades.
The stop loss can be configured flexibly:
Use the classic "trailing stop loss" that follows the price from below.
Set the stop loss to the last low and tighten it every time the small trend marks a new local low.
Confiure that the stop loss is tightened as soon as the break even is reached. Nothing is more annoying than a trade turning from a win to a loss.
Ignore inside candles (see description below) and relax the stop loss to use the outside candle for its calculation.
Inner candles
Inner candles are created when the candle body is within the maximum values of a previous candle (the outer candle). There can be any number of consecutive inner candles. As soon as you have activated the "Check inner candles" setting, all consecutive inner candles will be highlighted in yellow on the chart.
Prices during an inner candle scenario might be irrelevant for trading and can be interpreted as fluctuations within the outside candle. For this reason, the trailing stop loss should not be aligned with inner candles. Therefore, as soon as an inner candle occurs, the stop loss is reset and the low at the time of the outside candle is used as the calculation for the trailing stop loss. This will all be plotted for you on the chart.
Display of the trades:
All active and closed trades of the last 5 years are displayed in the chart with buy signal, sell, stop loss history, inside candles and statistics.
Backtesting:
The strategy can be simulated for each stock over the period of the last 5 years. Each individual trade is recorded and can be traced and analyzed in the chart including stop loss history. Detailed evaluations and statistics are available to evaluate the performance of the strategy.
Additional Statistics
This strategy immediately displays a statistic table to the chart area giving you an overview of its performance over the last years for the given chart.
This includes:
The total win/loss in $ and %
The win/loss per year in %
The active investment time in days and % (e.g. invested 10 of 100 trading days -> 10%)
The total win/loss in %, extrapolated to 100% equity usage: Only with this value can strategies really be compared. Because you are not invested between the trades and could invest in other stocks during this time. This value indicates how much profit you would have made if you had been invested 100% of the time - or to put it another way - if you had been invested 100% of the time in stocks with exactly the same performance. Let's say you had only one trade in the last 5 years that lasted, say, only one month and made 5% profit. This would be significantly better than a strategy with which you were invested for, say, 5 years and made 10% profit.
The total profit/loss per year in %, extrapolated to 100% equity usage
Notifications (alerts):
Get alerted before a new buy signal emerges to create an order if necessary and not miss a trade. You can also be notified when the stop loss needs to be adjusted. The notification can be done in different ways, e.g. by Mail, PopUp or App-Notification. This saves them the annoying, time-consuming and error-prone "click through" all the charts.
Settings: Display Settings
With these settings, you have the possibility to:
Show the small or the big trend as a background color
Configure if the numbers (1-2-3-2-3) shall be shown at all or only for the small, the big trend or both
Settings: Trend calculation - fine tuning
Drawing trend lines on a chart is not an exact science. Some highs and lows are not very clear or significant. And so it will always happen that 2 different people would draw different trendlines for the same chart. Unfortunately, there is no exact "right" or "wrong" here.
With the options under "Trend Calculation - Fine Tuning" you have the possibility to influence the drawing in of trends and to adapt it to your personal taste.
Small Trend, Big Trend : With these settings you can influence how significant a high or low has to be to recognize them as an independent high or low. The larger the values, the more significant a high or low must be to be recognized as such.
High and low recognition : With this setting you can influence when two adjacent, almost identical highs or lows should be recognized as independent highs or lows. The higher the value, the more different "similar" highs or lows must be in order to be recognized as such.
Which default settings were selected and why
Show Trades: true - its often useful to see all recent trades in the chart
Time Frame: 1 day - most common time frame (except for day traders)
Take Profit: combined 10% - the last high is taken as take profit because the trend often changes there, but only if there is at least 10% profit to ensure we do not risk money for a tiny profit
Stop Loss: combined - the last low is used as stop loss because the trend would break there and switch to a trailing stop loss as soon as our take profit is reached to let our profits run without risking them anymore
Stop Loss distance: 3% - we are giving the price 3% air (below the last low) to avoid being stopped out due to a short price drop
Trailing Stop Loss: 2% - we have to give the stop loss some room to avoid being stopped out prematurely; this is a value that is well balanced between a certain downside distance and the profit-taking ratio
Set Stop Loss to break even: true, 2% - once we reached the break even, it is a common practice to not risk our money anymore, the value is set to the same value as the trailing stop loss
Trade Filter: Uptrend - we only start trades if the big trend is an uptrend in the expectation that it will continue after a small correction
Display settings: those will not influence the trades, feel free to change them to your needs
Trend calculation - Fine Tuning: 1/1,5/0,05; influences the internal calculation for highs and lows and how significant they need to be to be considered a new high or low; the default values will provide you nicely calculated trends in the daily time frame; if there are too many or too few lows and highs according to your taste, feel free to play around and immediately see the result drawn to the chart; read the manual for a detailed description of this values
Note that you can (and should) configure the general trading properties like your initial capital, order size, slippage and commission.
Onda di Elliott
The Zig Zag Leveler Strategy 1This indicator is designed to identify potential trade setups in the market using the ZigZag indicator. It uses a combination of the ZigZag indicator and the background fill color to help identify areas of support and resistance. It also uses a pip offset to help with entries and exits. Additionally, it can generate alert conditions when the market direction changes and when a buy or sell signal is generated. This indicator can be used to help identify potential trade setups and can be customized to fit the user's trading strategy.
This indicator takes the guesswork out of trading by providing traders with an array of signals that can help identify entry and exit points. The indicator uses two sets of signals to identify price levels that indicate potential entry and exit points - one set of signals that indicate potential entry points and another set of signals that indicate potential exit points. The indicator also provides traders with a visual representation of the signals that can help them better understand the signals and make informed trading decisions. With this indicator, traders can have a better understanding of the market and have a better chance of making profitable trades.
Davin's 10/200MA Pullback on SPY Strategy v2.0Strategy:
Using 10 and 200 Simple moving averages, we capitalize on price pullbacks on a general uptrend to scalp 1 - 5% rebounds. 200 MA is used as a general indicator for bullish sentiment, 10 MA is used to identify pullbacks in the short term for buy entries.
An optional bonus: market crash of 20% from 52 days high is regarded as a buy the dip signal.
An optional bonus: can choose to exit on MA crossovers using 200 MA as reference MA (etc. Hard stop on 50 cross 200)
Recommended Ticker: SPY 1D (I have so far tested on SPY and other big indexes only, other stocks appear to be too volatile to use the same short period SMA parameters effectively) + AAPL 4H
How it works:
Buy condition is when:
- Price closes above 200 SMA
- Price closes below 10 SMA
- Price dumps at least 20% (additional bonus contrarian buy the dip option)
Entry is on the next opening market day the day after the buy condition candle was fulfilled.
Sell Condition is when:
- Prices closes below 10 SMA
- Hard stop at 15% drawdown from entry price (adjustable parameter)
- Hard stop at medium term and long term MA crossovers (adjustable parameters)
So far this strategy has been pretty effective for me, feel free to try it out and let me know in the comments how you found :)
Feel free to suggest new strategy ideas for discussion and indicator building
Intraday Grid trading exampleHello everyone,
This was a grid trading example for intraday trading.
Please be advised that every commodity have diferent kind of reaction and rate of change between periods therefore the percentages need to be adjusted acording to the commodities change %.
In order to specify the adjustment rate we add the Zig Zag in the script.
For Example ;
Last 3 days zigzag high points are %25 , %13 and %8 , the average %is about %9 therefore you have to put the adjustment ratios something like;
Z%1 = %3
Z%2 = %6
Z%3 = %9
Feel free to use the script with caution( it was not a investment advice), this was only a example of grid trading strategy on our trading platform.
Regards.
Easy System 420In this strategy, 15 indicators are used, each giving its results as a numerical value, which then is added or subtracted from the total points, gathered from all 15 indicators.
Many thanks to RafaelZioni for his great work making the EasySys1 script which i modified to create this script.
Onchart is drawn some of the indicators, but not all, a info panel is drawn showing the value each indicator has calculated. The info panel can be turned on or off.
Many of the indicator settings can be changed by user, and this is recommended, to tune the strategy to users chosen pair/timeframe.
Therefore any pair or timeframe can be used, the strategy tester results showing possible results, remember to set commission to match your broker. example chart settings here have common crypto exchange commission value: 0.25%
indicator list : SAR + STT + ZigZag + ROC + DMI + CCI + Weis + SMA + AO + MOM + Hist + BB + Ichimoku + HMA
Swing Index System - Heiken Ashi Pivot Breakout StrategyFor Educational Purposes. Results can differ on different markets and can fail at any time. Profit is not guaranteed.
This only works in a few markets and in certain situations. Changing the settings can give better or worse results for other markets. This is a breakout strategy that uses the heiken ashi bars to find the support and resistance levels or the swing pivots to try to objectively find a breakout. When the price breaks out of a swing pivot, breakout can be confirmed and a strategy can be made. The trade exits as soon as in profit when the heiken ashi bar changes color, when the price swings start to slow down, or when the price breaks below a swing pivot. There might be many strategies and possible ideas that can be made just from knowing where the swing pivots are alone. For this one, I decided to try to emulate Wilder's Adam Theory approach by entering only a specific criteria when it makes new highs or lows that I experimented with. The Swing Index System seems to be similar to what he describes in his book (or perhaps it is the same thing).
Some say that price is the ultimate indicator, but not many really know what that really means. This is yet another approach to try to interpret what that means. This strategy only contains a piece of the complete breakout and trend strategy approach of the Adam Theory and won't be profitable in every market under every situation. This does not include price patterns that the Swing Index System is said to be able to find such as chart patterns, wedges, tops/bottoms, etc. This only includes the small breakout portion requirement in the book. I included specific entry and exit criteria to make the strategy work well that involves nothing but the price action of the swing points only due to the lack of the other missing pieces. It does not contain the missing pieces. Despite this, it can still help find where breakouts might be in an objective matter using the Swing Index System as a standalone trading system and it doesn't involve lookbacks or anything but price alone.
Trends and volume“Trends and volume” is a pair of ZigZag and Volume indicators. If in the ZigZag indicator a trend has changed from descending to ascending, and in the Volume indicator the volume of purchases (accumulation) exceeds the volume of sales (distribution), a signal to open a long position occurs.
Accordingly, the opening of a short position occurs with opposite indicators of trend and volume. The strategy has Volume smoothing settings and a ZigZag filter for selecting optimal settings on other instruments.
With default settings, the strategy allows you to make 2-4 successful trades per month, ideally shows the direction of the trades on the BINANCE:BTCUSDT , timeframe 1 hour.
Together with the “Trends and volume” backtest, you get the “Trends and volume alerts” indicator in which the alert function is built-in, you can set an alert for events: long entry and short entry.
Pay attention when you set alerts in the tradingview in the indicator, the true signal comes at the close of the hourly candle.
I can open demo access to the Trends and volume strategy for 15 days, for this write me.
BEST Trend Direction Helper (Strategy Edition)Hello traders
A follower asked me to convert my Trend Direction Helper into a strategy
So blessed this indicator reached the 1400+ likes milestone - I can't believe how many people are trading with it
I based the setup as follow:
- Entries on those green/red labels
- exit whenever a Simple Moving Averages cross in the opposite direction happen
- possibility to filter only Longs/Shorts or both
Also...
The strategy includes the Zig Zag/Pivots high/low and other options from the indicator version. I only added a quick strategy component with a hard exit concept based on SMA cross
All the best fam and... HAPPY NEW YEAR !!!!!!!!!!!
Dave
Alnami_Quantum_blocks v.11The (Al Nami Quantum Blocks v.11) script is based on Renko chart that is based on % move of the selected symbol. This is different from the traditional or ATR based Renko charts..
box size = user selected percentage x current price
Alnami Quantum Blocks Channel is composed of 5 levels that are calculated based on the box size:
1- Base
2- Green Box High (GBH) = Base + box size
3- Next Green Box trigger (GBN) = base + (box size x 2)
4- Red Box Low ( RBL ) = Base - box size
5- Next Red Box trigger ( RBN ) = base - (box size x 2)
Those levels will appear in the chart with the following order:
------GBN-------
------GBH-------
------BASE------
------RBL-------
------RBN-------
Usually when prices are trending up, the price will stay above the base for most of the time,, when it trending downwards, price stays below base most of the time..
Now how to time your entries based on the channel?
This strategy draws two levels, breakout level (top red line) and stop level (bottom green line).
If the price is above red line, place a buy order
If the price is below the green line, place a sell order
In version 11 of the Quantum blocks, you can choose to make the those two lines drawn using:
recent/near term price actions (less accurate) and fast - set the number of Legs to low value
or
wider term price actions (more accurate) and slow - set the number of Legs to high value
This version also tracks the last three changes for the red and green lines as following:
1- Above, Above, Above = 3
2- Above, Above, Below = 2
3- Above, Below, Below = 1
4- Below, Below, Below = 0
I did run full optimization for the settings of this strategy on Bitcoin (Binance:BTCUSDT) for the following multiple time frames using Amibroker scrips and data downloaded from Binance through a REST API call. The TFs were for 1min, 15min, 30min, 45min, 90min, 120min, 180min, and 240min.
pair Input Settings
btc TF Profit% Sys DD% Trade DD% sharpe% # Trades Win% Wave% # of Legs up lo
1 204 40.16 15.04 1.33 132 40.15 1.5 4 3 3
15 249 35 14.3 2.96 35 51.43 1.8 3 1 3
30 469 28.95 14.04 3.82 34 67.65 1.4 3 1 3
45 712 54.48 23.3 2.49 46 54.35 1.7 3 3 3
90 1114 40.51 21.41 3.3 48 54.17 1.4 2 3 3
120 602 25.32 16.8 2.82 51 43.14 1.2 2 3 3
180 960 35.9 20.09 3.33 42 52.38 0.9 2 2 3
240 819 46.84 28.27 3.48 46 65.22 0.6 2 3 3
I spent a lot of time and resource in providing the above, If this script/back tests helped in making some profits, then kindly express your appreciation and support to this work by sending some altcoins to any of the following wallets, this will encourage me sharing more stuff with the public:
BTC : 15VLCLZRkEhhZn6E4gNjMLVYnmCcUzKvWU
LTC : LN6mE6aZhEqVVfssmaQ3kk8PPspWQ5wToy
ETH : 0x7901035f2b6f334fa404d0ceb187d7bfcfdb72ce
Peaks ReversalThis is a script request by trader @liquidentourage
This script analyses the market at high or low peaks and uses price action to enter the trade
Elliott strategyIt uses Elliott teory to shift two moving averages 8 positions (based on 5-3 fractal), and the crossing is close to reversions. And it keeps an eye on RSI level to be sure it is on hot level to sell/buy
Elliott wave strategy (lirshah)Elliott wave strategy has been written based on Elliott oscillator.
the strategy has good results on crypto pair at H1 time frame..
[STRATEGY][RS]ZigZag PA Strategy V4.1EXPERIMENTAL:
WARNING: this strategy repaints after reloading and results are heavily curve fitted, use at your own discretion.
UPDATE: (AleksanderThor) add option for a 2nd target, to use you need to activate pyramiding with a setting of 1 manually (not possible to change programatically) .
[STRATEGY][RS]ZigZag PA Strategy V4EXPERIMENTAL:
WARNING: highly curve fitted results, if you dont know whats going on stay away.