ck - Inner Bars Strategy v1*** Please check out the matching Indicator to accompany this Strategy to allow you to fully backtest! ***
Inner Bar trading strategy is where the "inside" bar (or candle to the right) within a pair is smaller and within the high to low range of the prior bar, as this pattern tends to be somewhat predictable; especially in "chop" or sideways trading, it is useful to have in your tool box.
Features include:
Complimentary Indicator you can add as well as this strategy to backtest and tune your settings before live trading
Trailing Stoploss to wring every cent from a trade
Indicator only: Clear Alert labels have been coded in for use with trading bots, 3commas is recommended.
Enable/Disable Shorts in addition to Longs
A further feature is that you can disable Shorts (therefore only Longing) for use with exchanges
that only allow you to Long, such as Binance & Coinbase.
Additionally, this Indicator will close a trade before opening the next, so a single exchange
account (BitMEX for example) is all that is required versus having separate accounts to long or
short on the same chart.
This strategy is intended to use $100 of capital, traded at 2.5% per order with 10x lev on Bitmex.
If you like my work, please use my referral links (you will receive discounts!)
3commas trading bots (now with Bitmex support and a lot more!) - 3commas.io
BitMEX - www.bitmex.com
If you have any comments or suggestions, please message me via TradingView.
Based on the core "Inner Bars" concept found at:
backtest-rookies.com
with original inspiration/idea from babypips.com
Bots
Manual Entry & Bot Trailing Stop AlertsHello all,
Another useful script & indicator with alerts enabled for trailing stoploss in your toolbox!
If you manually start a deal on a bot or even manual trade, you can set your chart time frame, enter the price and the time and date of your entry, then configure an Alert to fire using the “Close Long”/“Close Short” alert trigger.
This indicator features:
Definable Hard Stoploss by % - if price drops to hit this value, immediately trigger a close
Definable “Trail” value using Ticks (one Tick = lowest tradeable unit for your chart)
Supports Longs and Shorts!
Ideal for connecting to your 3commas BitMEX bots for EthUSD or XbtUSD
The indicator plots onto the chart various signals, Red is the Hard Stoploss value, Yellow is your Entry price, Green is the Trailing Stop and White is the live Price Tracker.
Please Note: When you add this indicator to your chart you need to click the Cog/Settings icon to configure it!
Let me know what you think!
Thanks,
Chris
5 EMAs plus Crossing AlertsHi all,
This is a simple indicator that plots 5 EMA lines of your choice to the screen.
Can be used to trigger scalping Bots (stoploss around 0.5% recommended, take profit 1% or higher, please backtest!)
Also can be used for manual scalping, 1 or 2 candles at a time.
Features:
1) Alerts are triggered when EMAs 1 (Signal line) and 2 (Baseline) cross - a Long signal is called if the cross is above EMA 3 (Trendline), a short if the cross is below EMA3
2) Signals are represented visually as a triangle on the chart, below the candles is a long, above is a short
3) TradingView Alerts can be easily set as I have labelled the signals clearly as many other Indicators like this aren’t easy to work out if trying to create alerts to trigger a 3commas bot, for example!
Each EMA is fully customisable and if you wish to take advantage of the alerts, only a few simple rules need to be followed:
EMA1 needs to be less than EMA2.
EMA2 needs to be the same or greater than EMA3
That’s it, happy trading!
Big shout out to B and the gang over at Crypto Trading Group!
EMA Bot Trigger - 14,26,55Work In Progress - Currently will send Long/Short triggers when EMA 14 Crosses EMA 26 - whether the cross is above the EMA 55 determines whether to Long or Short.
Eds Bot Signaler on Basis of RSI Stoch StochRSIEDS AWESOME BOT SIGNALER
Specially for use with e.g. 3commas or autoview
But can also be used just in normal manual (visual) mode
This Script is very early Beta. Works for visual manual use....
and also for 3Commas Bot as "Signaler" (how to connect with Bot, see the docu on 3commas).
... but can use as Signaler for any Bot who is able to get Tradingview sms-mails. (e.g. autoview)
It combines RSI, Stoch and Stoch-RSI.
You can choose normal RSI, or " returning RSI " (signals when leaving the sell/buy-zone. much higher profits with this)
You can choose how many of the indicators are needed to "fire".
You can choose if one of the indicators is a "must"
For Stoch & Stoch-RSI you can Choose sma or ema calculations of the moving average.
All the Values speak for themselves, if you are used to technical analyses (stay away in the moment, if you dont know, what rsi, stoch etc is used.
The Signals are also shown in the chart, the single ones, but also the combined which fires the Bot-Signal (shown as green and red column-candle at bottom)
Enjoy !! Free use in the moment.
More detailled Explanation in the future. Just play around!
If you wanna give something back:
BTC: 15buigKjh4JYnuVwcEWiYMpYvP3Lbp4ypL
My AlgoTraderFirst, please find it in your heart to donate to my broke college student fund. I am in the final stages of making an algorithmic trading bot in Python, which hooks up to this particular exchange, but I do not have the disposable income to really test it out, so any donation helps. Comment below to let me know you donated so others can see your support!
Please send BTC Donations to: 13ZJ3xTLgJ6hNrv7e5eyEqhabxivYnuu8p
Please send LTC Donations to: LYeFrR9faLaAxJdB1anqVu3mCNxADZDHND
Anyway, on the the program.
I made an algorithmic trader which uses a set of self made indicators. This algorithm was written in pine version 3 and does not calculate_on_tick , therefore it does not repaint . The numbers you see are, to the best of my understanding, accurate.
Because I was concerned about overfitting, I created this algorithm with the intention of being generalizable to many different trading pairs. This program is generalizable to most trading pairs -- both crypto and normal stocks. This algorithm works best on shorter time frames for crypto markets, and longer timeframes for the conventional stock market.
Please let me know what you think and what I could do better!
Dotenslayer : An open range breakouts method indicator for botThis script shows the long and short points of certain Japanese bots like 'DotenKun' which use open range breakouts method.
Searching recent 18 bars as default and shows the range calculated with a factor (default k = 1.6). You can edit this condition by yourself.
When filled the long or short conditions, also shows the indicator on the price chart to help your trading on BTC.
Also, this script can make alarm events related to those conditions.
This script only works for BTCUSD, XBTUSD, BTCJPY, FXBTCJPY with 1H time span.
Disclaimer :
I don't own the source code of the certain bots and I didn't directly reference the source code of it.
So which means, I don't guarantee this script works as same as the bots works.
Also, I didn't mean to disturb their trading bot businesses.
Your donations are welcome! :
BTC : 327MqYGfHJFC7LRijGwQZXdTAyFwvYCzyv
ETH : 0x5E270c3667E65ba6158D292a98c5b54F81AfCAf1
Progressive Profit Taking with Trailing StopThis is version 2 of
Special features:
Added partial profit taking as price rises. Profit taking is triggered by price crossing an EMA.
After profit taking, price has to rise by a user-specified percent before taking profits again.
Also includes condition for fully closing position after meeting specified profit target.
To incorporate into your algo, turn the plotshape functions into alertcondition.
Customizable trailing Stop For Manual EntriesHere's how to create a trailing stop with a manual buy order, on an exchange that does not support native trailing stops. Code can easily be copy+pasted into your normal algos.
To set the entry price for your manual trade, specify the bar time when the trade was made. Note that the time you specify needs to correspond to an opening time on your chart--if it's a 3 hour chart, 6 pm or 9 pm will work, but 8 PM will not. It's not as bad as it sounds though, read on :)
Per usual I keep multiple options open.
Special features in this script:
Change time frame for trailing
Specify trailing parameter (high, close, hlc3, etc.)
Change time frame for stop loss trigger (use a shorter time frame for earlier exits!)
Specify trigger parameter (close, low, hlc3, etc.)
Remember that annoying issue where you might not be able to precisely specify entry price, because you want to use 3 hour closing prices for your trailing stop but you bought in at 7:41 pm? Add this indicator to a 1 minute chart and set your start time to 19:41, then set the trailing time frame to 3 hours!
Next stop is v2, where we take profits along the way before stop loss gets triggered.
Alert Batches v2This version triggers every batch within each candle. The previous version only triggered one batch per candle.
This will not trigger batches in perfect order, but I left the "sequential" option because it still triggers the batches in order more often than not.
Alert BatchesThis script lets you separate alerts into batches, and trigger each batch in either sequential order or (pseudo)random order. You can also specify the number of batches being used.
This is helpful when you have alerts to be triggered on every candle, but the number of alerts causes API errors if they are all executed at once.
Grahn Gyllene Kors [Alerts]Grahn Gyllene Kors is the companion study for the Grahn Gyllene Kors strategy...
This is an EMA / Trend Explorer & Strategy useful for identifying trends before EMA's cross and also identifying and experimenting with various EMA lengths and candle trends. There is also a companion Alerts study for this in which trend signals may be sent to the user via sms or email AND/OR buy and sell alerts may be sent to bots for automated trading of this strategy. Once you have optimized your settings and backtested with this strategy, apply your same settings into the Alerts study and create your alerts.
NOTICE: This script does not require access from me, simply open Indicators on chart and search for "Grahn". By accessing this script you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
EMA Fast and EMA Slow - may be adjusted in length and color.
Bullish F>S % - controls what percentage the EMA Fast should be above EMA Slow before considered bullish and is represented by the Green band on the chart.
Neutral % - is what percentage surrounding the EMA Slow should be considered neutral and is represented by the Yellow band on the chart.
Bearish F<S % - controls what percentage the EMA Fast should be below EMA Slow before considered bearish and is represented by the Red band on the chart.
Enable Trend - determines whether Trend Strength is enforced in strategy in addition to EMA divergence.
Bull Candles # - is the number of candles ranging from 0 (off) to 5 that should be consecutively higher in value before considered to be a trend.
Neut Candles # - is the number of candles that should consecutively remain in the Neutral yellow band before considered to be trending neutral for signal alerts (has no impact on strategy).
Bear Candles # - is the number of candles ranging from 0 (off) to 5 that should be consecutively lower in value before considered to be a trend.
Pump Increase % - is the rise in price that should be considered a pump for signal alerts (has no impact on strategy).
Pump Candles # - is the number of candles over which Pump Increase % should be considered (has no impact on strategy).
Dump Decrease % - is the rise in price that should be considered a pump for signal alerts (has no impact on strategy).
Dump Candles # - is the number of candles over which Dump Decrease % should be considered (has no impact on strategy).
Show EMA Fast & Slow - their display may be turned on or off.
Enable Range - may be enabled for backtesting (in strategy) a specific range of time (disabled uses default range based on period).
Moving Average Cross and/or Bbands botHello TradingView and world!
This is one of our latest concepts for an actual bot builder. This script comes with a bunch of features that we're hoping will alleviate a lot of the stress and confusion around using and building strategies here on TV. Especially if the end-goal is to automate the strategies using Autoview.
This is a combination of 2 strategies, and gives you full control of each component within the script.
The 2 strategies are:
2 Moving Averages == if close is greater than moving average and moving average 1 is greater than moving average 2
Bolling Bands == if close is less than lower or greater than upper
Features / Settings included :
- Ability to change settings from a commodity market (default) to an altcoin or forex market.
- Backtest time period selector component
- Heiken Ashi Candles on/off
- Moving Average Strategy on/off
- Bollinger Bands Strategy on/off
- Both Moving Average settings can be adjusted
- Bollinger Bands length and multiplier can be adjusted.
- Pyramiding Greater Than, Equal To, or Less Than
- Trailing Stop with the ability to set a price in which the Trailing Stop activate
- Take Profit on/off and editable
- Stop Loss on/off and editable
- Margin Call on/off dependent on Leverage which is editable
- If pyramiding is used, the strategy will calculate and display your average on the chart
- Profit and Loss visuals added to the chart
You can watch a video here on how all the settings can be used and work together.
www.youtube.com
You can learn more about Autoview here:
autoview.with.pink
Get your invite and join us in slack here:
slack.with.pink
How to automate this strategy for free... Version 2Hello fellow traders and automation lovers.
It has been about 2 years since we originally created Autoview to connect your exchanges/brokers with your TradingView alerts. We've since added multiple exchanges, parameters and have built a large community filled with awesome, passionate traders.
One of the first strategies we built was sadly not a viable one for trading due to it using built-in variables that resulted in the backtest results being inaccurate in comparison to placing live trades. Luckily, we did not encounter repainting until a few strategies in, however, there was a point where we published a few of them as well. We will be going through all of our scripts again to not only eliminate any repainting and update to version 3, but to also include all the code snippets that we've learned to use over the years that allow for accurate backtesting and live trading.
The first script we are redoing is our How to automate this strategy for free using a chrome extension. .
Easter egg: This includes a new snippet of code that makes controlling how many orders you pyramid within a study fast and easy.
We look forward to bringing all of our scripts and delving deep into Pine again :)
Happy Trading
Autoview
[Autoview] Every Candle Alert ScriptThis script is designed specifically for firing an alert every candle. It can also be used to just fire an alert on a green candle, or a red candle to slow it down a bit.
This is a script we use to close all of our orders or positions on any of the integrated exchanges.
You can use a fire once alert with greater than on condition and the alert will typically fire within seconds. You can also use this to place orders for you without having to navigate away from TradingView to your exchange/brokerage site.
If you would like a better understanding of how to create an alert for automation, please visit the article this strategy is being published for.
use.autoview.with.pink
MACD, backtest 2015+ only, cut in half and doubledThis is only a slight modification to the existing "MACD Strategy" strategy plugin!
found the default MACD strategy to be lacking, although impressive for its simplicity. I added "year>2014" to the IF buy/sell conditions so it will only backtest from 2015 and beyond ** .
I also had a problem with the standard MACD trading late, per se. To that end I modified the inputs for fast/slow/signal to double. Example: my defaults are 10, 21, 10 so I put 20, 42, 20 in. This has the effect of making a 30min interval the same as 1 hour at 10,21,10. So if you want to backtest at 4hr, you would set your time interval to 2hr on the main chart. This is a handy way to make shorter time periods more useful even regardless of strategy/testing, since you can view 15min with alot less noise but a better response.
Used on BTCCNY OKcoin, with the chart set at 45 min (so really 90min in the strategy) this gave me a percent profitable of 42% and a profit factor of 1.998 on 189 trades.
Personally, I like to set the length/signals to 30,63,30. Meaning you need to triple the time, it allows for much better use of shorter time periods and the backtests are remarkably profitable. (i.e. 15min chart view = 45min on script, 30min= 1.5hr on script)
** If you want more specific time periods you need to try plugging in different bar values: replace "year" with "n" and "2014" with "5500". The bars are based on unix time I believe so you will need to play around with the number for n, with n being the numbers of bars.