Coding help - page 442

 

Привет! Помощь не показывает индикатор [/ QUOTE]

 
arina:
Привет! Помощь не показывает индикатор

arina

That is not a metatrader code - as far as I see that is Cryptotrader code and it will not work on metatrader

 
QuantF:
Tried to make the indicator shows the balance in the form of a line, when called from the strategy tester.

The indicator on each bar opens a new window.

The line is not visible.

Actually need an indicator showing the line of the account balance, when called from the strategy tester.

Tell me, how to do?

Or maybe there is a ready solution?

indicator code:

#property indicator_separate_window

#property indicator_buffers 1

#property indicator_color1 Blue

extern double r=1.0;

double balance[];

int init()

{

IndicatorDigits( 2 );

SetIndexStyle( 0, DRAW_LINE );

}

int start()

{

int counted_bars=IndicatorCounted(),

i,limit;

double chetvert;

if(counted_bars>0)

counted_bars--;

limit=Bars-counted_bars-1;

for(i=limit;i>=0;i--)balance =r;

return(0);

}

[/CODE]

EA code:

[CODE]double r=AccountBalance();

double indicator=iCustom(NULL,0,"Balance",r,0,0);

seems that it works OK for me

This is the EA code I used :

int init() { return(0); }

int deinit() { return(0); }

void start(void)

{

double r=AccountBalance();

double indicator=iCustom(NULL,0,"balance",r,0,0);

return;

}
 

I cannot get the value.

Took the example from the article, also not working.

Maybe it only works on older builds?

Or doing something wrong?

Files:
ea.mq4  10 kb
balance.mq4  1 kb
 
QuantF:
I cannot get the value.

Took the example from the article, also not working.

Maybe it only works on older builds?

Or doing something wrong?

Try it out now (only the indicator needed a change) : balance_1.mq4

Files:
balance_1.mq4  1 kb
 

Hi,

Where should I edit to make this EA working for nmc and 5 digit account?

Please advise.

Thanks in advance

Best regards

Files:
 

Hi,

Can someone please help ...

I need to make a icustom call to call a pivot point indicator from metatrader Pivot Points Set up on MetaTrader 4 - MQL4 forum

How do I return values of Pivot, R1,R2,R3,S1,S2 and S3?

I am confused because there is only 1 in index buffer in the indicator code.

 

Help Moving Averages mirror

Goodmorning to everybody, needs a help

Iwould like to create a Moving Averages mirror however I am not ableto program, practically a Moving Averages would use me with thefunctions as that original MT4 however to mirror not separated by theprincipal window

Iwanted to add if it is possible to program the indicator with 2moving average with the function of deviation as in the indicativeBollinger

inpractice a similar thing, that works contrarily

Ihope that some good person can help

PS:you excuse my English

Hifrom Moreno

Files:
grafico.png  50 kb
 
morenokosta:
Goodmorning to everybody, needs a help

Iwould like to create a Moving Averages mirror however I am not ableto program, practically a Moving Averages would use me with thefunctions as that original MT4 however to mirror not separated by theprincipal window

Iwanted to add if it is possible to program the indicator with 2moving average with the function of deviation as in the indicativeBollinger

inpractice a similar thing, that works contrarily

Ihope that some good person can help

PS:you excuse my English

Hifrom Moreno

Hifrom

Check this thread for some discussion on that subject : https://www.mql5.com/en/forum/184556

 

Hi Mladen,

I have yet another request....! For the next two months my wife and I are to play host to four grandchildren. Which means my trading will without doubt suffer! I will restrict it to the FTSE100, & EOD trading. I have attached an expert which I'm hoping will give me time with the grandchildren, & also do the trading for me. The problem is....when I compile it, I get 14 warnings. Would you be kind enough to work your magic on it for me?

Files:
Reason: