Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
artem86 23.03.2012 09:28
Please tell me why I cannot open a deposit!
//--------------------------------------------------------------------
int start()
{
double Price =Ask+20*Point;
Alert (Price);
OrderSend(Symbol(), OP_BUYSTOP, 0.1, Price,2, Bid-15*Point, Bid+15*Point);
Alert (GetLastError();
return; // Exit from start()
}
//--------------------------------------------------------------------
I've been worried for two days!
artem86 23.03.2012 09:28
Please tell me why I cannot open a deposit!
//--------------------------------------------------------------------
int start()
{
double Price =Ask+20*Point;
Alert (Price);
OrderSend(Symbol(), OP_BUYSTOP, 0.1, Price,2, Bid-15*Point, Bid+15*Point);
Alert (GetLastError();
return; // Exit from start()
}
//--------------------------------------------------------------------
I've been worried for two days!
Decided to start learning C,C++,C#, who can suggest a good compiler and editor.
Thank you.
double Sredn(double& ArrSr[]) - I used the & sign that way.
Vadim, you put such a small (&) that you can't see it straight away!..! :)))
I wonder how the author (in the author's version) this function was performed in one place and not in another! ;)
There is no error as such in calculating the whole indicator. Just think what is faster:
1) to count Bars (about 10000) bars every tick
2) count 20 bars 1 time per minute (or even more)
I repeat, the opening price of OP_BUY==Ask, OP_SELL==Bid.
And you have Close[i].
It came from my indicator, I also wanted to make Ask's calculation, but it didn't work. I had to use Close.
I will try it that way.
Decided to start learning C,C++,C#, who can suggest a good compiler and editor.
Thank you.