Some code for detecting the very rare occurrences of the Marubozu candle. This candle occurs when the High = Close, and Low = Open, or vice versa. They are continuation candles, so if you see a bullish Marubozu during an uptrend its possible that the uptrend will continue.
Pinescript requires many of its built-in functions to use a simple int as their period length, which entails the period length cannot vary during the script's execution. These functions allow using a series int or series float for their period length, which means it can vary on each bar.
The functions shared in this script include:
Rolling sum: ...
This indicator measures the vertical distance form the current close to the MA of your choice. I find that it does not work best as an oscillator, but it works well for providing early signals for taking profits when trend continuating. For example, if you go short due to a retracement to the MA (of your choice) take profits when a bearish trendline is broken...
here is my first script.
This is the normal 14 period ADX,
but with a color twist, to make it extremely easy on eyes.
easily spot the strength.
ADX, as you know, shows the strength of the trend.
As short term traders, we need price movement and a strong trend.
How to use this script ?
1. We don't trade when ADX is in the ...
Another tool for the cooltoyz series :)
tired of having to look at multiple time frames for a ticker, and having to mentally mix them to try to guess/visualize trends, or support/resistance levels? so was i, and with this tool i let the chart do the heavy lifting :)
with this, upper time frames are visualized as shadows imposed on the chart itself. there are...
This is a no-volume version of Vervoort's SVAPO. The original version is @
Since it doesn't include volume in its calculations, you can use this on FX.
More info on SVAPO:
BTW, this is my 150th script. Plenty more to come, my...
Since my exchange doesn't support trailing stop I made a script for it.
It is fully configurable, which means you can set the bars for calculation, the offset and sources for trigger and calculation.
The original purpose for me was to send a command to my bot. If you like it please comment and check out my other scripts.
This 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...
QuantCat Momentum Finder Strategy
This strategy is designed to be used on the 1 hour time frame, on all x/btc pairs.
The beautiful thing is it plots the take profit, and stoploss for you for each entry- where I would say use the stoploss for sure and feel with water with how the price action is looking when in profit.
In this strategy, I actually implemented...
updated my on screen options
added chris moody's day of the week - added that option so that day range can be seen easily - credit to chris moody.
also have favoured EMAS and bollinger band so that 3 indicators can be used on accounts with 5 indicator options.
colours can be changed in the script so ones that suit white back grounds or can save a template...
This script calculates the run time of a Pine script. While its numbers are not very precise and it doesn’t work on all scripts, it will help developers calculate run times more precisely than by hand, and so provides Pine coders with an additional profiling tool to help them optimize their code.
How to use the code
• Place the code included between the...
// Fixed error message "Index should not be negative(-8)"
// @author lonestar108
study(title = "3/9/27/9 Zero Lag EMA / EMA / Pivots / Dynamic Support", shorttitle="3/9/27/9 ZLEMA/EMA/Pivots/Support", overlay=true)
lengths=input(3, title="Short Period Length")
length=input(9, title="Fast Period Length")
length2=input(27, title="Slow Period...
Dragon 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...
Firstly, 100% of the credit goes to Greg Morris @ Stockcharts.com for the article detailing the concept and most of the settings/components. I've simply implemented his idea. I haven't sought permission from him, but given that he was open with the components of the indicator I'm assuming he's happy for me to go ahead and code this in pinescript. See the article...
What is a Source ?
This is the module where the indicators are built. In other words, the main logic of a trading system . This where entries and exits takes place.
In this case, we have pre-built an external Quansium Source , where the user can enter basic signals without the need for any code of signal management at all.
Why should I use this?