Make It No Repaint Please! - page 15

 
Mark010:
Is it possible to make this indicator no repaint? Many thanks

Mark010

Simply set the TenkanShift and KijunShift to 0. If you keep those values > 0 it will always repaint

 

The attached indicator says no-repaint in title but I have witnessed arrows disappear on current bar. Can someone fix? Thanks.adxcrossesnon-repainting.mq4

 
Jaquanburton:
The attached indicator says no-repaint in title but I have witnessed arrows disappear on current bar. Can someone fix? Thanks.adxcrossesnon-repainting.mq4

Any update on this? Is it possible to fix, or no?

 
Jaquanburton:
Any update on this? Is it possible to fix, or no?

Changing signals on a current (still opened) bar is not repainting and it will never be repainting

I think that the answer to that question was already answered : if the indicator does not allow using just open price (and ADX calculation does not allow it - it uses high and low regardless of what other price you chose) then it is not possible to have a calculation based on open price only (when the signal would not change). Using only open price in ADX calculation would always give just one single result : 0 (zero)

Here is some more information how adx is calculated Average Directional Index (ADX) - ChartSchool - StockCharts.com that might clarify what am I talking about when I say for the second time that it is not possible

 
mladen:
Changing signals on a current (still opened) bar is not repainting and it will never be repainting

I think that the answer to that question was already answered : if the indicator does not allow using just open price (and ADX calculation does not allow it - it uses high and low regardless of what other price you chose) then it is not possible to have a calculation based on open price only (when the signal would not change). Using only open price in ADX calculation would always give just one single result : 0 (zero)

Here is some more information how adx is calculated Average Directional Index (ADX) - ChartSchool - StockCharts.com that might clarify what am I talking about when I say for the second time that it is not possible

Ok I will be sure to check out.

 

can you modify the uni cross indicator to be not repainting

//+------------------------------------------------------------------+

//| uni cross.mq4 |

//| Copyright ?2009, MetaQuotes Software Corp. |

//| MetaTrader 5 Trading Platform / MetaQuotes Software Corp. |

//+------------------------------------------------------------------+

#property copyright "Copyright ?2009, MetaQuotes Software Corp."

#property link "http://www.metaquotes.net"

#property indicator_chart_window

#property indicator_color1 Aqua

#property indicator_color2 Yellow

#property indicator_width1 2

#property indicator_width2 2

extern bool UseSound = False;

extern bool TypeChart = False;

extern bool UseAlert = false;

extern string NameFileSound = "alert.wav";

extern int T3Period = 14;

extern int T3Price = PRICE_CLOSE;

extern double b = 0.618;

extern int Snake_HalfCycle =5; // Snake_HalfCycle = 4...10 or other

extern int Inverse = 0; //0=T3 crossing Snake, 1=Snake crossing T3

extern int DeltaForSell = 0;

extern int DeltaForBuy = 0;

extern int jarak = 50;

#property indicator_buffers 2

//---- input parameters

//---- buffers

double UpBuffer[];

double DnBuffer[];

double alertBar;

//+------------------------------------------------------------------+

//| Custom indicator initialization function |

//+------------------------------------------------------------------+

int init()

{

//---- indicators

// IndicatorBuffers(2);

SetIndexStyle(0,DRAW_ARROW,EMPTY);

SetIndexStyle(1,DRAW_ARROW,EMPTY);

SetIndexBuffer(0,UpBuffer);

SetIndexBuffer(1,DnBuffer);

SetIndexArrow(0,233);

SetIndexArrow(1,234);

SetIndexLabel(0,"Up Signal");

SetIndexLabel(1,"Down Signal");

//----

return(0);

}

//+------------------------------------------------------------------+

//| Custor indicator deinitialization function |

//+------------------------------------------------------------------+

int deinit()

{

//----

//----

return(0);

}

//+------------------------------------------------------------------+

//| Custom indicator iteration function |

//+------------------------------------------------------------------+

int start()

