Three moving average strategies
If the short term (Default 7) moving average cuts the medium term (default 25) moving average, BUY. Conversely, it generates the SELL signal. If the long term (Default 99) moving average cuts its short term moving average, Quick SELL. Conversely, it can be interpreted as Fast SELL. You can change the moving average and the number of days as you wish, and you can trade in the short or long term. I hope it was useful.
Strategies
DMT 369 DRAGRONFLY STRATSuccessful traders trade with a fixed plan and without emotion, but this a lot harder than many new traders think. Many never master this skill and suffer continual drawdowns on their accounts as they overtrade high leverage positions in volatile markets.
ĐΜŦ Autobot resolves this issue by taking the human element out of the equation, allowing full automation of trades using TradingView alerts to trigger your favourite trading bot, such as Alertatron or 3Commas.
Being a Trend Reversal Indicator based on Volatility & Average True Range, ĐΜŦ Autobot is designed to identify spots in the market that offer suitable scalp and swing trade opportunities.
Due to popular demand we have expanded our ĐΜŦ Autobot product line to include the new ĐΜŦ Autobot Dragonfly 3-6-9 Edition which combines DMT with 3-6-9 Vortex mathematics, our Titan indicator and a multi-ladder scalping strategy to ensure you maintain a preferable average entry when price action moves against your position.
Indicator View
It its default state the DMT Autobot Dragonfly indicator displays key signal information, such as:
• Support & resistance range lines
• Titan Body Small & Large Time Frame lines
• Long & Short entry positions
• Long & Short position ladders
• Profit targets
Dragonfly displays a range between resistance (upper line) and support (lower line) on the chart.
Once the price is granted support in the range the lower line will turn green. As price action develops it will make repeated attempts to test support. If support holds price will attempt to test the resistance line (red).
When resistance is broken and the price is above the upper line, the line will turn blue confirming the bullish momentum and provide a potential buy opportunity.
Price action will make attempts to test the upper line as support and will keep rising while support is granted.
Once support is lost the upper line will become red once more. As price action develops it will make repeated attempts to test resistance. If resistance holds, the price will attempt to test the support line (green).
When support is broken and the price goes below the lower line, the line will turn red confirming the bearish momentum and provide a potential selling opportunity.
Price action will make attempts to test the lower line as resistance and will keep dropping while resistance is granted.
Titan Body
The Titan Body Small & Large time frame options in the indicator add additional trendlines to the chart to provide further clarity and confirmation to the Support & Resistance range indication.
Once price is granted support by the Small Time Frame trend line the line will turn green. As price action develops it will make repeated attempts to test the Small Time Frame support. Once the price is below the Small Time Frame trend line, the line will turn red and can act as resistance in a trend reversal.
When price is granted support by the Large Time Frame trend line the line will turn cyan. As price action develops it will make repeated attempts to test the Large Time Frame support. Once the price is below the Large Time Frame trend line, the line will turn orange and can act as resistance in a trend reversal.
The Titan Body enabled and customized in the indicator’s style settings,
Alert indicators
DMT Autobot Dragonfly Edition generates signals that can be used to scalp trade a volatile asset.
Signals are enabled and customized in the indicator’s input settings Additional options can be found in the options, but it is recommended that these are left at the default, as shown below. The indicator generates many
Entry and Profit levels can be disabled or customized in the indicator’s style settings,
Tradingview Alerts
Using Tradingview alerts, DMT Autobot Dragonfly signals can be used to trigger a trading bot.
To trigger a long or short position, set the Tradingview Alert Condition to DMT 369 Dragonfly and select the long or short option.
It is recommended that long or short positions are configured to trigger Once Per Bar Close
Ladders can also be triggered using alerts. To trigger a ladder order, set the Tradingview Alert Condition to DMT 369 Dragonfly and select the appropriate Long or Short ADD option that is to be triggered by the relevant values defined in the indicator’s configuration.
It is recommended that ladder orders are configured to trigger Once Per Bar,
To trigger a take profit order, set the Tradingview Alert Condition to DMT 369 Dragonfly and select the Long or Short TP option that is to be triggered by the relevant values defined in the indicator’s configuration.
Take profit orders can be configured as Once Per Bar Close or Once Per Minute.
If you wish to trigger a take profit signal immediately when the indicator’s defined take profit value is achieved, then use the Once Per Bar option.
Selecting Once Per Bar Close to generate a take profit signal is a gamble as the candle may close far away from the defined profit target – positive or negative.
While stops can be used, they are not applicable to the recommended ladder strategy.
Ladder Strategy
The DMT Autobot Dragonfly indicator always turns an underwater position into a win by utilizing a ladder strategy.
By using the recommended defaults, the indicator will trigger ladder orders at 3%, 6% & 9% using increasing order sizes,
Order sizes increase exponentially to ensure a good average price is maintained. If you are not using DMT Autobot Dragonfly signals to trigger ladder or take profit orders, please ensure your trading bot is configured to recalculate the new ladder entry and profit target based on the new average position entry price as each ladder is filled.
If you are using DMT Autobot Dragonfly on a leveraged asset, please ensure the leverage position is configured suitably so that your position is not liquidated if the price rapidly moves against you.
If u are looking for more information or access to the script please private msg me in trading view chat thx for support
Strategy Quadratic Semaphore I add a basic strategy for the "Quadratic traffic light" indicator, it can help to find a good configuration.
Regards.
BEST Trailing Stop StrategyHello traders
Here we go again.... with the second strategy snippet.
Reminder: the first snipper was a Trailing Profit strategy script
What's on the menu?
A trailing stop is designed to protect gains by enabling a trade to remain open and continue to profit as long as the price is moving in the investor's favor.
The order closes the trade if the price changes direction by a specified percentage or dollar amount.
Trigger me I'm famous
I developed many trading strategies in my career and often I've been asked to trigger a trailing-stop once a certain % move has been made.
On the screenshot below, the SL trigger is plotted in maroon.
Once the price goes past that level for the first time, I'll start trailing the trailing stop level.
In other words, when we see a price makes an interesting move in percentage value - we decide to trail the stop for at least not losing any more
All the BEST
Dave
BEST Trailing Take Profit StrategyHello traders
Hope you enjoyed your weekend on my behalf. Was staying home working ... ^^
This is my first strategy educational post I'm doing ever
While I'm generally against posting strategies because it's very easy to fake performance numbers... I cannot prevent myself from sharing a few cool strategy snippets anyway.
So from now on, I'll be sharing a few strategies also - generally not to showcase performance but only to show what pinescript can do.
As once again strategy performance can be faked is so many ways... :)
What's on the menu?
We all know what a trailing-stop is. right? right? Ok... sharing the definition here :)
A trailing stop is designed to protect gains by enabling a trade to remain open and continue to profit as long as the price is moving in the investor's favor. The order closes the trade if the price changes direction by a specified percentage or dollar amount.
But...do you know what a trailing profit is?
Short definition : Well the same but with your profit limit order.
Long definition : A trailing profit is designed to increase your gains by enabling a trade to remain open and continue to profit as long as the price is moving in the investor's favor. The order closes the trade if the price hits the trailing profit level specified percentage or dollar amount.
Some trading strategies used both a trailing stop AND trailing profit. Not making any recommendation here - only sharing what's possible in the realm of trading and pinescripting
Trigger me I'm famous
I developed many trading strategies in my career and often I've been asked to trigger a trailing-stop or trailing-profit once a certain % move has been made.
I integrated here a Take Profit trigger - once hit, it will activate the trailing profit
On the screenshot below, the TP trigger is plotted in orange. Once the price goes past that level for the first time, I'll start trailing the profit level.
In other words, when we see a price makes an interesting move in percentage value - we decide to offset the profit as we concluded that once it reached such distance - then it leads often to more profit
Of course, using only a trailing profit without stop/trailing-stop/invalidation isn't smart and the surest way to kiss goodbye a trading capital and trading and your good mood
See you tomorrow for another strategy snippet
All the BEST
Dave
Market Structure Finder [Dzenis]This indicator is designed to help you visualize the high timeframe market structure breaks and shifts in trend.
It finds local swing highs and lows, and defines the market structure based on them.
Break above the blue line = market structure is bullish, look for long/buy
Break below the red line = market structure is bearish, look for short/sell
I wrote it as a strategy so it can be easily backtested, giving a more complete picture of its effectiveness for catching larger swings.
It works best in trending markets such as Bitcoin.
This specific backtesting strategy and buy/sell signals on the chart are meant for trading the spot markets.
Buy signal triggers the entry with 70% of the trading capital (can be adjusted in the indicator menu and backtested with different percentages).
Sell signal exits the position.
The results assume 0.1% trading fees by default (adjustable in the menu as well).
It does not repaint.
If trading the futures markets it can be used purely as an indicator to help you form a HTF bullish/bearish bias and look for trade setups accordingly.
Although it's not designed for intraday moves, it can be used on lower timeframes as well.
8h timeframe for swing trades.
1h timeframe for intraday setups.
Daily timeframe is still the suggested and main use of this indicator (forming high timeframe bias).
For any questions and inquiries, feel free to DM me.
RSI-RENKO Divine Strategy (Backtesting)Live, non-repainting strategy using RENKO and RSI mixed together to multiple types of long and short positions.
- Features -
Live entry direction with trade warnings and alerts
Live trade building buy and sell limits (for buy/sell limits)
Entry location icons as well as pyramid entries (to add to existing position)
Swing trades that keep you in the trade for the maximum possible profit
1 scalp target based on the RSI settings and entry location
Dynamic trailing stop for swings and scalps
Alert conditions for every update and condition change of the strategy (Provided by indicator study)
4 pre-built color themes, including candlestick coloring
This strategy is best used with the companion indicators: Renko RSI and Renko Trend Momentum using the identical RSI and Trend settings.
The linked script is identical and used solely for alerts, because Trading View still after 3 years of requesting does not provide the ability to use alert conditions inside a strategy script, only an indicator script. This strategy should be used to backtest your settings.
The approach to this strategy uses several parallel trades of different types. In order to generate multiple trade types the "pyramid trades" setting of the strategy (second tab of the settings that lets you adjust the number of pyramid contracts) should be used.
- Trade Types -
Swing: This trade is entered on the solid arrows after the RSI has become oversold or overbought. It is key that all trades wait for some degree of pullback before entering, even after the trend flips between positive and negative. This trade is held until stopped out or an opposite trade is triggered that reverses the position.
Scalp: These trades have a limit buy/sell entry and a target. The initial target is the opposing RSI overbought or oversold level and changes in real time.
Turning on/off the different trade types (strategy only) is simple done by decreasing the number of contracts used for that trade type to zero. When the quantity is set to zero, that trade is not considered.
- Session -
The session filter is used to narrow trade executions by only allowing trades that are inside the session boundaries. This can be used to isolate the London or New York session for example. The default is 24 x 7 which filters no trades (Trading View has a bug when resetting this, so simply reset the indicator to get it back to 24x7).
Please see the following 3 videos introducing the concept of this strategy.
All feature requests or bug reports are welcome either by direct messaging or comments on this page or the linked indicator page.
Please PM for access. Cheers.
HFT Quant AlgoPrivate Fund Algo - HFT/Quant Approach Beta I
2019 Performance
1/Jan/2019 ~ 8/May/2019
Included:
Commission 0.1%
Slippage 100 ticks
TradingLive24 System EOSUSDThis is a script for EOSUSD in 5 minutes resolution.
It will show you when you must to Buy, Sell or Exit from the Crypto.
The strategy has 80% of success. You can modify and adapt it to your requirements.
If you want to have more entries, you only need to modify the parameters 3 and 4, preferably with values less than 20.
Usually, the parameter 4 need to be grater than parameter 3.
The parameters 1 and 2 don't need to be modified, but you can touch them too.
Also, the TakeProfit1 and StopLoss1, usually are greater than TakeProfit2 and StopLoss2.
If you want more percent of success, you can modify the TakeProfit with a smaller number.
Get 10-day Free Trial, just send us your TradingView Username here www.tradinglive24.com
Trend Reversal Alerts Strategy [4H/3M]This is advanced version of T-R.A.S with better logic adapted for 4hour / 3month timeframes
Trend Reversal Alerts Strategy [Advanced]This is a hourly version of T-R.A.S
It's better for houry timeframes : 2h, 3h, 4h, 6h, 12h, 1d, 4d ; otherwise use version for weekly
[NG] Strategy: CryptoMine - v1 - Low Drawdown - Beats Buy&Hold!So, I created this strategy that works on BTCUSD 0.28% pair along with almost all ALT-BTC pairs, and ALT-USD pairs (i.e. the cryptosphere). Here are some of the considerations I had when creating this script:
- Should work on BTCUSD 0.28% , along with most ALT-BTC and ALT-USD pairs without modifying strategy parameters for individual pairs.
- Should work with several timeframes, esp -0.67% . 15m-4hr timeframes. Better if the parameters are adjusted for these timeframes, automatically.
- Should have a small MaxDrawdown. Arguably <50% for cryptos.
- Should beat buy and hold profits for the pair.
- Should have multiple modes for switching between: Higher Returns vs Lower Drawdowns, multiple Long/Short versions - one which allows me to do margin trading by using the short calls (so, LONG, SHORT and FLAT), and another one where I can use the short calls by exiting out of the market and entering when the short call ends (so, LONG and SHORT only).
- Should have proper risk management built-in. Moreover, TakeProfit and StopLoss will be defined at a fixed 20% each, which is reasonable for crypto markets. Most strategies I see on tradingview fail on this count.
After several weeks of building such a script, and testing it successfully on multiple pairs - here are the results. :)
ETHBTC
=======================================================================================
Mode 1 (LONG and SHORT only)
--------------------------------------
First Trade: 2015-08-10 09:30, Final Profit: 1474649.65%, Drawdown: 66.21%, PF: 2.149, Trades: 1059
--------------------------------------
Mode 2 (LONG, SHORT and FLAT positions)
First Trade: 2015-08-14 05:30, Final Profit: 715274.55%, Drawdown: 36.34%, PF: 2.806, Trades: 589
BTCUSD 0.28%
=======================================================================================
Mode 1 (LONG and SHORT only)
--------------------------------------
First Trade: 2015-01-03 21:30, Final Profit: 28944.04%, Drawdown: 44.87%, PF: 1.353, Trades: 1222
--------------------------------------
Mode 2 (LONG, SHORT and FLAT positions)
First Trade: 2015-01-11 13:30, Final Profit: 22522.28%, Drawdown: 27.77%, PF: 1.877, Trades: 669
NANOBNB
=======================================================================================
Mode 1 (LONG and SHORT only)
--------------------------------------
First Trade: 2018-02-04 23:30, Final Profit: 365.5%, Drawdown: 39.4%, PF: 1.967, Trades: 51
--------------------------------------
Mode 2 (LONG, SHORT and FLAT positions)
First Trade: 2015-01-11 13:30, Final Profit: 236.91%, Drawdown: 25.62%, PF: 3.692, Trades: 25
NOTE: I will not be sharing access to this script, since market saturation is a real thing. Send me an email at menikhguptacom - if you are really interested in this script.
Critical Level Hybrid Strategy (private beta)*This is a private beta version. Public version coming soon.*
-This strategy is based off the MTFCLM indicator, and Kaufman Adaptive Moving Averages.
-Perform in-depth technical analysis within seconds.
-Buy and sell signals, plus custom alert script included.
Note: To see the most accurate levels displayed on the screen, refresh your chart whenever new levels are drawn.
Cowabunga System from babypips.comPlease do read the information below as well, especially if you are new to Forex.
The Cowabunga System is a type of Mechanical Trading System that filters trades based on the trend of the 4 hour chart with EMAs and some other familiar indicators (RSI, Stochastics and MACD) while entering trades base on 15 minute chart.
I have coded (quite amateurishly) the basic system onto a 15 minute chart (the 4 hour settings are coded as well). The author says the system is to be traded off the 15 minute chart with the 4 hour chart only as a reference for trend direction.
4 Hour Chart Settings
5 EMA
10 EMA
Stochastics (10,3,3)
RSI (9)
Then we move onto the 15 minute chart, where he gives us the trade entry rules.
15 Minute Chart Settings
5 EMA
10 EMA
Stochastics (10,3,3)
RSI (9)
MACD (12,26,9)
Entry Rules - long entry rules used, obviously reverse these for shorting.
1. EMA must cross above the 10 EMA.
2. RSI must be greater than 50 and not overbought.
3. Stochastic must be headed up and not be in overbought territory.
4. MACD histogram must go from negative to positive OR be negative and start to increase in value.
What I did.
1. Set the RSI and Stochastic levels to avoid entries when they indicate overbought conditions for long and oversold conditions for short (80 and 20 levels).
2. Users can input specific times they want to backtest.
3. User's can configure profit targets, trailing stops and stops. Default is set it to was 100 pips profit target with a 40 pip trailing stop. (Note, when you are changing these values, please note that each pip is worth 10, so 100 pips is entered as 1000.)
The Cowabunga System from babypips.com is another popular and active system. The author, Pip Surfer, continues to post wins and losses with this system. It shows there is a lot of honesty and integrity with this system if the author keeps up to date even 10 years later and is not afraid of sharing the times the system causes losses.
As an example of this, here is post he shared just last week . It's almost like a journal, he gives specific times and reasons why he entered, lets the readers know when he was stopped out, etc. I think that what he does is equally important as his system.
To read more about this system, visit the thread on babypips.com, click here.
Simple Strategy Code StubThis is a very basic strategy implementation
Use as a code stub for your strategy code. I wrote it because I could not find one.
This particular strategy goes long on Tuesdays at 10 am and goes short at 3 pm on Thursdays.
Because US markets open at 9:30 you have to have your chart in 30 minute or less resolution for trades to fire.
You can gut that code and replace it with your own to start testing your own indicators and strategies.
If you build a strategy that doesn't use "hour" like I have this resolution requirement won't apply.
For giggles, compare its performance to other strategies. Weird, huh? About 53% effective on most equities and indexes.
This strategy does the minimum needed to get a strategy working
and uses default position sizes and buys at market with no stops.
Again, it is the minimal code stub needed to test an indicator/rule based strategy.
A great code reference for building more sophisticated strategies can be
found here =>
The code is written by @greatwolf and is very well structured for anyone looking to fully utilize
strategy features for position sizing, limit orders, stops and cancellations.