hi guys this is a great indicator that paints basically pivot highs/lows but works much better than anything that's currently in TradingView. If someone can covert it over.
//+------------------------------------------------------------------+ //| Livelli_SR Now .mq4 | //| L'angolo del Trader | //| PaoloNieddu | //+------------------------------------------------------------------+
#property copyright "L'angolo del Trader" #property link "PaoloNieddu" #property version "1.00"
//+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { // Buffers IndicatorBuffers(2); SetIndexArrow(0, 158); SetIndexStyle(0, DRAW_ARROW, STYLE_DOT); //158,159,108 sono i nuneri aschi per settare lo spessore dei pallini; piccolo,medio,grande SetIndexBuffer(0, v1); // 167,110 per settare i quadrati piccolo e grande SetIndexLabel(0,"Resistenza"); SetIndexArrow(1, 158); SetIndexStyle(1, DRAW_ARROW, STYLE_DOT); SetIndexBuffer(1, v2); SetIndexLabel(1,"Supporto");
//+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { // Start, limit, etc.. int start = 1; int limit; int counted_bars = IndicatorCounted();
// if(counted_bars < 0) return(-1);
// non controllare le barre che si ripetono limit = Bars - 1 - counted_bars;
// Scorri dal passato al presente for(int i = limit; i >= start; i--) { // ultimo Frattale double val1 = upper_fractal(i); double val2 = lower_fractal(i);
[IMG]i65.tinypic.com/2qwzsjl.png[/IMG]