ONLY LONG V4 v1this is based on
I just change the way to find lows as the strategy based on exit by % and pyramiding
if you will play with % you will see that higher % exit like in this example of 20% make it to gain more profit (mainly due to pyramiding in the strategy )
in realistic strategy you will exit by much lower % out unless you are bot:)
to convert it to study with alerts just remove the strategy part (like in the original study of XAVI)
In den Scripts nach "bot" suchen
Triangular Moving Average (TMA) bandsWhat in the world is up folks ??!??
Here's the indicator of the day. Sharing a simple one today because I'm busy coding for a few clients (fun life of a top script author on TradingView)
The TMA bands is an indicator that I discovered on FXCM a few years ago FXCM TMA bands
From the screenshot above, we see that when the price hits the lower band, it's a possible reverse BUY signal. When it hits the upper band, it's a possible SELL signal
Methodology
1) The Take Profit 1 is the middle line, Take Profit 2 is the opposite band.
2) Once the TP1 is hit, set your Stop Loss to breakeven
3) Once the TP2 is hit, if you still want to stay in the trade, set your Stop Loss to the TP1
That's what we call a trailing stop loss which I offered in the Trade Manager : Trade-Manager-Open-Source-Version/
It will be a powerful tool in your arsenal for some scalp/intraday trades
After years of coding for traders, I worked with many brokers/API/languages so I'm very used to convert a script from a broker to another one (shameless self-advertising)
PS
Tomorrow I'll share the Signal version of my Algorithm Builder:
You'll be able to connect it in a single click to a very cool Backtest System made by the Pinescripters community
In other words, I'm selling the scripts to allow you to build your own signals in a few clicks AND to connect it easily to a kick-ass backtesting tool. More to come tomorrow
Hope you'll like it, like me, love it, love me, tip me :)
____________________________________________________________
Feel free to hit the thumbs up as it shows me that I'm not doing this for nothing and will motivate to deliver more quality content in the future. (Meaning... a few likes only = no indicators = Dave enjoying the beach)
- I'm an officially approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
Dollar Cost Average (Data Window Edition)Hi everyone
Hope you had a nice weekend and you're all excited for the week to come. At least I am (thanks to a few coffee but that still counts !!!)
This indicator is inspired from Dollar-Cost-Average-Cost-Basis
EDUCATIONAL POST
The educational post is coming a bit later this afternoon explaining how to use the indicator so I would advise to follow me so that you'll get updated in real-time :) (shameless self-advertising)
1 - What is Dollar-Cost Averaging (DCA)?
Dollar-Cost Averaging is a strategy that allows an investor to buy the same dollar amount of an investment on regular intervals. The purchases occur regardless of the asset's price.
I hope you're hungry because that one is a biggie and gave me a few headaches. Happy that it's getting out of my way finally and I can offer it
This indicator will analyse for the defined date range, how a dollar cost average (DCA) method would have performed vs investing all the hard earnt money at the beginning
2- What's on the menu today ?
Please check this screenshot to understand what you're supposed to see : CLICK ME I'M A SCREENSHOT (I'll repeat this URL one more time below as I noticed some don't read the information on my description and then will come pinging me saying "sir me no understand your indicator, itz buggy sir"
(yes I finally thought about a way to share screenshots on TradingView, took me 4 weeks, I'm slow to understand things apparently)
My indicator works with all asset classes and with the daily/weekly/monthly timeframes
As always, let's review quickly the different fields so that you'll understand how to use it (and I won't get spammed with questions in DM ^^)
- Use current resolution : if checked will use the resolution of the chart
- Timeframe used for DCA : different timeframe to be used if Use current resolution is unchecked
- Amount invested in your local currency : The amount in Fiat money that will be invested at each period selected above
- Starting Date
- Ending Date
- Select a candle level for the desired timeframe : If you want to use the open or close of the selected period above. Might make a diffence when the timeframe is weekly or monthly
3 - Specifications used
I got the idea from this website dcabtc.com and the result shown by this website and my indicator are very interesting in general and for your own trading
The formula used for the DCA calculation is that one : Investopedia Dollar Cost Average
4 - How to interpret the results
"But sir which results ??"...... those ones : CLICK ME I'M A SCREENSHOT :) (strike #2 with the screenshot)
It will draw all the plots and will give you some nice data to analyze in the Data Window section of TradingView
I'm not completely satisfied with the tool yet but the results are very closed to the dcabtc website mentioned above
If you're trading a very bullish asset class (who said crypto ?), it's very interesting to see what a DCA strategy could bring in term of performance. But DCA is not magic, there is a time component which is the day/week/month you'll start to invest (those who invested in crypto beginning of 2018 in altcoins know what I'm talking about and ..............will hate me for this joke)
5 - What's next ?
As said, the educational post is coming next but not only.
Will probably post a strategy tomorrow using this indicator so that you can compare what's performing best between your trading and a dollar cost average method
I'll publish as a protected source this time a more advanced version of that one including DCA forecasts
6 - Suggested alternative (but I'll you doing it)
If you don't want to have this panel in the bottom with the plots and analyze the results in the data window, you can always create an infopanel like shown here Risk-Reward-InfoPanel/ and display all the data there
Hope you'll like it, like me, love it, love me, tip me :)
____________________________________________________________
Feel free to hit the thumbs up as it shows me that I'm not doing this for nothing and will motivate to deliver more quality content in the future. (Meaning... a few likes only = no indicators = Dave enjoying the beach)
- I'm an offically approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
Brandon BollSecond day at Pinescript and I am attempting to tweak the Bollinger Bands directed strategy to send alerts to Zignaly in order to automate long buy/sells.
I've left in the short script though for completeness.
The buy and sell instructions work perfectly but I don't know how to do a cancel order alert (as included in the original strategy)
Super Simple Martingale BuyingA bot that buys below the configured averages and then averages down every few %. The position size is calculated automatically by the maximum open orders you set.
Stochastic Direction StrategyThis is a simple strategy based on the Stochastic Oscillator: stockcharts com/school/doku.php?id=chart_school:technical_indicators:stochastic_oscillator_fast_slow_and_full
Its purpose is to gradually build a position in a trending market (as of June 26th 2016 in most cryptocurrencies).
Inputs:
- direction (long/short)
- overbought/oversold
- close positions (yes/no to only increase positions)
Outputs:
- buy/sell/close signals plotted on a chart below
This script can easily be used as a TradingView study (for alerts) and a strategy (for backtesting). See the comments in the code.
I have added additional alert conditions to be used easily together with a trading bot reading the signals
Yet obviously you can also do manual trading on each alert.
X systemSo how this system work ?
1. the bullish and bearish zones in lime and red are based on percent channel (you can modify it according to your needs) . this now is on 1 hour candles so I set it to 1% above and 3% bellow for BTC on bitmex.
2. we ha RSI super trend system which generate our buy and sell signals .
Since the Super trend is an RSI like it act like one as we can see when it go from high to low much more easy compare to regular super trend
One can optimize it to be full auto mode but it need more work to be much better and safe
This indicator aim is to help you in your decisions for buy and sell and I would not advise to use it as a bot but as a helper when you decide to buy and sell
Kal’s MTF ADX Rangoli RollerKaly MTF ADX Rangoli Roller is a method/study for finding trending stocks, indexes and cryptocurrencies using two different data periods (10, 5) of ADX Overlap over different time-frames (10m, 1H, 4H, 1D, 1W, 1M). In the study, I used 5-Period ADX for all mentioned time-frames. You may use 10-Period ADX for lower time-frames especially 10m and 1H.
Sample Image of the pinescript code(at the end of this post) in Tradingview looks as follows:
Note: Kal's MTF ADX Rangoli Roller is the lower Plot. The upper plot is KAL’s ADX Overlap Technical Study with MACD Filter( )
Description:
----------------
In the study plot, the lowest row is 10m, row above is 1H, row above is 4H, then 1D, then 1W and highest row is 1M
Lime(Bright Green) dot implies Trending Uptrend for that time-frame (first phase)
Green dot implies Trending Uptrend for that time-frame (second phase near exhaustion)
Red dot implies Trending Downward for that time-frame (first phase)
Maroon dot implies Trending Downward for that time-frame (second phase near exhaustion)
Lime cross implies Strong Trending Uptrend for that time-frame (first phase)
Green cross implies Strong Trending Uptrend for that time-frame (second phase near exhaustion)
Red cross implies Trending Strong Downward for that time-frame (first phase)
Maroon cross implies Trending Strong Downward for that time-frame (second phase near exhaustion)
Yellow is ‘Squeeze On’ setting. During the squeeze period, the ADX signals are almost always ineffective. One may wait and watch over during this time. Once the Squeeze is released (i.e. no longer yellow), the trend corresponds to the color of the dots and crosses.
Black is CRSI Overbought condition for that time-frame. It’s best to wait and research for possibility of trend reversal because
1. Profit-booking/trimming happens after CRSI Overbought condition.
2. Large Short-sellers may take huge positions during this time pushing the stock prices up.
White is CRSI Oversold condition for that time-frame. It’s best to wait and research for possibility of trend reversal because
1. Profit-booking/trimming happens after CRSI Oversold conditions.
2. Large buyers may take huge positions during this time pushing the stock prices down.
I am a disabled man. Therefore, I am not able to write in detail here today. More Details will follow as time permits. Please let me know if I am missing anything…
Legal Disclaimer: I published here so I get replies from fellow viewers to educate myself and for my daily expenses. Hence, if anyone uses this script for making their decisions, I am not responsible for any failures incurred.
Safe Trading!
Kal Gandikota
PS: If you found this script interesting and edifying please follow and upvote.
PS2: Please kindly donate for my daily expenses (atleast as you would on streets) at the following addresses:
BTC Wallet: 1NeDC1GvpFa49DFLuT1v28ohFjqtoWXNQ5
ETH Wallet: 0x35e557F39A998e7d35dD27c6720C3553e1c65053
NEO Wallet: AUdiNJDW7boeUyYYNhX86p2T8eWwuELSGr
PS3: For more information on ADX and CRSI, please 'Google' or search here yourself.
PS4: This study is intended for research in creating automated Python Trading Systems using Pandas( steemit.com ).
Screenshots of the pinescript code looks as follows:
10minute Screenshot of Kal's MTF ADX Rangoli Roller (Above)
1 Hour Screenshot of Kal's MTF ADX Rangoli Roller (Above)
4 Hour Screenshot of Kal's MTF ADX Rangoli Roller (Above)
1 Day Screenshot of Kal's MTF ADX Rangoli Roller (Above)
1 Week Screenshot of Kal's MTF ADX Rangoli Roller (Above)
1 Month Screenshot of Kal's MTF ADX Rangoli Roller (Above)
CS Basic Scripts - Stochastic Special (Strategy)This Stochastic Special Strategy features inputs for:
- Custom Backtesting Date Range
- Long and Short Strategy Discinctions
- Utilize SMI, RSI, Martingale, and Body-Filter Strategy
- Adjust the SMI Percent Lengths and Limit
- Automate with the Autoview Trading Bot
Strategy script may be tested by favoriting and adding to any chart.
Study script is available for automated trading at www.cryptoscores.org
[Backtest]QQE Cross v6.0 by JustUncleLDescription:
This is the Backtest version of the " QQE Cross v6.0 by JustUncleL" Tool, can be used to optimize settings.
Flying Buddha Inside Bars Indicator v1 by JustUncleLDescription:
=============
This indicator plots MAs and paints Triggered Alert Arrows base on Flying Buddha candle patterns.
The “Flying Buddha” Pattern is defined as:
---------------------------------------------
A candlestick chart with two moving averages: the 5 period exponential moving average (fast EMA) and the 10 period simple moving average (slow SMA), both applied to the closing price. The default “Flying Buddha” pattern is any candlestick which:
1. Has a LOW above the fast EMA, when the fast EMA is above the slow SMA (a bearish “Flying Buddha”); or
2. Has a HIGH below the fast EMA, when the fast EMA is below the slow SMA (a bullish “Flying Buddha”).
Alert Trigger:
---------------
A Flying Buddha Alert is triggered on the first candle that is a non-flying Buddha candle after a Flying Buddha Pattern candle sequence. Flying Buddhas can optionally be filtered by InsideBars and PinBars.
The Alert Trigger is optionally filtered by the Directional MA (default=EMA 89), and/or by Minimum Sequence length of Flying Buddhas.
Moving Averages:
------------------
You can select between 11 different types of moving averages, for each MA line in Flying Buddha MAs (fastMA and slowMA) and the Directional Filter MA:
SMA = Simple Moving Average.
EMA = Exponential Moving Average.
WMA = Weighted Moving Average
VWMA = Volume Weighted Moving Average
SMMA = Smoothed Simple Moving Average.
DEMA = Double Exponential Moving Average
TEMA = Triple Exponential Moving Average.
HullMA = Hull Moving Average
SSMA = Ehlers Super Smoother Moving average
ZEMA = Near Zero Lag Exponential Moving Average.
TMA = Triangular (smoothed) Simple Moving Average.
NOTE: This is a concept indicator, I also intend to release a trading BOT suitable for Autoview, based on this concept indicator.
Pork ChopApproach for detecting price 'chop'.
It's quite simple; instead of trying to detect chop, just measure the weakness of a trend.
This is done by essentially taking two moving averages, measuring their relative difference and then take a moving average of this difference of 'n' periods (Lookback)
The result can be measured against a threshold 'floor' which determines the weakness of the trend and thus, chop.
I use portions from NGBaltic's work: www.tradingview.com so the responsiveness of the detection is slightly higher than bog standard EMAs.
Might be of some interest to bot developers, play with the settings!
Cheers
SimpleMA smoothed crossover strategyExperimental simple Bot script for ETH/USD 1 hour chart. welcome to test on other pairs. put feedback in comments.
This is a crossbreed between SMA and HULLMA
APEX - BB MadnessOverlaying up to 4 Bollinger Bands over each other.
Individually BBs only show coloring background and the overlaping area where the bot would try to buy is a lime rectangle.
APEX - VWAPVolume weigted average price for APEX Bot.
For Detector Price above it will mark all candles that even have a high wick above which would also happen in the bot but would most likely not trigger ...its up to you to understand the meaning of it.
MG - Range trader - 1.0This one is a bit of an experiment..
The theory is, if you have an asset that you firmly believe will rise in the future for fundamental reasons and are happy to hold until that happens i.e. a be a position trader, you can take advantage of market volatility at the same time in a relatively safe way, so theoretically, you profit when the price goes up or down
E.g. You have $1000, an asset in which you want to become a position trader and you are happy to either make more money or more of the asset as you believe that will make you more money in the future, you could wait until a decent retracement, maybe around a good support level, then buy $500 of the asset and simply sell if it goes up by X, buy if it goes down by X. If you keep doing this, you will end up with either with more of the asset or more money. You have a sure gain either way (if you are happy to have either money or asset)
There are some considerations:
The higher the trade size, the faster profit compounds and the faster you exhaust your available buys and sells
- E.g. If asset is $100, you have $500 and you plan to buy / sell every $10 change, if the asset drops straight to $40, your last buy will be at $50, at which point, the asset is still dropping. But it you only plan to buy / sell $5 every $10 price, you will be able to buy right down to 0.
In times of strong trend, it may be better to avoid this approach altogether as there may not be so much oscillation or at least to use a small if not minimum order size.
Application:
The buy and sell triggers can be connected using autoview to convert this indicator into a range trading bot
Advanced Chaikin Money Flow (CMF)TL;DR: change the aggregation to EMA to achieve similar results to Twiggs Money Flow. Play with the rest of parameters to get the desired results.
This script allows customization of CMF. It also includes all the improvements made by Twiggs Money flow.
Regular CMF does not take price gaps into account as you can see in the chart below. True range fixes this issue, as done in Twiggs Money flow (TMF).
More info here: www.incrediblecharts.com
Customization Options:
- You can change the effect of volume by setting volume exponent. 0 to 10 reduces the effect and 10+ increases it. In exchanges with too much wash trading, you may want to reduce volume effect.
- You can factor in price in CMF. It gives you a slightly different results. See my Volume x price (VxP) indicator for why it might be useful.
- The range can be changed to percentage (similar to RSI)
PS: I do not recommend using CMF in today's Crypto markets. Chaikin uses the same multiplier in CMF and Accumulation/Distribution Line (ADL). ADL is a totally broken indicator for BTC. If you look at the period after ATH (chart below), you will notice that ADL keeps increasing implying accumulation. While it is clear that there was distribution going on. The reason might be the artificially inflated prices in Crypto that is achieved by the help of bots and having "certain" exchanges as a price reference. So, my reasoning is that if ADL is a broken indicator, so should be CMF. CMF diverges from BTC price frequently. This is a double edged sword IMO. Still CMF is a much better indicator than ADL because it works relative to prior periods which covers some of its flaws.
Note for super nerds: Twiggs Money Flow includes true range and Welles Wilder's Moving Average (WWMA). I have seen some other scripts using their own calculations for WWMA which is not efficient. WWMA is equal to built-in RMA/SMMA which is equal to EMA with length 2x-1.
CoryT's Noro's Ichimoku AlertsA few months ago I took Noro's Ichimoku Cloud and used the AV bot template to throw stops on it. I took some code from JustUncleL
to make it not so hideous. Trailing Stops are turned off, stop losses are turned off (you really don't need them with this), and this is currently a Long/Short strategy, the Longs Only and Shorts Only options are broken right now, I'm tired and you guys can either fix it yourselves or deal with it like this for now.
Hint: If you wanna use this as a long-only strategy just have AV close your buy orders whenever a short is triggered.
CoryT's Noro's IchimokuA few months ago I took Noro's Ichimoku Cloud and used the AV bot template to throw stops on it. I took some code from JustUncleL
to make it not so hideous. Trailing Stops are turned off, stop losses are turned off (you really don't need them with this), and this is currently a Long/Short strategy, the Longs Only and Shorts Only options are broken right now, I'm tired and you guys can either fix it yourselves or deal with it like this for now.
Hint: If you wanna use this as a long-only strategy just have AV close your buy orders whenever a short is triggered.