[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 210
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
I run a script like this
int ticket = GetTickCount();
Alert("number - ",ticket);
and it gives me a different number every time, like: 20370015, but it's open by post 52608584.
How can mnk zyat kgo?
"The GetTickCount() function returns the number of milliseconds elapsed since the system started. The count is limited by the resolution of the system timer. Since the time is stored as an unsigned integer, it overflows every 49.7 days."
"The GetTickCount() function returns the number of milliseconds elapsed since the system started. The count is limited by the resolution of the system timer. Since the time is stored as an unsigned integer, it overflows every 49.7 days."
Oops, sorry.
OrderTicket() returns 0. Please advise.
Oh, sorry.
OrderTicket() returns 0. Please advise.
Oh, sorry.
OrderTicket() returns 0. Please advise.
Parse the order of the function with orders - your variant and you will understand.
How do I write a string of several words into a file, so that all the words are in one cell? When recording, all words separated by a space and even a string consisting of several variables are written in different cells.
What if I have to add up to four variables
string text = a + b + c + d;
and write it all in one cell
Your question is not clear. What do you mean by "cell in file"? Give me your code and the results you expect from it. For example a screenshot of a text file with explanations like "here and here should be written a and here b".
i am writing an EA -- order on crossing fast stochastic.
filter - long stochastic + indicator "y"
please help. (no need to order work (I already know how to pay))
thank you.
//--- input parameters
extern double y_buy=0.1;
extern double lots=0.1;
extern double slippage=3;
extern int FastK=8;
extern int FastD=3;
extern int FastSlowing=3;
extern int SlowK=50;
extern int SlowD=3;
extern int SlowSlowing=3;
extern int metod=0;
// //+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
double y_znach = iCustom(0,0, "y",33,0,0);
double y_buy = iCustom(0,0, "y",33,0,0)
double stoch_Fast_SIGNAL=iStochastic(NULL,0,FastK,FastD,FastSlowing,0,0,MODE_SIGNAL,1);
double stoch_Fast_MAIN=iStochastic(NULL,0,FastK,FastD,FastSlowing,0,0,MODE_MAIN,1);
double stoch_Slow_SIGNAL=iStochastic(NULL,0,SlowK,SlowD,SlowSlowing,0,0,MODE_SIGNAL,2);
double stoch_Slow_MAIN=iStochastic(NULL,0,SlowK,SlowD,SlowSlowing,0,0,MODE_MAIN,2);
// opening conditions.--
//if the "y" indicator value is greater than the "y_buy" indicator value
//there is a cross between the main line of the fast stochastic and the signal line
//the signal line of the slow stochastic is above the main line
if ( (stoch_Fast_SIGNAL==stoch_Fast_MAIN) && (y_znach>y_buy) && (stoch_Slow_SIGNAL>stoch_Slow_MAIN) ) // if statement with condition
{
OrderSend(Symbol(),OP_BUY,lots,Ask,slippage,Bid-25*Point,Ask+25*Point);
Alert("buy order");// message trader
}
//--------------------------------------------------------------------
return; // exit start()
}
Can you tell me how to get the size of a trading contract?
In MT5 it is like this:
and how to get the same in MT4 ?????????
Can you tell me how to get the size of a trading contract?
In MT5 it is like this:
and how to get the same in MT4 ?????????
If you can't squeeze it out of MarketInfo data, there is no other way
Tried this:
it gives out 100, but I need 10000 or 100000 I don't know which one it is.
Is there any way to get this data?
Tried this:
it gives out 100, but I need 10000 or 100000 I don't know which one it is.
Is there any way to get this data?
If you can't squeeze it out of MarketInfo data, there is no other way