Configurable Multi MA Crossover Voting SystemThis strategy goes long when all fast moving averages that you have defined are above their counterpart slow moving averages.
Long position is closed when profit or loss target is hit and at least one of the fast moving averages is below its counterpart slow moving average.
The format of the config is simple. The format is : FASTxSLOW,FASTxSLOW,...
Example : If you want 2 moving averages fast=9,slow=14 and fast=20,slow=50 you define it like this : 9x14,20x50
Another example : 5x10,10x15,15x20 => means 3 moving average setups : first wih fast=5/slow=10, second with fast=10/slow=15, last with fast=15/slow=20
You can chose the type of moving average : SMA, WMA, VWMA (i got issues with EMA/RMA so i removed them)
You can chose the source of the moving average : high, close, hl2 etc.
You can chose the period on which ATR is calculated and ATR profit/loss factors.
Profit is calculated like : buy_price + atr_factor*atr
Loss is calculated like : buy_price - atr_factor*atr
Performance in backtest is variable depending on the timeframe, the options and the market.
Performance in backtest suggests it works better for higher timeframes like 1d, 4h etc.
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 well as in historical backtesting.
This post and the script don’t provide any financial advice.
무빙 애버리지
Swing Trades Validator - The One TraderThis swing trading strategy validator is built on the original strategy taught in my bootcamp for swing traders.
The strategy is simple and follows a trend trading pattern on prices reacting to Exponential Moving Averages over a multiple time-frame analysis.
The details of the strategy are as follows:
- Holding Period : Upto a couple of months
- Time-frames to be analysed : Month - Week - Day
- Trade Execution : Daily Time-frame
Analysis Details:
Step 1 : On the Monthly time-frame, the candle needs to be bullish with the latest close being higher than the opening price of the month.
Step 2 : The price needs to be above the 8ema on the Monthly time-frame.
Step 3 : The 8ema must be above the 20ema on the Monthly time-frame.
The above steps indicate a bullish strength in the instrument on the Monthly time-frame.
Step 4 : On the Weekly time-frame, the candle needs to be bullish with the latest close being higher than the opening price of the week.
Step 5 : The price needs to be above the 8ema on the Weekly time-frame.
Step 6 : The 8ema must be above the 20ema on the Weekly time-frame.
The above steps indicate a bullish strength in the instrument on the Weekly time-frame.
Step 7 : On the Daily time-frame, the candle needs to be bullish with the latest close being higher than the opening price of the day.
Step 8 : The price needs to be above the 8ema on the Daily time-frame.
Step 9 : The 8ema must be above the 20ema on the Daily time-frame.
The above steps indicate a bullish strength in the instrument on the Daily time-frame.
Step 10 : While the 8ema is above the 20ema on the Daily time-frame, the price must be allowed to rise before a pullback is seen towards the moving averages, indicating a bearish move trying to change the trend.
Step 11 : These pullback candles need to form a pattern called the Ring Low with the second pullback candle having a lower high and lower low and the low of the last pullback candle being lesser than or equal to the fat ema on the Daily time-frame.
Step 12 : If the stock is still bullish and the trend is displaying a strength in the underlying bullish direction, then there will be a resumption candle that will have a closing price higher than the previous day's high price.
This trend continuation signal is a confirmation that the instrument will continue in the underlying trend direction and we will be able to enter if this condition is satisfied.
The profit and loss percentages are set at a default 10% as this can be a minimum risk : reward for swing trades on average, but the inputs have been made available to the users in order to adjust the risk : reward to find the most optimum breathing room for each individual stock or instrument. This will give the user a highly custom overview of the strategy on individual instruments based on their volatility and price movements.
The strategy tester will auto back-test this strategy historically and find all the trades that were taken based on this strategy and populate a performance summary.
The most important data in V1.0 of this script are as follows:
1. No. of Trades Taken : We want to see many trades being taken on this strategy in that particular instrument. This shows us a healthy report on the number of winning vs. losing trades.
2. Percentage Profitable : We want to see that this strategy has worked out in the past and is giving us a high probability of return. This in no way an indication that the strategy will definitely work out in the future as well, but gives us an idea of whether or not we should enter this trade.
3. No. of Winning Trades vs. Losing Trades : We would like to see a significantly higher number of winning trades.
4. Avg. # of bars in a trade : This gives us an idea of how long on average we might have to wait to see the results of this strategy either in favor of our reward or against our desired direction. Some trades can be completed in around 15-20 bars on average and some trades have shown to take upto 45 days to reach desired reward. This is in line with our planned holding period, but gives the trader a sense of time and increased level of patience.
The future updates will have more utility of the various elements of the strategy tester and the entire exit strategy will be integrated into the script.
This script is not to be used as a standalone method and must be studied well in order to execute trades. I have not hidden visibility on other time-frames, but since order execution is done on the Daily time-frame, the script must run on the Daily time-frame only.
There are many other factors to be taken into consideration before entering a trade and proper risk management and position sizing rules must be followed.
Our bootcamp participants will use this strategy tester in conjunction with the invite-only Trading Toolkit assigned to them.
The development of this script will be ongoing and all comments and feedback are welcome.
Combo 2/20 EMA & 3 Day Pattern This is combo strategies for get a cumulative signal.
First strategy
This indicator plots 2/20 exponential moving average. For the Mov
Avg X 2/20 Indicator, the EMA bar will be painted when the Alert criteria is met.
Second strategy
This startegy based on 3-day pattern reversal described in "Are Three-Bar
Patterns Reliable For Stocks" article by Thomas Bulkowski, presented in
January,2000 issue of Stocks&Commodities magazine.
That pattern conforms to the following rules:
- It uses daily prices, not intraday or weekly prices;
- The middle day of the three-day pattern has the lowest low of the three days, with no ties allowed;
- The last day must have a close above the prior day's high, with no ties allowed;
- Each day must have a nonzero trading range.
WARNING:
- For purpose educate only
- This script to change bars colors.
5212 EMA Strategyver 01
23 December 2021
This strategy using :
- 3 EMA period 50, 100, 200
- stochastic RSI slow
Long Cond :
- Stochastic RSI cross below 20
- EMA 50 > 100 > 200
Short Cond :
- Stochastic RSI cross above 80
- EMA 50 < 100 < 200
Sleeping Mode
- EMA 50 between EMA 100 & EMA 200
Super Auto Breakout Day Trade Volatile stocksThis strategy is looking at MA and distance from MA to determine entry and exit for highly volatile day trade stocks.
This trading strategy is not good for big-cap stocks as the movement there is not much in terms of %.
The target for open trade is to close at a 10% gain or at 2.8% loss which is a good risk to reward ratio.
EMA Cross + Divergence strategy (Div. signals by The Divergent)A sample strategy demonstrating the usage of The Divergent divergence indicator and The Divergent Library .
The Divergent is an advanced divergence indicator which you can easily incorporate into your own strategies.
In order to use this strategy (and to use the signals in your own strategy), you need to have the Pro version of The Divergent applied to your chart.
For more information, please see the comments inlined in the code.
ROCKET_EWOSimple flag system strategy based on EMA cross overs, and standard deviation.
Converted from pine script v3
Up & Down Trend Trading Strategy - BNB/USDT 15minThis strategy will focus on up trend trading and down trend trading based on several indicators such as;
for up trend
1. SAR indicator
2. Super trend indicator
3. Simple moving average for the period of 100
down trend
1. RSI Indicator
2. Money flow index
3. Relative volatility index
4. Balance of powder
Cyatophilum Accumulation StrategyAn indicator to backtest and automate accumulation/pyramiding custom strategies.
The goal of the strategy is to buy several times when the price is low and sell all when the position is in profit.
Configure your strategy using the entry options and entry filters, then set your Take Profit and StopLoss.
═════════════════════════════════════════════════════════════════════════
█ HOW IT WORKS
The strategy has pyramiding enabled, which means it can open several deals in a row.
It will keep buying until the Take Profit target is reached.
The indicator plots the Take Profit and Break Even line which are recalculated at each new deal.
The target corresponds to the average entry price plus a configurable percentage.
We can see the average entry price line drop lower at each Long Entry.
█ HOW TO USE
Choose a pair that you want to hold/invest in.
Pick a chart time frame that you like, according to how often you want the strategy to place orders. A benefit of this strategy is that it can work on low time frames as well as high time frames. Just keep in mind that the smaller the time frame, the bigger the impact of fees and slippage will be on the strategy results.
Configure your entry condition . You can combine several technical indicators to trigger an entry, such as Top & Bottom, Higher Lows and RSI divergences.
Example with double bottoms:
Filter your entry signal . Add filters to strengthen your entry signal.
Configure your profit target
Use the Take Profit feature to set a target in percentage of price. You can also make it trail.
There is a Trailing Stop Loss feature but the goal of the strategy is to never sell in loss, so it is turned off by default.
Check your backtest parameters
Make sure that the initial capital and order size make sense. Since it is a pyramiding strategy, the sum of all deals should not be bigger than the initial capital.
In this example: Initial capital is 10 k, max active deals is 10, so the max order size is 1 k.
If you use % equity as order size, please note that it will create compounding.
Check the fees, by default they are set to 0.1%.
I also recommend to set a slippage that corresponds to your exchange's spread.
Note: the pyramiding parameter has to be equal to the "Max Active deals" input.
█ FEATURES
• Entry settings
Configure wether to go long or short, or both.
Choose the Max Active deals : the maximum number of deals that you want to open at once.
The Minimum bar delay between deals parameter will help putting space between deals.
• Trend Filter
The trend filter will fitler off long deals when the trend is bearish, and short deals when it is bullish.
Choose a trend line from a list, or any external trend line you can find.
The Trend condition allows to choose wether the trend should switch from slope change or price cross.
• MTF Trend Filter
A secondary trend line, Multi Time Frame.
• Volume Filter
The volume filter will check the bar volume and prevent the entry if it is too low.
• Stop Loss and Take Profit
Configure your stop loss and take profit for long and short trades.
You can also make a trailing stoploss and a trailing take profit.
• Backtest Settings
Choose a backtest period, longs or shorts, wether to use limit orders or not.
An option to close open orders at the current bar if you have multiple open orders and are wondering what it would result to close them now.
Graphics
A Configuration panel with all the indicator settings, useful for sharing/saving a strategy.
A Backtest Results panel with additional information from the strategy tester.
█ ALERTS
The indicator is using the alert() calls: it only uses 1 alert slot to send order messages for each event. This means free TV plans can create 1 complete strategy.
To set your alert messages, open the indicator settings and scroll to the bottom of the "inputs" tab.
Create your alert after you set the messages in the indicator settings, and make sure "Any alert() function call" is set in the alert option.
█ LIMITATIONS
Things to keep in mind when using this strategy.
• No Stop loss
When trading without stop loss, your equity can drop without limit, and it can take a while until price recovers.
This is why when backtesting I recommend to keep an eye on the "Max # Days in trades" statistic which tells the maximum days a trade took to close in profit.
• Spot markets only
Obviously, trading without stop loss means no leverage.
█ BACKTEST RESULTS
The backtest settings used in this snapshot are the following:
Initial Capital: 10 000€
Order size: 1 000 €
Commission: 0.1€ per order
Slippage : 10 ticks
Please read the author instructions below for access and automation.
Correlation StrategyThis is a basic strategy that shows how to trigger short/long/close signals on chart's symbol based on calculations made on another symbol which we consider correlated to it.
With default parameters, ETH/USDT as base symbol, the strategy shows good results in backtest for several symbols : DENT/USDT, BTT/USDT, FTT/USDT, DOT/USDT etc.
This is not surprising giving the importance of ETH in the crypto market so it makes sense many crypto currencies will follow ETH big movements.
Note : the strategy with default parameters is supposed to be applied on 4h timeframe. On other timeframes, try another support length.
How the strategy works :
A wma is calculated on the base symbol, with 200 length by default.
When wma is rising, we go long. When wma is falling we go short.
Take profit for Long/Short and Stop Loss for Long/Short are calculated percentages so 0.05 = 5% etc.
Also, Take profit / Stop loss are calculated on the base symbol not the chart's symbol.
The script uses the Monthly Returns table slightly modified to include buy & hold returns. Credits to @QuantNomad
Premium Planning Tool V1.0Background to the tool
The tool was built out of frustration. Having traded for many years with a reasonable level of success I was always frustrated that my trading never went up a level. The world of trading is filled with people having so much more success than me and this level of FOMO really bothered me and resulted in inconsistency and countless hours sitting in front of a screen, hoping for the best. I also became a little bit of an indicator junkie - was there a holy grail indicator out there for me? I always felt that as a retail trader I was behind the curve. I started to investigate how the major market participants trade and make money and I was astounded at the level of success that they get from creating strategies and sticking to it. The market is driven largely by a "black boxes" which, for us retail traders are outside of our ability to access. I wanted to build a tool that could give me a traders edge.
Another factor that has always bothered me was when reading investing books there is a general assumption that a standard entry, say 8/13 cross over, works on all stocks. However, it is not the case and it can be frustrating for a trader using a set up and not realizing that the set up is the problem, not the trader. This realization alone has made a huge impact on my trading. The big boxes that control the market know this already.
Also, a lot of indicators that are available don’t take advantage of the backtesting capability provided in Tradingview. It is fairly simple to find 8-9 trades where a set up worked and then fall into the trade of assuming that it cannot fail. Knowing which set ups work and how frequently it will print will change the way that you trade.
The goal with the tool is to identify setups that have worked in the past with a high degree of profitability, high profit factor and low drawdown and using the planning tool allows you to customize the setup to find exactly what you are looking for across any tradeable asset on TradingView.
Over the past 20 years I have realized the following:
1) Not all entries and signals work the same on all stocks
2) Not having a plan in advance lowers your probability of success
3) Developing consistency in analysis is critical
4) Developing confidence in your own plan is more important than whose trades you try to copy
5) Having 30 indicators does not help you trade better - it leads to more frustration
So here is the product of these realisations:
1) The tool looks across the most common entry strategies (MA cross on 5 dimensions of type and 5 common crossovers) and can be used on 19 different time frames giving you guidance on what the best set up is for the stock you are analysing
2) It incorporates volatility into the strategy – when stocks are trading outside of a predetermined volatility band, a trade will not be entered. This accommodates traders who tend to get shaken out of trades too early.
3) It looks at the impact of “buying the dip” – often a common strategy employed by many traders which now can be backtested and reviewed to see if it actually helped or hindered the trade.
4) It measures your trade plan against your R – what you are willing to risk – and calculates your target profit based on your R multiple
5) It provides a non repaint signal on your base strategy and provides you with signals to trade smaller or shorter signals within the bigger strategy.
There are some additional visual tools:
• Squeeze signals - I am a big fan of the TTM squeeze however the Squeeze by itself can be hard to trade. Seeing a squeeze fire long on a chart can add to trade confidence.
• Seeing zones of support and resistance rather than single lines can also give you some leeway in terms of not getting pushed out of a trade too soon.
The backtester is always reviewed on a 2 to 3 year period to get an understanding of win rate %, profit ratio and average duration of trade. As an option trader knowing that a high probability move is playing out allows me to make sure that I don’t undercut the time frame for the expiration of the option relative to the historical average duration of a trade. Backtesting on shorter times is unrealistic.
Key benefits
1) It saves me a ton of time. I don’t have to sit in front of a screen watching ticks each day. I can plan for an entry, set an alert for a trade and when the conditions are met the TradingView system sends me a message and I will go and confirm a trade, execute it, set my alerts for control and move on with my life.
2) It allows me to review trade ideas in a consistent manner using the best trade plan and set up for a stock.
3) It forces me to be patient and not panic (always a good thing). With an adjustable volatility feature I can modify the volatility band in the trade plan to accommodate choppy market conditions.
4) It looks at both sides of the market (long and short) and you can calculate the impact of being market neutral or having a directional bias.
The setup is based on a reversal set up and we are doing a single entry trade here with a base of 4ATR stop using a long call or a bull call debit spread and allowing GOOGL to trade on a 1ATR price band on a daily basis. This strategy has only generated 10 signals since 2018 however it has been profitable 87.5% of the time with a profit factor of 25.26. Personally, on signals with this degree of strength I will trade a long stock purchase on a STRATEGY ENTRY signal and I will look to trade shorter duration option trades (both debit and credit spreads) on the trend signals INSIDE the major buy signal.
As a high probability set up you can trade this signal by itself or you can trade the trend inside the signal which will trigger at 2966. Either way, set your alerts and get on with your life.
I hope this tool helps you to achieve some degree of peace in your trading.
To get access to the tool, please contact the author.
Conservative scalping incomeThis fully automated scalping strategy aims for an 10-12% annual return using LONG positions only (i.e. no SHORTs), with 2 to 1 number of winning trades and 1.5 to 1 avg win amount vs avg loss amount. It should generally make from zero to four trades per day depending on market conditions. It should remain in a position for roughly an hour. It leverages numerous indicators, including multiple moving averages, ADX, and MACD.
Note that this strategy does not try to time tops and bottoms. Rather it waits to clearly identify a trend, and then rides that trend for a short while making a defined profit. Thus it may enter and exit a trade under profitable conditions, but not at the most profitable conditions possible. It gets in when it's sure of the trend, and then generally leaves that trend as soon as a defined profit is made or before a meaningful loss is incurred.
This strategy will work well with any index (e.g. SPY) and most stocks. It works best on a five minute time interval and when the index or stock is either generally increasing over time or bouncing back and forth between a medium to wide range.
Dollar cost averaging This is a testing startergy based on dollar cost averaging and sell on high points.
AlphaScalp [Backtest, No RealTime]AlphaScalp tries to find volatility moves and profits from the small pullbacks.
Even though the performance of this script in a fair amount of cases will beat HODL it is not the purpose. AlphaScalp aims for a high accuracy and profitfactor to ensure a more or less stable profit taking.
The properties like " MA Length " and the " Short - " or " Long line % " tweaks the risk by increasing or lowering the requirements for a buy (Long or Short). Close/Exit of each order is then handled by TP, SL or volatility stop.
For high volatility assets it is recommended to use the " Sell LONG on Volatility DOWN " and " Sell SHORT on Volatility UP " to ensure a TA approach for StopLoss. Normal SL is also possible to set but is not recommended on high volatility assets since you quickly can be stopped out by wicks.
AlphaScalp works best on high volatility assets with a solid liquidity and volume - but it will also work on stocks and low volatility assets.
AlphaScalp is designed for scalping and is thereby recommended to use between 5M-1H.
This version is free for your to backtest on all assets - but be aware that alerts on RealTime bars are disabled - meaning you can add alerts but they will not trigger in real time. To ensure you have the latest backtesting results, you need to have the script added to your chart, save your chart and the refresh the page.
Enjoy and please let me know if you have any questions
moonshot hypertrender (supertrend strategy)
This is a well-known strategy by using 3 different Supertrends and a trend-defining EMA,
feel free to play around with the settings, a backtest on 8h ETHUSDT pair brought some good results using
the 233EMA and investing 75% of a 10k start capital.
The idea is to have at least 2 Supertrends going green above the trend-EMA to go into a long position. The exit
will be triggered if 2 Supertrends change to red (idea: 1 super trend in red could initialize a take profit).
Taking shorts works vice versa.
The EMA shows in green for uptrends and in red for downtrends, if it is blue (ranging market) no Signal will be taken because
the 3 Supertrends are not all above or below the trendline(EMA).
I heard about this strategy on youtube but I can't get the promised 60% win-rate ;)
any suggestions to improve it are welcome
Hope you find it useful and it would be nice to get your feedback
-theasgard-
Classic Long Term Trend Following SystemThis is a classic long term trend following system.
The breakout period is 50 days instead of 20 and the moving average crossover are 40 and 120.
The moving averages are also exponential instead of simple.
The stoploss is 4 ATRs away from the price.
Recommendations:
Donchian Channels settings > 50 days
Moving Averages > 40 and 120, 80 and 140
Important to note:
My first strategy, DC Breakout System | This is simplicity at its finest, is best used on the crypto market and this one for stocks, commodities, currencies, etc. Those markets tend to trend a lot longer than crypto do.
Trend Following with Bollinger BandsThis is a trend following system which uses the Bollinger Bands instead of the Donchian Channels.
Long position:
* Price closes above the middle line.
* The fast EMA (in this case the 40) crosses over or is above the slow one (in this case the 120)
Short position:
* Price closes below the middle line.
* The fast EMA crosses under or is below the slow one.
Stoploss:
* 4 ATRs away from the price.
Agressive Scalper StrategyAfter many different tests and tries we found a strategy which is suited for people that likes to trade in shorter time frames. It uses multiple indications for entries. Entries include indications like Double ATR, Consolidation Detection, Dynamic RSI Calculation with Overbought and Oversold lines and also previous bars highs and lows. Although this strategy has been coded and tested on short time frames, after many additions it turns out it can be very profitable in every time frame if you play with the settings. Also it has some helpers for people that likes to optimize and see how their choices affects the outcome.
The strategy calculates the entry with the rules below:
LONG ENTRY RULES
- Price must be in consolidation zone
- Fast ATR Must be higher than Slow ATR
- Dynamic RSI must be below the oversold line (Green Line as Default)
- The Signal lookback must allow entry. (For example if you set signal lookback to 5, if the LOW of current price is LOWEST point of last 5 bars it is okay to enter LONG) If you check the lookback helper it will show you as green arrow at the bottom.
SHORT ENTRY RULES
- Price must be in consolidation zone
- Fast ATR Must be higher than Slow ATR
- Dynamic RSI must be above the overbought line (Red Line as Default)
- The Signal lookback must allow entry. (For example if you set signal lookback to 5, if the HIGHEST of current price is HIGHEST point of last 5 bars it is okay to enter SHORT) If you check the lookback helper it will show you as red arrow at the top.
This strategy has additional settings that are not available in indicator version that is previously released so i suggest everyone to use this instead.
Happy trading everyone!
Joint Conditions Strategy Suite + TradingConnector alerts bot"Please give us combined alerts with the possibility of having several conditions in place to trigger the alert." - was the top voted request from users under one of the recent blogposts by TradingView.
Ask and you shall receive ;)
TradingView is a great platform, with unmatched set of functionalities, yet this particular combo of features indeed seems not to be in place. Fortunately, TradingView is also very open platform, thanks to PineScript coding language, which enables developing combos like the requried one and plenty of other magic.
I have already published numerous "educational" scripts, showing how to code indicators and alerts with PineScript, but... this is not one of them. This one is for real. READY FOR USE on real markets, also by the non-coding traders. Just take my script, set parameters with dropdowns, backtest the strategy, fire the alerts and execute them.
HOW TO USE IT
In "Settings" popup I tried to mimic the CreateAlert popup dropdowns for selecting logic. Let's say you want to enter Long position at Stochastic KxD crossover. In first line of Long Entry conditions set "StochK" + "Crossing Up" + "StochD". Last field doesn't matter because in 3rd dropdown something else than "value" was selected. In second line you could set "maB" + "Greater Than" + "maC" to filter out those entries which are in direction of the uptrend. And yeah, add ADX>25 to make sure the market is actually moving: "ADX" + "Greater Than" + "value" + "25". All condition lines must be TRUE (or skipped) for the entry to be triggered. Toghether with an alert.
The same for Short entries. Combinations are limitless.
INDICATORS AND MTF (MULTI-TIMEFRAME)
In those dropdowns you can select candle values like open/close/high/low/ohlc4, but also some most popular indicators, which I have pre-built into this script: RSI, various Moving Averages, ADX-DMI, Stochastic and Bollinger Bands for start. You can configure parameters of those indicators also in "Settings" popup, in "Indicator Definitions" section. What's important, you can use any of these indicators from higher timeframe, setting MTF multiplier. So if you applied this indicator to 1h chart, but want to use rsi(close,14) from 4h chart, set MTF to 4. If you want to use current timeframe indicators, keep MTF at 1, which is a default setting here.
Note for coders: to keep focus of this script on joining conditions, entire logic for those indicators has been moved to external library, also open source. I encourage you to dig into the code and see how it's done. I love the addition of libraries concept in PineScript.
CUSTOM INDICATOR
Following the "openness" spirit of my master - which is TradingView itself - my work is also open, in 2 ways:
1. This script is open source. So you can grab it, modify or add any functionalities you want. I cannot and don't want to stop you from doing that. I'm asking for only one favor - please mention this source script in your credits.
2. You can import the plot (series) from any other indicator on TradingView. In Settings popup of my script, scroll down to "Indicator Definitions" section, and select the series of your choice in the first dropdown. Now it is ready to use in conditions dropdowns on top of the Settings popup.
Let me give you an example of that last scenario. Take another script of mine, "Pivot Points on SR lines DEMO". You can find it in "Indicators & Strategies" library or here: (). Attach it to your chart. Now come back to THIS script, open Settings popup and in "Custom Indicator aka Imported Source" select "Pivot Points on SR lines: ...". The way it works - it detects if a pivot point happened on Support/Resistance line from the past and returns 1 for PivotLow and -1 for Pivot High. Now in first Long Entry condition set: "custom indicator" + "Greater Than" + "value" + "0" and long entries will be marked on every pivot low noticed on Support/Resistance line.
ALERTS
Last but not least - the alerts. This script produces alerts on the entries calculated by strategy logic, as marked on the chart by the backtester. Moreover, syntax of those alerts is already prepared and fully compatible with TradingConnector - alerts executing tool (bot), if you want to auto-execute those trades. Apart from installing the tool, you need to set
up the alerts in TradingView, here is how:
open CreateAlert popup
in first dropdown select "Joint Conditions Strategy Template"
in second dropdown select "alert() function calls only"
And that's all. You only need to set one alert for the whole script, not one for Longs and one for Shorts as it was in the past. Also, you don't need to setup closing alerts, because stop-loss/take-profit/trailing-stop information is embedded in the entry alert so your broker receives it as early as possible. Alerts sent will look like this: "long sl=40 tp=80", which is exactly what TradingConnector expects.
Phew, that's all folks. If you think I should add something to this template (maybe other indicators?) please let me know in comments or via DM. Happy trading!
P.S. Pyramiding is not supported in this script.
Disclaimer : I'm not saying above combination of conditions will make you money. Actually none of this can be considered financial advice. It is only a software tool. Use it wisely, be aware of the risk and do your own research!
Multi MA Trend Following Strategy TemplateTrend following is one of the better known technical trading strategies. But, which trend should you follow? Today I am sharing with the community a trend following template script that includes a selection of over 20 different trends / regressions. Some of these are in the Pine library, and some have been custom coded and contributed over time by the beloved Pine Coder community.
How it works:
This template will plot any of the 20+ trends that you can select in the settings. The strategy component will buy if the trend line is moving up, and will sell if it moves down. If the line is green that indicates that the trend is higher than the prior bar. If the line is red that indicates that the trend is lower than the prior bar. This script is different from many moving average scripts in that it follows the trend itself and doesn't look for a cross of multiple trends.
How to use it:
When wanting to trend follow an instrument, you can use this template to help identify what approach you might want to take and/or which indicator you might want to use. You can also modify the strategy as you see fit and make use of the 20+ incorporated indicators. Incorporate your trade and risk management strategy, or use it as an indicator.
Disclaimer: Open source scripts I publish in the community are largely meant to spark ideas that can be used as building blocks for part of a more robust trade management strategy. Even though this example script might beat buy and hold over the back-test time-frame, I wouldn't advise using it as a stand-alone strategy without significant additions/modifications to the strategy and risk management functions.
Position Investing by SirSeffThis is for my group.
The ideas is to dollar cost average whenever the band is green and pause investing when the band is red.
This gives you two things:
1. You'll minimize averaging down. Ibig sabihin maiiwasan mo bumili tapos kinabukasan down agad.
2. you'll maximize averaging up or scaling up. Ibig sabihin, most likely nakaka bili ka na green days and green kinabukasan.
Join the FB group fb.com/groups/usstocksforfilipinos
With Net profit of 87.72 % at hindi pa kasama compounding effect niyan whenever you top up on green bands.
Percent Profitable is 2.07 ibig sabihin ma dodoble mo ang account mo when you religiously follow this.
Max Loss Drawdown is 7.43 %, ibig sabihin maminimize mo ang losses down to 7.43%
MA MTF Cross StrategyStrategy Introduction
This multi-timeframe strategy generates buy and sell entries based on two Moving Averages’ cross with an option to turn on trend direction confirmation through 3rd Moving Average selection. While all three moving averages can be selected from the following list:
SMA
EMA
DEMA
TEMA
LRC
WMA
MF
VAMA
TMA
HMA
JMA
Kijun v2
EDSMA
McGinley
Only long trades are enabled currently
Default Settings
I've set the default selection to the perfect options for 1D timeframe. You can modify all MAs selections and their lengths according to your selected timeframes.
Following default settings are used:
Heiken Ashi Candles are selected by default as source
1st Moving Average selection is set to LRC (Linear Regression Curve)
Length of 1st Moving Average is set to 50
2nd Moving Average is set to EDSMA (Ehlers Deviation-Scaled Moving Average)
Length of 2nd Moving Average is set to 30
3rd Moving Average is set to HMA (Hull Moving Average)
Length of 3rd Moving Average is set to 200
Uptrend direction confirmation through 3rd Moving Average is set to false by default
Start date is set to start from 2013
Backtesting can also be done selecting %age of equity
Suggestions for Usage
Mostly winning trades by set defaults have no prominent drawdown so losing trades can be abolished with Stoploss. Would soon add Stoploss and Takeprofit options in next version. Also, if you want an alerts version of it then just comment below and would publish it later. I’ve found this strategy useful on 1D timeframe with described default settings but multiple Mas selections can be explored further.