{

int limit;

int counted_bars=IndicatorCounted();

if(counted_bars<0) counted_bars=0;

if(counted_bars>0) counted_bars--;

limit=Bars-counted_bars;

for(int i = 0 ;i < limit ;i++)

{

if( Inverse == 0)

double pwma5 = iCustom(Symbol(),0,"Snake",Snake_HalfCycle,0,i+1);

double cwma5 = iCustom(Symbol(),0,"Snake",Snake_HalfCycle,0,i);

double pwma50 = iCustom(Symbol(),0,"T3_clean",T3Period,T3Price,b,0,i+1);

double cwma50 = iCustom(Symbol(),0,"T3_clean",T3Period,T3Price,b,0,i);

/* if( Inverse == 1)

pwma5 = iCustom(Symbol(),0,"T3_clean",T3Period,T3Price,b,0,i+1);

cwma5 = iCustom(Symbol(),0,"T3_clean",T3Period,T3Price,b,0,i);

pwma50 = iCustom(Symbol(),0,"Snake",Snake_HalfCycle,0,i+1);

cwma50 = iCustom(Symbol(),0,"Snake",Snake_HalfCycle,0,i);

*/

if( cwma5 > (cwma50 +(DeltaForBuy*Point)) && pwma5 <= pwma50)

{

UpBuffer = iLow(Symbol(),0,i)-(jarak*Point);

DnBuffer = EMPTY_VALUE;

if (UseSound==1) PlaySound(NameFileSound);

if (UseAlert==1 && Bars>alertBar) {Alert(Symbol(), "Buy signal", Period());alertBar = Bars;}

if (TypeChart==1) Comment ("Buy signal at Ask=",Ask,", Bid=",Bid,", Date=",TimeToStr(CurTime(),TIME_DATE)," ",TimeHour(CurTime()),":",TimeMinute(CurTime())," Symbol=",Symbol()," Period=",Period());

}

else if( pwma5 >= pwma50 && cwma5 < (cwma50 - (DeltaForSell*Point)))

{

UpBuffer = EMPTY_VALUE;

DnBuffer = iHigh(Symbol(),0,i)+(jarak*Point);

if (UseSound==1) PlaySound(NameFileSound);

if (UseAlert==1 && Bars>alertBar) {Alert(Symbol(), "Sell signal", Period());alertBar = Bars;}

if (TypeChart==1) Comment ("Sell signal at Ask=",Ask,", Bid=",Bid,", Date=",TimeToStr(CurTime(),TIME_DATE)," ",TimeHour(CurTime()),":",TimeMinute(CurTime())," Symbol=",Symbol()," Period=",Period());

}

else

{

DnBuffer = EMPTY_VALUE;

UpBuffer = EMPTY_VALUE;

}

}

//----

return(0);

}

//+------------------------------------------------------------------+

 
ahmednasr:
can you modify the uni cross indicator to be not repainting

//+------------------------------------------------------------------+

//| uni cross.mq4 |

//| Copyright ?2009, MetaQuotes Software Corp. |

//| MetaTrader 5 Trading Platform / MetaQuotes Software Corp. |

//+------------------------------------------------------------------+

#property copyright "Copyright ?2009, MetaQuotes Software Corp."

#property link "http://www.metaquotes.net"

#property indicator_chart_window

#property indicator_color1 Aqua

#property indicator_color2 Yellow

#property indicator_width1 2

#property indicator_width2 2

extern bool UseSound = False;

extern bool TypeChart = False;

extern bool UseAlert = false;

extern string NameFileSound = "alert.wav";

extern int T3Period = 14;

extern int T3Price = PRICE_CLOSE;

extern double b = 0.618;

extern int Snake_HalfCycle =5; // Snake_HalfCycle = 4...10 or other

extern int Inverse = 0; //0=T3 crossing Snake, 1=Snake crossing T3

extern int DeltaForSell = 0;

extern int DeltaForBuy = 0;

extern int jarak = 50;

#property indicator_buffers 2

//---- input parameters

//---- buffers

double UpBuffer[];

double DnBuffer[];

double alertBar;

//+------------------------------------------------------------------+

//| Custom indicator initialization function |

//+------------------------------------------------------------------+

int init()

