Multi Timeframe Indicators - page 19

 

Plz repair this script

I try to change step stoch to MTF but it said

'\end_of_program' - unbalanced left parenthesis C:\Program Files\MetaTrader - North Finance\experts\indicators\#MTF_StepMA_Stoch_V1.mq4 (113, 1)

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

//| #MTF_Step stoch.mq4 |

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

#property indicator_separate_window

#property indicator_buffers 2

#property indicator_color1 Yellow

#property indicator_color2 DeepSkyBlue

#property indicator_minimum 0

#property indicator_maximum 1

//---- input parameters

/*************************************************************************

PERIOD_M1 1

PERIOD_M5 5

PERIOD_M15 15

PERIOD_M30 30

PERIOD_H1 60

PERIOD_H4 240

PERIOD_D1 1440

PERIOD_W1 10080

PERIOD_MN1 43200

You must use the numeric value of the timeframe that you want to use

when you set the TimeFrame' value with the indicator inputs.

---------------------------------------*/

//---- input parameters

extern int PeriodWATR=10;

extern double Kwatr=1.0000;

extern int HighLow=0;

extern int TimeFrame=0;

//---- indicator buffers

double LineMinBuffer[];

double LineMidBuffer[];

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

//| Custom indicator initialization function |

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

int init()

{

string short_name;

IndicatorBuffers(6);

//---- indicator line

SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1);

SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,1);

SetIndexBuffer(0,LineMinBuffer);

SetIndexBuffer(1,LineMidBuffer);

IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));

//---- name for DataWindow and indicator subwindow label

switch(TimeFrame)

{

case 1 : string TimeFrameStr="Period_M1"; break;

case 5 : TimeFrameStr="Period_M5"; break;

case 15 : TimeFrameStr="Period_M15"; break;

case 30 : TimeFrameStr="Period_M30"; break;

case 60 : TimeFrameStr="Period_H1"; break;

case 240 : TimeFrameStr="Period_H4"; break;

case 1440 : TimeFrameStr="Period_D1"; break;

case 10080 : TimeFrameStr="Period_W1"; break;

case 43200 : TimeFrameStr="Period_MN1"; break;

default : TimeFrameStr="Current Timeframe";

}

IndicatorShortName("MTF_StepMA Stoch("+TimeFrameStr+","+PeriodWATR+","+Kwatr+","+HighLow+")";

SetIndexDrawBegin(0,PeriodWATR);

SetIndexDrawBegin(1,PeriodWATR);

}

//----

return(0);

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

//| MTF Step Stoch |

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

int start()

{

datetime TimeArray[];

int i,limit,y=0,counted_bars=IndicatorCounted();

// Plot defined time frame on to current time frame

ArrayCopySeries(TimeArray,MODE_TIME,Symbol(),TimeFrame);

limit=Bars-counted_bars;

for(i=0,y=0;i<limit;i++)

{

if (Time<TimeArray[y]) y++;

/***********************************************************

Add your main indicator loop below. You can reference an existing

indicator with its iName or iCustom.

Rule 1: Add extern inputs above for all neccesary values

Rule 2: Use 'TimeFrame' for the indicator time frame

Rule 3: Use 'y' for your indicator's shift value

**********************************************************/

LineMinBuffer=iCustom(Symbol(),TimeFrame,"StepMA_Stoch_V1",0,PeriodWATR);

LineMidBuffer=iCustom(Symbol(),TimeFrame,"StepMA_Stoch_V1",1,PeriodWATR);

}

return(0);

}

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

Thanks

 

ValeoFx,

Thanks Man, Its a good indicator and regarding re-painting, I sat the whole afternoon sitting in front of 1M, 1H chart and i did not see its repaint the last bars. am'i missing something here or the re-painting happens sometimes or frequently.

After reading the post however, I tried to look at the codes and went to the site http://viac.ru/ the originator i guess of the codes and found others indicators as well.

The most frequented mq4 indicator was silver channel.

Im sorry i being late to the forum, taking time to get all the indicators, so if you guys have not already gone through it, you can verify and compare the two indicators together and see the results

Files:
 

Sorry Folks, It indeed does re-paint ....Irrational exuburance. I think i need a break now

 
balista4:
Sorry Folks, It indeed does re-paint ....Irrational exuburance. I think i need a break now

balista4,

this indicator is from trading system created by AlexSilver from viac. ru forum.

It is not simple system. I don't know how to trade by this system.

Files:
silver_d1.gif  23 kb
silver_h1.gif  24 kb
silver_h4.gif  17 kb
 

multiple from this?

Hello

multiple from this?

Thanks

Files:
 

jr is nice indicator

 

NewDigital,

Thanks for the clarification.

 

Hi All!

Me is necessary MTF indicator "BBands Stops".

Somebody can help and alter existing?

Files:
 

Hope this can help

Alexey Baranov:
Hi All!

Me is necessary MTF indicator "BBands Stops".

Somebody can help and alter existing?

Try this one

Files:
 

MTF kijen-sen

hi can any one convert this indicator in an MTF one. i tried but for some reason it does not work!

thanks in advance!

Files:
kijun-sen.mq4  3 kb
Reason: