Dragon Bot - Default ScriptDragon Script is a framework to make it as easy as possible to test your own strategies and set alerts for external execution bots.
The script has many features build in, like:
1) A ping/pong mechanism between longs and shorts
2) A stop-loss
3) Trailing Stops with several ways to calculate them.
4) 2 different ways to flip from long to short.
The script is divided into several parts.
The first part of the script is used to set all the variables. You should normally never change the first part except for the comments at the top.
The second part of the script is the part where you initialise all your indicators. Several indicators can be found on Tradingview and on other sites. Please keep in mind that all the variable names used in the indicator should be unique. (all the … = … parts)
The third part of the script, is the most important part of the script. Here you can create the entry and exit points.
Let’s look at the OPENLONG function to explain this part: The first variables are all the possible entries; These are longentry1 till longentry5. You can add many more if you like.
The variables are all initialised as being false. This way the script can set a value to true if an entry happens.
The if function is the actual logic: You could say “if this is true” then (the line below the if function) longentry1 := (becomes) true.
In this case we have said: “if this is true” then (the line below the if function) longentry1 := (becomes) true when the current close is larger than the close that is 1 back.
The last part is the makelong_funct. This part says that if any of the entries are true, the whole function is true.
The last part of the script is the actual execution. Here the alerts are plotted and the back test strategies are opened and closed.
We hope you guys like it and all feedback is welcome!
M-oscillator
Combo Backtest 123 Reversal and 2/20 EMA This is combo strategies for get
a cumulative signal. Result signal will return 1 if two strategies
is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Secon 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.
Please, use it only for learning or paper trading. Do not for real trading.
WARNING:
- For purpose educate only
- This script to change bars colors.
WaveTrend Oscillator V2Version 2 of the Wave Trend Indicator now includes a test strategy feature.
Same Entry and Exit Conditions as before. These values can be adjusted to pick up higher bottoms if needed. This strategy appears to work well with Cannabis stocks and has been tested out with TSX:ACB , TSX:HEXO , TSX:CRON , TSXV:OGI just to name a few.
Entry and Exits:
Entry when Wave cross occurs below or within the bottom band
Exit when Wave cross occurs above or within the top band
Alert Settings:
"Buy" is less than "Over Sold Top"
"Sell" is greater than "Over Bought Bottom"
As always, trade at your own risk. Recommended to confirm entry and exits with other oscillators such as Stochastic, RSI or MACD.
Lagless Momentum StrategyThis is a premium strategy is based off of moving averages and has been backtested in MT4 over 10 years of 4H data to determine profitability.
Parameters:
Fast EMA: the fast moving average to use
Slow EMA: the slow moving average to use
Smoothing: how sensitive you want the indicator to be to price
SL Activation: The Stop Loss to use
TP Activation: The Target Price to use
Please feel free to ask any questions. I have determined to only sell scripts that I would personally use myself.
The price for lifetime access is $199 and I will give a 3-day trial.
Thanks!
MACKAVELLI Algorithmic StrategyI had a hard time finding a strategy that would work in different time-frames and multiple different currency pairs. This is what I ended up with after countless hours of research and testing. I designed this strategy for auto-algorithmic trading and it uses three different indicators for Long/Short positions and a 4th indicator for exiting positions.
1) A green-light indicator that tells you whether or not you can go long/short.
2) A confirmation indicator that executes the long/short positions.
3) A chop indicator that measures the distance between the two MA's. When they're too close a trade will not be executed, as this usually indicates a chop zone.
4) A third MA is used as an exit indicator.
5) Finally, a loop function is designed to prevent repeat signals. Once a signal is produced on bar close it cannot happen again until that trade is closed or a new position is opened.
Be advised, you need to adjust the settings for each currency pair and time-frame. Once you do that, back-test it and count the last 100 trades to determine accurately your wins/losses. Long entries are the top of the previous bar, shorts are the bottom of the previous bar. This is a more accurate way of counting wins/losses. Tradingview back-test's are not accurate because of where they estimate your long/short entries are, it's very misleading.
Right now I have it setup for 2hr USDCAD with a back-test of 58% win rate on the last 100 trades.
The chop indicator is set to 0.04, I suggest starting there. 0.03 is the lowest I would go. You can go all the way up to 0.1 and higher if needed. You'll start missing big trades though.
The EMA for green-light signal is set to 10, a lower number will give you more entries but less accurate results, bigger number will give less entries with more accuracy but with missed opportunities. 10 is a good starting point.
This strategy is also designed so you can use tight stop losses to prevent large losses. This is because the strategy typically catches trends on the way up/down, minimizing risk for reversal.
I use Heikin Ashi candles for a smoother chart to work with. I have not tested this strategy with normal candles.
DEMO this strategy before using it live and make sure you back-test and tune it before you start. This is written in PINE V3 SO IT WILL NOT REPAINT.
RSI Crossover Strategy 8rookzRSI Crossover Strategy
used to create entry points for increasing relative strength
Noro's DD StrategyIf a drawdown is more than 5% - to open long position
If a candle is green - to close a long position
Stochastic Strategy of BiznesFilosofThis strategy allows you to test the stochastic indicator, as well as adjust it to a specific trading pair. The parameters indicated in the books are too approximate and have nothing to do with modern reality. The optimal parameters for Bitcoin are now set. You can customize better for yourself. This strategy allows you to make settings.
===
Эта стратегия позволяет протестировать индикатор стохастик, а также настроить его на конкретную торговую пару. Параметры, указанные в книжках слишком приблизительные и не имеют ничего общего с современной реальностью. Сейчас установлены оптимальные параметры для биткоина. Вы же можете настроить лучше под себя. Это стратегия позволяет сделать в настройках.
Custom 15m stratThis strategy is using multiple powerful indicators to generate low-timeframe signals. The script is best used on the 15 min timeframe but with correct parameters it can be rather sucesfull on higher timeframes too.
WantonBot StrategyCombines some commonly used crypto indicators in a smart way. Red above Green is a sell, Green above Red is a buy. Blue line represents theoretical position.
Ichimoku Cloud Offset Daily StrategyThe "Ichimoku Cloud Offset Daily Strategy" - Indicator uses an Offset to tell when market is possibly overbought or oversold.
[astropark - Premium] 5m Bitmex ScalperThis strategy is private for bitmex scalping on 5m - 15m.
News soon.
Thanks
-- astropark --
Commodity Selection Index Backtest The Commodity Selection Index ("CSI") is a momentum indicator. It was
developed by Welles Wilder and is presented in his book New Concepts in
Technical Trading Systems. The name of the index reflects its primary purpose.
That is, to help select commodities suitable for short-term trading.
A high CSI rating indicates that the commodity has strong trending and volatility
characteristics. The trending characteristics are brought out by the Directional
Movement factor in the calculation--the volatility characteristic by the Average
True Range factor.
Wilder's approach is to trade commodities with high CSI values (relative to other
commodities). Because these commodities are highly volatile, they have the potential
to make the "most money in the shortest period of time." High CSI values imply
trending characteristics which make it easier to trade the security.
The Commodity Selection Index is designed for short-term traders who can handle
the risks associated with highly volatile markets.
WARNING:
- For purpose educate only
- This script to change bars colors.
Average Down// ########################################################################## //
//
// This scipt is intended to demonstrate how pyramiding can be used to average
// down a position.
//
// We will buy when a stock closes above its 20 day MA and Average down if
// the trade does not go in our favor. We will hold until a profit is made.
// (which could mean we hold forever)
//
// ########################################################################## //