Hello, I have a function that calculates the S and B parameters on every tick of a bar. When a new bar appears, S and B have to be reset and their calculation is repeated.
MK07: Hello, I have a function that calculates the S and B on every tick of a bar. When a new bar arrives, the S and B have to be reset and their calculation is repeated.
In the first line of the code of start() function assign these variables value = 0.
Hello! I have a question about the terminal! In the tester, when testing an EA, I don't get the information low and high when calling theMarketInfo()function. I want to know if this is how it should be! Or I have some kind of problem in the terminal!
lowech: Hello! I have a question about the terminal! In the tester, when testing an EA, I get no information low and high when calling theMarketInfo()function. I want to know if this is supposed to be so! Or I have some kind of problem in the terminal!
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.
Can I give you a link?)
Can I give you a link?)
A link to what? You need to be more specific. There were a lot of questions, not all were answered
I thought there are brokerage companies that broadcast quotes in demo mode at weekends to test EAs.
You said
Конечно есть, только спред будет сильно увеличен
so I asked for a link.
In the tester.
Thank you :) I've got it, but I can't get it to work in a loop :(
How do I get it to perform the operation a set number of times?
#property show_inputs
#include <WinUser32.mqh>
extern int Kol=3;
int start()
{
int i=0;
for(i=0; i<Kol; i++){
OrderSend(Symbol(),OP_SELL,0.05,Bid,333,0,0,"Тест",0,0,CLR_NONE);
return(0);}
while(!IsTradeAllowed()) Sleep(1000);
PostMessageA(WindowHandle(Symbol(),Period()), WM_COMMAND, 33050, 0);
}
Thank you:) I've got it, but I can't get it to cycle:(
How do I get it to perform the operation a given number of times?
#property show_inputs
#include <WinUser32.mqh>
extern int Kol=3;
int start()
{
int i=0;
for(i=0; i<Kol; i++){
OrderSend(Symbol(),OP_SELL,0.05,Bid,333,0,0,"Тест",0,0,CLR_NONE);
return(0);}
while(!IsTradeAllowed()) Sleep(1000);
PostMessageA(WindowHandle(Symbol(),Period()), WM_COMMAND, 33050, 0);
}
Hello, I have a function that calculates the S and B on every tick of a bar. When a new bar arrives, the S and B have to be reset and their calculation is repeated.
In the first line of the code of start() function assign these variables value = 0.
Hello! I have a question about the terminal! In the tester, when testing an EA, I get no information low and high when calling theMarketInfo() function. I want to know if this is supposed to be so! Or I have some kind of problem in the terminal!