• Get access

Requests & Ideas - page 232

Mladen Rakic
162720
Mladen Rakic  
dasssi:
Good Morning

I want this ea to work in 5 digit broker

4 digit broker roboforex is working fine

Thanks in advance

dasssi

That is a decompiled code. Do you have a normal, not decompiled code of that EA?

dannyla
241
dannyla  

sorry i dont have it

Mladen Rakic
162720
Mladen Rakic  
dasssi:
sorry i dont have it

Will try to find the original

Pixwin21
34
Pixwin21  

Hey, i want a code who use 3 "iCustom" to do one median line of 3 "icustom" averages lines, can anyone help me?

For exemple :[(icustom(NULL,0,"indicator1",0,pos)+ icustom(NULL,0,"indicator2",0,pos)+ icustom(NULL,0,"indicato3",0,pos))/3]

Thanks for your help.

Mladen Rakic
162720
Mladen Rakic  
bixwin:
Hey, i want a code who use 3 "iCustom" to do one median line of 3 "icustom" averages lines, can anyone help me?

For exemple :[(icustom(NULL,0,"indicator1",0,pos)+ icustom(NULL,0,"indicator2",0,pos)+ icustom(NULL,0,"indicato3",0,pos))/3]

Thanks for your help.

bixwin

You are doing it good

The only thing you have to change is the casing ("icustom" should be "iCustom") and then all should work just fine. So, it can be written something like this (the "3.0" at the end is "just in case" - metatrader sometimes treats all as integers when you put an integer value in an expression, and that is not what you want in this case) :

double median = (iCustom(NULL,0,"indicator1",0,pos)+

iCustom(NULL,0,"indicator2",0,pos)+

iCustom(NULL,0,"indicator3",0,pos))/3.0;

Pixwin21
34
Pixwin21  

Mladen, thanks for your quick reply but I try that and don't work

#property copyright ""

#property link ""

#property indicator_chart_window

#property indicator_buffers 1

#property indicator_color1 Yellow

//---- input parameters

double ExtMapBuffer1[];

int ExtCountedBars=0;

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

//| Custom indicator initialization function |

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

int init()

{

//---- indicators

SetIndexStyle(0,DRAW_LINE);

SetIndexBuffer(0,ExtMapBuffer1);

SetIndexShift(0,MA_Shift);

//----

return(0);

}

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

//| Custom indicator deinitialization function |

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

int deinit()

{

//----

//----

return(0);

}

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

//| Custom indicator iteration function |

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

int start()

{

double del=0;

double prev=0;

if(Bars<=1) return(0);

ExtCountedBars=IndicatorCounted();

//---- check for possible errors

if (ExtCountedBars<0) return(-1);

//---- last counted bar will be recounted

if (ExtCountedBars>0) ExtCountedBars--;

int pos=Bars-1;

if(ExtCountedBars>1) pos=Bars-ExtCountedBars-1;

//---- main calculation loop

while(pos>=0)

{

double median = (iCustom(NULL,0,"indicator1",0,pos)+

iCustom(NULL,0,"indicator2",0,pos)+

iCustom(NULL,0,"indicator3",0,pos))/3.0;

}

return(median);

}

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

Mladen Rakic
162720
Mladen Rakic  
bixwin:
Mladen, thanks for your quick reply but I try that and don't work

#property copyright ""

#property link ""

#property indicator_chart_window

#property indicator_buffers 1

#property indicator_color1 Yellow

//---- input parameters

double ExtMapBuffer1[];

int ExtCountedBars=0;

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

//| Custom indicator initialization function |

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

int init()

{

//---- indicators

SetIndexStyle(0,DRAW_LINE);

SetIndexBuffer(0,ExtMapBuffer1);

SetIndexShift(0,MA_Shift);

//----

return(0);

}

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

//| Custom indicator deinitialization function |

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

int deinit()

{

//----

//----

return(0);

}

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

//| Custom indicator iteration function |

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

int start()

{

double del=0;

double prev=0;

if(Bars<=1) return(0);

ExtCountedBars=IndicatorCounted();

//---- check for possible errors

if (ExtCountedBars<0) return(-1);

//---- last counted bar will be recounted

if (ExtCountedBars>0) ExtCountedBars--;

int pos=Bars-1;

if(ExtCountedBars>1) pos=Bars-ExtCountedBars-1;

//---- main calculation loop

while(pos>=0)

{

double median = (iCustom(NULL,0,"indicator1",0,pos)+

iCustom(NULL,0,"indicator2",0,pos)+

iCustom(NULL,0,"indicator3",0,pos))/3.0;

}

return(median);

}

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

bixwin

what are the exact names of the indicators you you are going to use in calculation?

gallery
142
gallery  

Hi, could someone kindly direct me to to a thread where I could find a working OCO/Stradle indi, been looking for using search function but not easy job, Thank you

Mladen Rakic
162720
Mladen Rakic  
kiko12:
Hi, could someone kindly direct me to to a thread where I could find a working OCO/Stradle indi, been looking for using search function but not easy job, Thank you

kiko12

I assume you meant EA. Did you check this one : https://www.mql5.com/en/forum/general ?

Hermo
383
Hermo  

Hello community!

I'm here again to ask another indicator. It's very simple, but I need it customizable as much as you can.

The picture indicates what I really want: maximum, minimum, open and close of yesterday with different colors. The closes line doesn't appear in the pic, but you can imagine it.

As I remark in white color, it's yesterday. The open candle (in this case is wrong positionated..) is in yellow. The high will be in green and the lowest in red.

Params:

- Color of each line

- Boolean to show or not each line

The indicator has to restart when the day changes. I mean, when the time will be 12pm, the indicator has to restart with the new values.

I'm pretty sure that with your knowledges it will be so easy!

Thank you in advance for all the stuff you're creating. It's awesome and more important: useful! Thank you again.

Hermo

Files: