MA cross strategy VtsThe simple Moving average cross strategy is here implemented.
I guess there are multitudes of similar scripts around.
I post this one since I was asked by some friends, and I'll let it free to use for anybody.
Here you can choose the year where to start backtesting, the source, the type of MA, the SL and TP multiplicators of ATR, for which you can also choose the averaging period.
Feel free to modify this script. I would be grateful if you could preserve the first lines of comments including my user names.
The MA cross strategies can be very effective, especially when used on the daily TF.
Try for example the combo EMA15-EMA30 SL=1.5ATR TP=1ATR on EURCHF daily to get an impressive 83% win ratio.
Or EMA20-EMA81 on the GBPCHF to get an 87%.
In those cases where EMA does not perform well, try to set a less lagging MA, like the Hull MA.
I hope you like this script so that you could push the like button multiple (odd) times and you start following me.
I've got a bunch of other interesting scripts to share.
Comments and suggestions are welcome.
Đường trung bình trượt Hull (HMA)
Bitcoin HMA Daily - SignalsThis is a simple strategy based on the HMA for BTC with good results. Make sure to set your alerts to "On candle close" to avoid false positives.
Script contains an alert for a Long and Short signal.
HMA EABy default, the strategy works best on 1h timeframe. In theory, it should run well on any timeframe, but you will absolutely need to adjust the Hull Resolution. I recommend starting with 4x the current view (aka, if you are using 5m candles, set the resolution to 20min, which is 4 * 5m).
The settings are pretty self explanatory:
Start Month - Month of the year to begin backtest (automatically beings at 1st of month)
Risk Per Trade (%) - How much of your equity to risk on each trade.
Leverage - Amount of buying power/Margin you have available
Loss (pips) - Distance in pips from the entry to place Stop Loss
Profit (pips) - Distance in pips from entry to place target Take Profit
Trigger Trail (%) - Distance in percentage from entry to begin a trailing Stop Loss
Trail Dist. (pips) - Offset distance of trailing Stop Loss
Hull Res. (min) - Length of candle in minutes to use when calculating the HMA
Hull Period (bars) - Smoothing period for HMA
4 Hull MAThe Hull Moving Average (HMA) was developed by Alan Hull in 2005 for the purpose of reducing lag, increasing responsiveness while at the same time eliminating noise. Its calculation is elaborate and makes use of the Weighted Moving Average (WMA). It emphasizes recent prices over older ones, resulting in a fast-acting yet smooth moving average that can be used to identify the prevailing market trend. It can also be used for entry and exit signals. I have integrated 4 HMA's into one which can be used for taking entry and exits similar to 4 EMA strategies. All credit goes to Alan Hull for developing this technique.
@coinpocalypse - HMA SignalsThis script gives long and short entry's (make sure to use alerts on candle closes)
Currently working best on H4 and M15 charts for Bitcoin (BTCUSDT, XBTUSD)
First version
Crossover Strategy w/Take Profit + Trailing Stop - StudyThis script is a result of hours of trail, error and research. If something is not functioning as anticipated, please notify me with a description and possible screen shot of the issue.
The strategy is a basic crossover strategy. When MA1 crosses above MA2, it will trigger a long entry. When MA1 crosses below MA2, it will trigger a short entry.
When using the Take Profit function, the trailing stop will automatically activate at the defined TP3 level.
Also, when TP1 is hit a stop loss is set at 0.3% (this can be adjusted in settings) above/below the current entry. When TP2 is achieved, the stop will move up to the TP1 level.
If the trailing stop locks in LESS profit than the TP2 level, the stop will trigger at the TP2 level. This will continue until the trailing stop has moved to a level more advantageous than TP2.
There is a companion Alerts script for use with AutoView.
***AutoView syntax IS NOT provided***
CS Basic Script - Customizable Crossing Moving AveragesThis Crossing MA Script features inputs for:
- Custom Date Range for Backtesting
- Optional Trailing Stop Loss
- Buy/Sell and Long/Short Selections
- Customizable MA Types and Ranges
- Includes EMA, SMA, WMA, ALMA, VMA, HMA, and LSMA Moving Average Types
- Ability to Enable Automated Trading with the Autoview Trading Bot Chrome Extension
For access to the Strategy Script for backtesting, simply favorite the script and add it to any TradingView chart.
For access to the Study Script for Custom Alerts and the Ability to Automize Trades through Autoview, please visit our website at www.cryptoscores.org .
inwCoin HMA+EMA AlertJust simple HMA + EMA120 alert for same strategy
Work well with TF 2H
Tried BTC on OKex and Bitmex and it looking good.
Best for hand trade.
If you want to try, just comment, i'll grant you a permission for 2 days
inwCoin HMA + EMA StrategyJust simple HMA + EMA120 strategy
Work well with TF 2H
Tried BTC on OKex and Bitmex and it looking good.
Best for hand trade.
If you want to try, just comment, i'll grant you a permission for 2 days
inwCoin SUPER HMA AlertinwCoin Super HMA alert for Super HMA strategy ( )
If you want sourcecode, I can give you for 0.01 BTC :) Send BTC to address below and IM me for acknowledgement.
BTC : 3BmqVW8eqE3qAGdtCdYGFYKbMwEALAhSEp
Check some backtest result here : imgur.com
Backtest result for various trade% : imgur.com
inwCoin SUPER HMA StrategyImproved version of inwCoin HMA Aggressive Strategy.
Filter out random trade from sideway period and wait for trend only.
Work very well on BTCUSD3M at OKEX with leverage 20x ( with the help of trailing start/stop bot, of course )
If you have OKex bot/ Or plan to write one. This strategy is the best bet.
If you want sourcecode, I can give you for 0.1 BTC :) Send BTC to address below and IM me for acknowledgement.
BTC : 3BmqVW8eqE3qAGdtCdYGFYKbMwEALAhSEp
Check some backtest result here : imgur.com
Backtest result for various trade% : imgur.com
inwCoin HMA10/50Just simple HMA 10/50 with color change when trend change ( Red = downtrend / Green = uptrend )
Hull50Signals are based on Hull 50 length
You can change the length if you want it to buy more or less
have fun
Hull & Candle CrossoverA Hull moving average and candle crossover.
(2 hullMA's and present to past candle value calculation and smoothing function)
Enters order on Hull1 vs Hull2 crossover, Exits order on Price vs Candle crossover
Strategy looks at the previous(1) candle value to calculate current price so it lags 1 candle (to avoid repainting)
Any timeframe and pair ok, just change settings to suit
commission is included in the default result
inwCoin HMA AlertinwCoin HMA alert for inwCoin HMA Strategy.
If you want to use this alert signal, please donate me 0.005 BTC for my electric bill/coffee/food to this address ( the man got to eat )
BTC : 3BRLGDEtNYpSPVD7YtKNZzVREsi1smcvvi
And send inform me about your donation, and I'll add you to access my alert script :)
If you need me to customize the script/alert/strategy to match your exchange, please let me know, and I'll do it for 0.01 BTC :)
inwCoin HMA AlertSimple alert to go along with the inwCoin HMA Strategy
Please not that the alerts are persistent 2.70% , if you already enter the position,
just ignore the rest of the same alert until the opposite alert show up
( long then short / or short then long , if change, just close and enter opposite position )
You can set the alert and let it tell you to iOS app via TradingView app ( yey! )
Please note that, if you don't have bot to track your trailing start/stop. you have to enter the TP/SL manually ( also tracking the position )
So... be careful to follow this alert. just try it with small amount of money first.
and make sure to set stop loss every time because OKEX is a portfolio killer if you don't have any stop loss.
** if you cannot trailing stop bot, just uncheck the "Aggressive Strategy" in both strategy and alert to reduce alert to minimum level.