Simple but very effective script that finds areas of support and resistance through ticks exchange. Only works with CFDs (You must enter in the settings the value corresponding to the CFD, example: US500=500, DAX30=30, FRANCE40=40 etc…).
SuperTrend ++ in action on Dow Jones Index.
Here is the complete list of features present in this indicator :
- CFD Number
All options have their original default settings. You need to be able to readjust them depending on the market instrument you want to analyze.
Or copy / paste the source code into your pine editor :
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © RickSimpson //@version=4 study("CFD Ticks Levels", 'CTL', overlay=true, max_bars_back=300) //Inputs ticksize = input(defval=0, title="CFD Number", type=input.integer, minval=0) //Round Function round_to_nearest(v, x) => round(v / x) * x //Constant Mintick Variable mintick = max(syminfo.mintick, ticksize) //Calculation hht = round_to_nearest(high, ticksize) llt = round_to_nearest(low, ticksize) //Conditions upper = hht + mintick lower = llt - mintick //Plotting plot(upper, title="Upper", color=color.red, style=plot.style_linebr, linewidth=3, transp=20, trackprice=true, offset=-9999) plot(lower, title="Lower", color=color.blue, style=plot.style_linebr, linewidth=3, transp=20, trackprice=true, offset=-9999)
The content covered on this website is NOT investment advice and I am not a financial advisor.