Multi Timeframe Indicators - page 1133

silent_trader
17
silent_trader  

hi mladen

would you please add shift option to this indicator.

it is mtf-ma.and it has shift option but it dosnt work correctly.I mean it dosnt shift(transport) the indicator in the end of the chart. 

thank you very much for your helps. 

Files:
MTF-MA.mq4 2 kb
Mladen Rakic
153914
Mladen Rakic  
yoppy:

hi mladen....

help me to make it's mtf version.......

thank's u....

yoppy

Here is the multi time frame version

Files:
Mladen Rakic
153914
Mladen Rakic  
rartec4:

hi mladen

would you please add shift option to this indicator.

it is mtf-ma.and it has shift option but it dosnt work correctly.I mean it dosnt shift(transport) the indicator in the end of the chart. 

thank you very much for your helps. 

Change the code to the following :

#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Red
#property indicator_width1 1 

input ENUM_TIMEFRAMES MA_TF=PERIOD_M30;
extern int MA_Period = 20;
extern int MA_ma_shift = 0;
extern ENUM_MA_METHOD MA_method_ = MODE_EMA;
extern ENUM_APPLIED_PRICE MA_applied_price_ = PRICE_CLOSE;
 
double MABuf[];

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

void init()
{
  SetIndexBuffer(0, MABuf);
  SetIndexStyle(0, DRAW_LINE);
  SetIndexEmptyValue(0, 0.0);
  SetIndexDrawBegin(0, MA_Period);
  MA_TF = MathMax(MA_TF,_Period);
  SetIndexShift(0,MA_ma_shift*MA_TF/_Period);
}

void deinit()
{
}

void start()
{
  int counted_bars = IndicatorCounted();
  if(counted_bars < 0) return;
  if(counted_bars > 0) counted_bars--;

  int limit = Bars-counted_bars;
  limit += MA_TF/Period();

  for (int i=limit; i >= 0; i--)
  {
    int shift = iBarShift(NULL, MA_TF, Time[i], true);
    if (shift == -1) continue;
    
    MABuf[i] = iMA(NULL, MA_TF, MA_Period, 0, MA_method_ , MA_applied_price_, shift);
  }
}
DDAV
34
DDAV  

hi guys

i found this indicator in a thread on forexfactory.

according the user we need use it on differents timeframe.

So May you add mtf on it please ?


thank you.

Files:
mntiwana
4545
mntiwana  
DRADIS33:

hi guys

i found this indicator in a thread on forexfactory.

according the user we need use it on differents timeframe.

So May you add mtf on it please ?


thank you.

DRADIS33

Needs source code (mq4) file for to do some thing with.

DDAV
34
DDAV  
mntiwana:

DRADIS33

Needs source code (mq4) file for to do some thing with.

Thank you Im going to try to find it.
Mladen Rakic
153914
Mladen Rakic  
DRADIS33:
Thank you Im going to try to find it.

Try this one

jeaa
16
jeaa  

Dear mladen,

I hope you are very well.

I tried to do a EA base in ZZ indicator... I could open the buy order when the ZZ indicatos get a value; but the order is not close...

Can you help me?

Thanks in advanced...


int MagicN                   =1453;

extern int Barras=5; // Cantidad de barras
extern int y     =5;
//--------------------------------------------------------------------
extern double Lots               = 0.01;
extern double    Slippage        = 3;
extern double Period1            = 5;
extern string Dev_Step_1         ="0,5";
extern int Symbol_1_Kod          =140;

//--------------------------------------------------------------------
bool GV_Flag_NuevaBarra=false; // Flag de una nueva barra
//======================================================================

int start() // Special funct. start()
{
//--------------------------------------------------------------------
Fun_NuevaBarra(); // Funcion call
if (GV_Flag_NuevaBarra==false) // Si no hay nueva barra..
return; // ..return
//=========================================================================
int IndMin =ArrayMinimum(Low,Barras,1);
int IndMax =ArrayMaximum(High,Barras,1);
double ZZ, CC;

double Buy=Low[IndMin];
double XX=High[IndMax];

ZZ=iCustom(Symbol(),0,"3_Level_ZZ_Semafor",Period1,Dev_Step_1,Symbol_1_Kod,0,y);
CC=iCustom(Symbol(),0,"3_Level_ZZ_Semafor",Period1,Dev_Step_1,Symbol_1_Kod,1,y);

if (Buy == ZZ)
{
 Alert(Symbol(),": Barras= ",Barras,", ZZ= ",DoubleToString(ZZ,Digits),", Precio= ",DoubleToString(Buy,Digits) ); 
   
int ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"Jeaa",MagicN,0,Blue);

Print ("Orden de Compra enviada: xxxx");// falta colocar el OrderTicket()
}
//=========================================================================

if (XX == CC)

{
if(OrderMagicNumber()== MagicN)
 {     //---- check order type
if(OrderType()==OP_BUY)

OrderClose(OrderTicket(),OrderLots(),Bid,3,White);
 
Alert(Symbol(),": Barras= ",Barras,", CC= ",DoubleToString(CC,Digits),", Precio= ",DoubleToString(XX,Digits) ); 
  
Print ("=====ORDEN CERRADA=====");
}
}
}
//=============================================================================
return;
}
//=========================================================================

void Fun_NuevaBarra() // Descripción de la Funcion que detecta ..
{ // .. una nueva barra
static datetime NewTime=0; // variable que almacena fecha y hora
GV_Flag_NuevaBarra=false; // Inicializa nueva barra a falso (no hay nueva barra)
if(NewTime!=Time[0]) // Si existe nueva barra el dato es distinto de cero..
{
NewTime=Time[0]; //.. y en ese caso se registra el hora y fecha de la..
GV_Flag_NuevaBarra=true; //nueva barra y se activa el flag que señaliza la…
//existencia de una nueva barra

}
}
//--------------------------------------------------------------------

William Snyder
9492
William Snyder  
Dann001:

HI, does anybody know if there is MTF version of PVT indicator??(price and volume trend)..I know there is an Dynamic zone PVT, but it is not MTF...

Thanks for any help....

Couldn't find one so added mtf to this version.

 

 

Dann001
8
Dann001  
mrtools:

Couldn't find one so added mtf to this version

mrtools:

Couldn't find one so added mtf to this version.

 

 

Thank you...