A collection of custom tools & utility functions commonly used with my scripts.
getDecimals() Calculates how many decimals are on the quote price of the current market
Returns: The current decimal places on the market quote price
truncate(float, float) Truncates (cuts) excess decimal places
float : _number The...
I have created a starting template for strategies.
It allows quick control of turning on/off long and short conditions, or disabling them entirely.
It includes trade filters for strategy equity and volatility. If there is not enough volatility it will not trade, or if the strategy equity is below the equity ema it will not trade.
It has standard stops and...
I'm not 100% satisfied with the strategy performance output I receive from TradingView. Quite often I want to see something that is not available by default. I usually export raw trades/metrics from TradingView and then do additional analysis manually.
But with tables, you can build additional metrics and tools for your strategies quite easily.
This script will...
This study project is a Scalping Pullback trading Tool that incorporates the majority of the indicators needed to analyse and scalp Trends for Pull Backs and reversals on 1min, 5min or 15min charts. The set up utilies Heikin Ashi candle charts. Incorporated within this tool are the following indicators:
1. Major industry (Banks) recognised important...
Tradingview has a good line chart, but I wanted to make it even more awesome.
Some shortcomings which this line chart enhancer script fixes
Colors up move as green, down move as red (you can change them as you like)
Plots high and low - so that one can be aware about what the price is doing
To achieve the look with markers as shown above
By request this is an updated version of the "PullBack Trading Tool": removes experimental "OCC" channel, added option to display ribbons or just single moving average lines, added alert arrows for "PB" exits, added alertcondition for TV alarm subsystem, added some extract options for Pivot points and general cleanup of code.
B3 Buyer-Seller Breakouts = If a bar is showing that it is moving in a direction with highs lows and close, all of which are >respectively< moving against the open from the bar before, then it prints indicating buyers or sellers bringing momentum. The arrows and cloud carry into the next bar to give lots of awareness of the micro-term momentum. The cloud...
This indicator uses Heiken Ashi candle data to plot trend strength signals to your chart.
Bright Green: Heiken Ashi candle data is still putting in higher lows and higher highs, and the price closed above the previous low.
Dark Green: Heiken Ashi candle closed green, but had a lower low or lower high (trend weakening).
Bright Red: Heiken Ashi candle data is...
Hi guys, I found this tool very useful and accurate, but can't find it on Trading View, so I made one for myself and everyone here ;)
Alert is available too.
The 2-Year MA Multiplier is intended to be used as a long term investment tool.
It highlights periods where buying or selling Bitcoin during those times would have produced outsized...
This is a tool, shows the volume variation % strength related to the X past candles.
The current candle is shown in real time, until candle closes.
The visualization of the candle time to close is a thin line, that is 100% for all past candles and slowly goes up for the current candle.
Best with an example:
with a 4h candle, 1 hour has wasted already. This is...
Oscillator Evaluator (Analysis tool)
The oscillator evaluator is a tool that will help you analyse and compare the oscillator of your choice to another 2 oscillators.
By selecting the strategy with which you will analyze the oscillators, you will be able to see the behaviour of the oscillators in different aspects.
First there is a moving average increase or...
This indicator helps in letting the trader focus on a particular date/candle across many symbols.
Tradingview currently has a bug in Bar Replay - when we switch symbols, the bar replay resets.
Hence if you are backtesting & running through a bunch of symbols, it is nearly impossible to focus on a particular historical candle across all symbols.
This is a simple script to assist you in manual backtesting! Perfect for the NNFX crowd or anyone that enjoys manual backtesting.
1. Slap this bad boy on your chart.
2. Adjust period and multiplier (defaults are 14 period and 1.5x).
3. Put on the indicator/system you are testing.
4. Enter bar replay mode.
5. Drag your long/short position take profit and...
Pinescript v3 Compatibility Framework (v4 Migration Tool)
This code makes most v3 scripts work in v4 with only a few minor changes below. Place the framework code before the first input statement.
You can totally delete all comments.
- to port to v4 you only need to make a few simple changes, not affecting the core v3 code functionality
This is a tool. Do with it what you like :)
The ghost candle works by drawing a bigger time frame candles in ghost mode over a chart. The time frame is default of 4h, can be changed in the "format" pop-up.
What we see in a time frame as the "wick", is really a set of candles when looked at lower resolutions/timeframes, that info is crunched into the OHLC...
Uses two sets of MACD plus an RSI to either long or short. All three indicators trigger buy/sell as one (ie it's not 'IF MACD1 OR MACD2 OR RSI > 1 = buy", its more like "IF 1 AND 2 AND RSI=buy", all 3 match required for trigger)
The MACD inputs should be tweaked depending on timeframe and what you are trading. If you are doing 1, 3, 5 min or real...