{

//---- indicators

// IndicatorBuffers(2);

SetIndexStyle(0,DRAW_ARROW,EMPTY);

SetIndexStyle(1,DRAW_ARROW,EMPTY);

SetIndexBuffer(0,UpBuffer);

SetIndexBuffer(1,DnBuffer);

SetIndexArrow(0,233);

SetIndexArrow(1,234);

SetIndexLabel(0,"Up Signal");

SetIndexLabel(1,"Down Signal");

//----

return(0);

}

//+------------------------------------------------------------------+

//| Custor indicator deinitialization function |

//+------------------------------------------------------------------+

int deinit()

{

//----

//----

return(0);

}

//+------------------------------------------------------------------+

//| Custom indicator iteration function |

//+------------------------------------------------------------------+

int start()

{

int limit;

int counted_bars=IndicatorCounted();

if(counted_bars<0) counted_bars=0;

if(counted_bars>0) counted_bars--;

limit=Bars-counted_bars;

for(int i = 0 ;i < limit ;i++)

{

if( Inverse == 0)

double pwma5 = iCustom(Symbol(),0,"Snake",Snake_HalfCycle,0,i+1);

double cwma5 = iCustom(Symbol(),0,"Snake",Snake_HalfCycle,0,i);

double pwma50 = iCustom(Symbol(),0,"T3_clean",T3Period,T3Price,b,0,i+1);

double cwma50 = iCustom(Symbol(),0,"T3_clean",T3Period,T3Price,b,0,i);

/* if( Inverse == 1)

pwma5 = iCustom(Symbol(),0,"T3_clean",T3Period,T3Price,b,0,i+1);

cwma5 = iCustom(Symbol(),0,"T3_clean",T3Period,T3Price,b,0,i);

pwma50 = iCustom(Symbol(),0,"Snake",Snake_HalfCycle,0,i+1);

cwma50 = iCustom(Symbol(),0,"Snake",Snake_HalfCycle,0,i);

*/

if( cwma5 > (cwma50 +(DeltaForBuy*Point)) && pwma5 <= pwma50)

{

UpBuffer = iLow(Symbol(),0,i)-(jarak*Point);

DnBuffer = EMPTY_VALUE;

if (UseSound==1) PlaySound(NameFileSound);

if (UseAlert==1 && Bars>alertBar) {Alert(Symbol(), "Buy signal", Period());alertBar = Bars;}

if (TypeChart==1) Comment ("Buy signal at Ask=",Ask,", Bid=",Bid,", Date=",TimeToStr(CurTime(),TIME_DATE)," ",TimeHour(CurTime()),":",TimeMinute(CurTime())," Symbol=",Symbol()," Period=",Period());

}

else if( pwma5 >= pwma50 && cwma5 < (cwma50 - (DeltaForSell*Point)))

{

UpBuffer = EMPTY_VALUE;

DnBuffer = iHigh(Symbol(),0,i)+(jarak*Point);

if (UseSound==1) PlaySound(NameFileSound);

if (UseAlert==1 && Bars>alertBar) {Alert(Symbol(), "Sell signal", Period());alertBar = Bars;}

if (TypeChart==1) Comment ("Sell signal at Ask=",Ask,", Bid=",Bid,", Date=",TimeToStr(CurTime(),TIME_DATE)," ",TimeHour(CurTime()),":",TimeMinute(CurTime())," Symbol=",Symbol()," Period=",Period());

}

else

{

DnBuffer = EMPTY_VALUE;

UpBuffer = EMPTY_VALUE;

}

}

//----

return(0);

}

//+------------------------------------------------------------------+

The only way how you can make the "Snake" (centered TMA( no repaint is to use LWMA instead, But then it will not look anything like the snake (centered TMA)

 

The attached indicator repaints the previous bar can anyone take a look at this?

Files:
 
Jaquanburton:
The attached indicator repaints the previous bar can anyone take a look at this?

That one repaints much more than last bars. That is a solar wind indicator. Take a look at this thread : https://www.mql5.com/en/forum/179650

 
mladen:
That one repaints much more than last bars. That is a solar wind indicator. Take a look at this thread : https://www.mql5.com/en/forum/179650

Oh, ok thanks a lot Mladen. You were completely right I didn't believe you at first until I witnessed it. I will be sure to attach another indy there as well that I believe is a "Solar Wind."

Reason: