
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Привет! Помощь не показывает индикатор [/ QUOTE]
Привет! Помощь не показывает индикатор
arina
That is not a metatrader code - as far as I see that is Cryptotrader code and it will not work on metatrader
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_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 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?
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
Hi,
Where should I edit to make this EA working for nmc and 5 digit account?
Please advise.
Thanks in advance
Best regards
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
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 MorenoHifrom
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?