Hello everyone, This was a grid trading example for intraday trading. Please be advised that every commodity have diferent kind of reaction and rate of change between periods therefore the percentages need to be adjusted acording to the commodities change %. In order to specify the adjustment rate we add the Zig Zag in the script. For Example ; Last 3 days zigzag...
This script uses the Average Direction Index, On Balance Volume, and Exponential Moving Average, Moving Average Cross, MACD, Donchian Channels and two Parabolic SARs for stop loss, a normal one and a line one. I tried to make the script as straightforward as possible, Buy when there is a buy signal and sell when there is a sell signal. I like using it on the...
Helper script to display patterns on chart.
Multiple Statistics from zigzag: • Price range between swings. • Bar range between swings. returns maximum value, avg value and mean deviation. if you find something missing, please leave a message bellow.
Here is an attempt calculate Average Zigzag Range (AZR). This can be used similar to ATR. Using AZR instead of ATR for trailing stop calculation may yield better outcome in trend trading. Logic is simple. Calculate zigzag based on ZigzagLength Calculate distance between each zigzag pivots Calculate simple moving average of last MALength pivots Use ...
Here is an extensive library on different variations of supertrend. Library "supertrend" supertrend : Library dedicated to different variations of supertrend supertrend_atr(length, multiplier, atrMaType, source, highSource, lowSource, waitForClose, delayed) supertrend_atr: Simple supertrend based on atr but also takes into consideration of custom MA Type,...
This indicator constructs dynamic high/low price range levels, based on 3 point fractals. Trend lines are drawn (zigzag style) at fractal points when trend direction is clearly established. This is a lagging indicator: fractals lag by one bar and trend lines can lag by many bars. However, its strength lays in objectively defining historic price action: e.g....
Library "Pivots" This Library focuses in functions related to pivot highs and lows and some of their applications (i.e. divergences, zigzag, harmonics, support and resistance...) pivots(srcH, srcL, length) Delivers series of pivot highs, lows and zigzag. Parameters: srcH : Source series to look for pivot highs. Stricter applications might source from...
This is a combination of all my old indicators, with an added feature for trend lines (inspiration for this came from Wedge Maker script thanks to veryfid, I hope he doesn't mind). This script looks for a period with increased volatility , as measured by ATR ( Average True Range ), then it looks for a high or a low in that area. When price is above EMA (400 is...
EXPERIMENTAL: displays rates as a oscillator.
This is another among zillions of attempts at a moving average of a security. More precisely, two attempts at one go). The zzoid function generates a zigzag-like MA that can adopt different forms. The stepline function creates, sure enough, a stepline.
naive level forecasting of multiple zigzag's based on this principle:
simple example showing how to use na to create straight lines that "repaint" as the latest bars update.