Simple and efficient MACD crypto strategy with risk managementToday I am glad to bring you another great creation suited for crypto markets.
MARKET
Its a simple and efficient strategy, designed for crypto markets( btcusd , btcusdt and so on), and suited for for higher time charts : like 1hour, 4hours, 1 day and so on.
Preferably to use 1h time charts.
COMPONENTS
MACD with simple moving average
ENTRY DESCRIPTION
For entries we have :
We check the direction with MACD . Depending if its an uptrend and positive level on histogram of MACD we go long, otherwise we go short.
RISK MANAGEMENT
In this strategy we use a stop loss based on our equity. For this example I choosed a 2% risk .That means if our account has 100.000 eur, it will automatically close the trade if we lose 2.000.
We dont use a take profit level.
In this example also we use a 100.000 capital account, risking 5% on each trade, but since its underleveraged, we only use 5000 of that ammount on every trade. With leveraged it can be achieved better profits and of course at the same time we will encounter bigger losses.
The comission applied is 5$ and a slippage of 5 points aswell added.
For any questions or suggestions regarding the script , please let me know.
Moving Averages
Turtle Trend Trading System [racer8]This is the Turtle traders' actual system which uses a 55 period channel for entries & a 20 period channel for exits. Enjoy ;)
Donchian Channels System [racer8]Donchian Channels was developed by Richard Donchian in 1949. They have been used with great success by the Turtles, a group of traders in the 1980s who managed to obtain returns of 80% annually. Truly incredible story.
This particular indicator is a trend trading system I coded that shows you when to enter long or short and when to exit those longs or shorts.
In addition, this indicator shows the past performance results that are incredibly valuable information for backtesting this system.
The high, mid, and low lines have been plotted to show how this system works. The blue line is the high line. The gray line is the mid line. The red line is the low line.
Entry signals are generated when the current close closes above the highest price for a long trade or below the lowest price for a short trade over n periods.
Exit signals are generated when the current close crosses the mid-line (aka. baseline) and closes.
Baseline = (highest price + lowest price)/2
I encourage you to play around with the settings, although I reccomend avoiding any period below 14.
This system is no bullshit, it's the real deal.
Good luck traders, and enjoy ;)
© Investoz trendwarningThe indicator is built as an educational purpose and is therefore not a recommendation for buying/selling shares.
The idea is to create a visual form in a graph that shows if there is any trend, both positive and negative. A dialog box with a warning tells you what trend prevails.
In the code, there is an opportunity to take a position or go out of position if you want to create a strategy around this trend indicator. However, I strongly recommend not to rely solely on this indicator as a buy/sell decision as the results will most likely be negative if you buy on a positive trend and sell on a negative trend. It must be combined with other ideas and therefore this script works more as a complement to your own strategy.
It is free for anyone to use this indicator and make it better.
Golden Triangle StrategyGolden Triangle strategy setup is a variation of the buy-the-dip strategy, by Charlotte Hudgin.
You can find the detailed explanation here by Thomas N. Bulkowski thepatternsite.com
BUY
===
1. price should be trading above sma50
2. when it touches sma50 first time , check the starting rallypoint of where it initiated
3. from the above point to current close , see if you have white space , then draw the triangle
4. then check for volume confirmation ( current volume should be greater than last 4 ) --- I have slightly changed this to fit into hourly strategy by adding condition close>vwap
EXIT
====
1. Exit when close crossing down sma50 with at least 2% profit (slightly modified original condition)
StopLoss
========
2. stop loss is set to 6%
Warning
=======
For the use of educational purposes only
Lagged Donchian Channel + EMAThis strategy is based on a lagged 24 periods Donchian Channel and a 200 periods EMA .
The enter positions are calculated this way :
Bull entry
1. we wait for the close of a candle below the channel and it must be below the 200 EMA
2. the following candle must be a green one and close in the lagged channel
3. we put a long order at the close of the second candle, a stop loss at the low of last 3 candles and a x3 take profit
Bear entry
1. we wait for the close of a candle above the channel and it must be above the 200 EMA
2. the following candle must be a red one and close in the lagged channel
3. we put a short order at the close of the second candle, a stop loss at the high of last 3 candles and a x3 take profit
For both long or short positions :
If the order is not filled, it's cancelled if the price reach 50% of the TP or if the price reach the stop loss level
The position is closed if a new bear/bull condition appears in the other side of the position (if a bear appears when you're long and inversement)
Features :
Position calculator's included with leverage option
Labels of position can be plotted or not
Bull/Bear channels can be plotted with red and green filled
All parameters can be changed for backtesting
Better results have been got with defaults parameters on LTCUSDTPERP in H1 timeframe => profit factor of 2.84 with almost 100 positions.
Hope this strategy will be useful and it would be cool if I could get feedback, comments or better combinations of parameters !!
Don't hesitate to like and leave a comment ;)
@Mysteriown
TrianglePoint strategyThis is trend following strategy ... when price is trading well above 200 ema and forms a triangle (based on number of bars defined)
BUY
====
when fast ema > 200 ema
check for triangle of last N bars (default set to 9)
EXIT
======
when fast ema crosses down middle term ema
if price reaches above 5% of buy , it changes the color to purple. You can close any time or wait for above signal.
STOP LOSS
=======
stop loss default value set to 5%
Note: No triangle shown on the chart. I will find out how to add the lines to the chart.
Warning
=========
For the use of educational purposes only
Hull Moving Average vs CandleA Hull moving average is applied to the chart with settings for user to change the period of the Hull MA.
And a value of a previous candle is compared to the HMA. If the HMA is above the previous candle value, then the strategy will buy.
If below, it will sell. The default setting for the HMA is 50 and the Candle is D1 (Daily timeframe)
So basically if the HMA value is greater than yesterdays candle open, buy. ( i use open as a price source to avoid repainting)
This example is put onto ETHBTC chart and currency changed from default to BTC and Equity set to 1 BTC and commission set to 0.25%
The ETHBTC chart seems to follow good old moving average more than other pairs.
The strategy can be used on any pair and timeframes.
A good idea for setting the HMA period is:
small timeframe=big period, big timeframe=small period.
range from period=3 to period=200 is about right, for charts from 4H to 1 minute.
This HMA strategy is fairly simple, best to use other sources of information in combination with moving averages.
And strict money management, risk/reward control is very important to any trading strategy.
Not intended as stand alone strategy but has potential for bot use, i will publish a study version soon, for use with alerts and API bots.
Simple SMA Strategy Backtest Part 5Simple SMA strategy
In this stream, we will create an intraday trade cap.
WARNING:
- For purpose educate only
- This script to change bars colors
Stream:
www.tradingview.com
Super Guppy StrategyCM Super Guppy with Long/Short signals, backtesting, and additional options. Updated for PineScript v4.
COINBASE:BTCUSD
Features 2 primary modes, depending on your risk profile. These options are available in the settings:
"Early Signals" ON (default):
Prints a "long" on grey to green transitions AND red to gray transitions.
Prints a "short" on green to grey transitions AND gray to red transitions.
Will not print back-to-back repeated positions (i.e. green → grey → red will only print the first green → gray "short" signal and not print "short" twice).
Rotates long and short positions with no delay.
"Early Signals" OFF
Will close trades, but never open new ones, when guppy transitions to from any color to gray.
Open long: guppy transitions gray to green.
Close long: guppy transitions green to gray.
Open short: guppy transitions gray to red.
Close short: guppy transitions red to gray.
Does not rotate long and short positions back to back.
Additionally:
Can toggle on/off the 200EMA. Default is off.
Can toggle on/off short positions. Default is on.
In development: alerts
VWAP and BB strategy [EEMANI]This strategy combines VWAP and BB indicators
BUY RULE
1. EMA50 > EMA 200
2. if current close > vwap session value
3. check if price dipped BB lower band for any of last 10 candles
EXIT RULE
1. price closes above BB upper band
STOP LOSS EXIT
1. As configured --- default is set to 5%
warning: for the use of educational purposes only
ADX strategy (considering ADX and +DI only )I have been checking the strategies on ADX indicator.
I have found that +DI crossing above ADX line under threshold 30 and exit on crossdown when ADX above 30 has better results than just following crossovers of +DI and -DI , ADX crossing above 30 .
BUY Rule
========
fast ema is above slow ema (default 13 and 55 , you can change these values in settings)
+DI cross above ADX well beloe threshold level (default 30)
Exit reule
========
when +DI cross down ADX , well above on threshold level
Stop Loss
=========
Default is set to 8%
Take a look and let me know how your symbol works with this strategy
Note : Bar color changes to yellow when the BUY condition is met.
Bar color and Background color shows to blue --- if Long position is active
fast ema and long ema doesnt print on the chart -- please add manually to the chart
Warning : for the use of educational purposes only
Simple Moving Average CrossThe script uses 3 simple moving averages that you can define (SMA Top, SMA Mid, SMA Long).
Once the SMA Top is above the SMA Mid and the SMA Mid is above the SMA Top a long position is entered.
Once the SMA Top is below the SMA Mid and the SMA Mid is below the SMA Top a short position is entered.
You may define how long before these positions are entered by adjusting the bars in the Inputs section.
A setting of 0 will enter a position as soon as the conditions are met,
whereas a setting of 5 will wait 5 bars after the conditions are met before entering the positions.
Golden Cross Optimised For Reversal (by Coinrule)A moving average crossing is a common and widely adopted trading strategy. A short-term MA crossing above a long-term one provides the buy-signal. The opposite generates a sell-signal for the strategy.
Although very popular, this strategy has some limitations that lead to frequent "false signals" and only a few very profitable trades. If the strategy provides two many trades, that generates
the risk for more potential losses
more transaction fees paid
capital allocated to the strategy, thus the impossibility of catching other potential opportunities.
Applying an additional filter to the strategy, consisting of the crossing happening below a longer-term moving average, allows increasing the chances of catching the first crossing signaling a reversal.
The indicator is set to work with three moving averages.
Buy signal: The MA(9) to cross above the MA(50), which must be below the MA(100)
Sell Signal: The MA(9) to cross below the MA(50)
This indicator works significantly better on lower time frames, where it can reduce the noise of getting too many non-profitable signals from a conventional crossing strategy.
The indicator has been backtested mostly on cryptocurrencies.
ETF / Stocks / Crypto - DCA Strategy v1Simple "benchmark" strategy for ETFs, Stocks and Crypto! Super-easy to implement for beginners, a DCA (dollar-cost-averaging) strategy means that you buy a fixed amount of an ETF / Stock / Crypto every several months. For instance, to DCA the S&P 500 (SPY), you could purchase $10,000 USD every 12 months, irrespective of the market price. Assuming the macro-economic conditions of the underlying country remain favourable, DCA strategies will result in capital gains over a period of many years, e.g. 10 years. DCA is the safest strategy that beginners can employ to make money in the markets, and all other types of strategies should be "benchmarked" against DCA; if your strategy cannot outperform DCA, then your strategy is useless.
Recommended Chart Settings:
Asset Class: ETF / Stocks / Crypto
Time Frame: H1 (Hourly) / D1 (Daily) / W1 (Weekly) / M1 (Monthly)
Necessary ETF Macro Conditions:
1. Country must have healthy demographics, good ratio of young > old
2. Country population must be increasing
3. Country must be experiencing price-inflation
Necessary Stock Conditions:
1. Growing revenue
2. Growing net income
3. Consistent net margins
4. Higher gross/net profit margin compared to its peers in the industry
5. Growing share holders equity
6. Current ratios > 1
7. Debt to equity ratio (compare to peers)
8. Debt servicing ratio < 30%
9. Wide economic moat
10. Products and services used daily, and will stay relevant for at least 1 decade
Necessary Crypto Conditions:
1. Honest founders
2. Competent technical co-founders
3. Fair or non-existent pre-mine
4. Solid marketing and PR
5. Legitimate use-cases / adoption
Default Robot Settings:
Contribution (USD): $10,000
Frequency (Months): 12
*Robot buys $10,000 worth of ETF, Stock, Crypto, regardless of the market price, every 12 months since its founding time.*
*Equity curve can be seen from the bottom panel*
Risk Warning:
This strategy is low-risk, however it assumes you have a long time horizon of at least 5 to 10 years. The longer your holding-period, the better your returns. The only thing the user has to keep-in-mind are the macro-economic conditions as stated above. If unsure, please stick to ETFs rather than buying individual stocks or cryptocurrencies.
SMA StrategyIn this strategy, I took advantage of two different sma intersections for buying and selling points. You can use the intersection of 2 sma values for buying and 2 separate sma intersection for selling.
The main purpose of this strategy is to calculate the rate of return of the indicator belonging to this system. You can access the indicator version from this link and set an alarm.
Bitcoin - MA Crossover StrategyBefore You Begin:
Please read these warnings carefully before using this script, you will bear all fiscal responsibility for your own trades.
Trading Strategy Warning - Past performance of this strategy may not equal future performance, due to macro-environment changes, etc.
Account Size Warning - Performance based upon default 10% risk per trade, of account size $100,000. Adjust BEFORE you trade to see your own drawdown.
Time Frame - D1 and H4. H4 has a lower profit factor (more fake-outs, and account drawdown), D1 recommended.
Trend Following System - Profitability of this system is dependent on STRONG future trends in Bitcoin (BTCUSD).
Default Settings:
This script was tested on Daily and 4 Hourly charts using the following default settings. Note that 4 Hourly exhibits higher drawdowns and lower profit factor, whilst Daily appears more stable.
Account Size ($): 100,000 (please adjust to simulate your own risk)
Equity Risk (%): 10 (please adjust to simulate your own risk)
Fast Moving Average (Period): 20
Slow Moving Average (Period): 40
Relative Strength Index (Period): 14
Trading Mechanism:
Trend following strategies work well for assets that display the tendency of long-trends. Please do not use this script on financial assets that have a historical tendency for mean reversion. Bitcoin has historically exhibited strong trends, and thus this script is designed to capitalise on that behaviour. It is hoped (but we cannot predict), that Bitcoin will strongly trend in the coming days.
LONG:
Enter Long - When fast moving average (20) crosses ABOVE slow moving average (40)
Exit Long - When fast moving average (20) crosses BELOW slow moving average (40)
SHORT:
Enter Short - When fast moving average (20) crosses BELOW slow moving average (40)
Exit Short - When fast moving average (20) crosses ABOVE slow moving average (40)
Risk Warnings:
Do note that "moving averages" are a lagging indicator, and as such heavy drawdowns could occur when a trade is open. If you are trading this system manually, it is best to avoid emotions and let the system tell you when to enter and exit. Do not panic and exit manually when under heavy drawdown, always follow the system. Do not be emotional. If possible, connect this to your broker for auto-trading. Ensure that your risk per trade (Equity Risk) is SMALL enough that it does not result in a margin-call on your trading account. Equity risk must always be considered relative to your total account size.
Remember: You bear all financial responsibility for your trades, best of luck.
Daytrader strategies for major currenciesHello,
This technique is for those who want the most simple method that is almost fool-proof. It must be done only during the busiest trading hours, 3 am to 11 am EST. This method doesn't work in sideways markets, only in volatile trending markets.
Indicators:
Ema 3
MA 20
Awesome Oscillator.
Enter Long: when the red 3 EMA has crossed up through the middle band at the same time, the AO should be approaching or crossing it's zero line, going up.
Enter Short: when the red 3 EMA has crossed down through the middle band at the same time, the AO should be approaching or crossing it's zero line, going down.
In this strategy, both the entry and exit happen only during the london session.
Amazing scalper for majors with risk managementHello,
Today I am glad to bring you an amazing simple and efficient scalper strategy.
Best suited for 1M time frame and majors currency pairs.
Its made of :
Ema (exponential moving average) , long period 25
Ema(exponential moving average) Predictive, long period 50,
Ema(exponential moving average) Predictive, long period 100
Risk management , risking % of equity per trade using stop loss and take profits levels.
Long Entry:
When the Ema 25 cross up through the 50 Ema and 100 EMA. and we are in london or new york session( very important the session, imagine if we have only american or european currencies, its best to test it)
Short Entry:
When the Ema 25 cross down through the 50 Ema and 100 EMA, and we are in london or new york session( very important the session, imagine if we have only american or european currencies, its best to test it)
Exit:
TargetPrice: 5-10 pips
Stop loss: 9-12 pips
Hope you enjoy it :)
ATR Trailing Stop Strategy by ceyhunSame coding only coloring and strategy version added
//Barcolor
Green = Trail1 > Trail2 and close > Trail2 and low > Trail2
Blue = Trail1 > Trail2 and close > Trail2 and low < Trail2
Red = Trail2 > Trail1 and close < Trail2 and high < Trail2
Yellow = Trail2 > Trail1 and close < Trail2 and high > Trail2
//It gives White color where there is deterioration.
Let's not use InfoPanel in strategy, it would be wrong as it signals the next day.
PineScript v4 - Forex Pin-Bar Trading StrategyPineScript v4, forex trading robot based on the commonly used bullish / bearish pin-bar piercing the moving averages strategy.
I coded this robot to stress-test the PineScript v4 language to see how advanced it is, and whether I could port a forex trading strategy from MT4 to TradingView.
In my opinion, PineScript v4 is still not a professional coding language; for example you cannot use IF-statements to modify the contents of global variables; this makes complex robot behaviour difficult to implement. In addition, it is unclear if the programmer can use nested IF-ELSE, or nested FOR within IF.
The sequence of program execution is also unclear, and although complex order entry and exit appears to function properly, I am not completely comfortable with it.
Recommended Chart Settings:
Asset Class: Forex
Time Frame: H1
Long Entry Conditions:
a) Moving Average up trend, fast crosses above slow
b) Presence of a Bullish Pin Bar
c) Pin Bar pierces either Moving Average
d) Moving Averages must be sloping up, angle threshold (optional)
Short Entry Conditions:
a) Moving Average down trend, fast crosses below slow
b) Presence of a Bearish Pin Bar
c) Pin Bar pierces either Moving Average
d) Moving Averages must be sloping down, angle threshold (optional)
Exit Conditions:
a) Stoploss level is hit
b) Takeprofit level is hit
c) Moving Averages cross-back (optional)
Default Robot Settings:
Equity Risk (%): 3 //how much account balance to risk per trade
Stop Loss (x*ATR, Float): 2.1 //stoploss = x * ATR, you can change x
Risk : Reward (1 : x*SL, Float): 3.1 //takeprofit = x * stop_loss_distance, you can change x
Fast MA (Period): 20 //fast moving average period
Slow MA (Period): 50 //slow moving average period
ATR (Period): 14 //average true range period
Use MA Slope (Boolean): true //toggle the requirement of the moving average slope
Bull Slope Angle (Deg): 1 //angle above which, moving average is considered to be sloping up
Bear Slope Angle (Deg): -1 //angle below which, moving average is considered to be sloping down
Exit When MA Re-Cross (Boolean): true //toggle, close trade if moving average crosses back
Cancel Entry After X Bars (Period): 3 //cancel the order after x bars not triggered, you can change x
Backtest Results (2019 to 2020, H1, Default Settings):
EURJPY - 111% profit, 2.631 profit factor, 16.43% drawdown
EURUSD - 103% profit, 2.899 profit factor, 14.95% drawdown
EURAUD - 76.75% profit, 1.8 profit factor, 17.99% drawdown
NZDUSD - 64.62% profit, 1.727 profit factor, 19.14% drawdown
GBPUSD - 58.73% profit, 1.663 profit factor, 15.44% downdown
AUDJPY - 48.71% profit, 1.635 profit factor, 11.81% drawdown
USDCHF - 30.72% profit, 1.36 profit factor, 22.63% drawdown
AUDUSD - 8.54% profit, 1.092 profit factor, 19.86% drawdown
EURGBP - 0.03% profit, 1.0 profit factor, 29.66% drawdown
USDJPY - 1.96% loss, 0.972 profit factor, 28.37% drawdown
USDCAD - 6.36% loss, 0.891 profit factor, 21.14% drawdown
GBPJPY - 28.27% loss, 0.461 profit factor, 39.13% drawdown
To reduce the possibility of curve-fitting, this robot was backtested on 12 popular forex currencies, as shown above. The robot was profitable on 8 out of 12 currencies, breakeven on 1, and made a loss on 3.
The default robot settings could be over-fitting for the EUR, as we can see out-sized performance for the EUR pairs, with the exception of the EURGBP. We can see that GBPJPY made the largest loss, so these two pairs could be related.
Risk Warning:
This is a forex trading strategy that involves high risk of equity loss, and backtest performance will not equal future results. You agree to use this script at your own risk.
Two level TP + TrailStp exits exampleMulti level exist example.
When you need take profit 50% of position size and trailing stop for remain part.
The different ids names for exits is important. Same id needs when we want to modify exit's parameters.
Coppock Curve StrategyThis strategy makes use of a not widely known technical indicator called "Coppock Curve".
The indicator is derived by taking a weighted moving average of the rate-of-change (ROC) of a market index such as the S&P 500 or a trading equivalent such as the S&P 500 SPDR ETF. For more info: (www.investopedia.com)
This strategy uses $SPY Coppock curve as a proxy to generate buy signals on other ETF's and stocks.
Buy signals are generated when the Coppock Curve crosses above zero, and sell signals are generated when it crosses below.
An optional, trailing stop loss is available, with default settings to 100% so that it does not currently affect the buy and sell signals solely generated by the Coppock Curve. But you may find adding a Trailing stop loss may improve results on certain ETF's/Stocks.
You may also change the symbol for which signals are generated for, default is $SPY.
The published example shows using this strategy on a leverage ETF $TQQQ w/ starting capital of 10k, w/ 10k per trade. Try it on other stocks such as $AAPL, $AMZN $NFLX ect... I have found it to be an effective strategy that has a favorable risk to reward profile.
Any questions, please let me know!