[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 280

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
Tried replacing the stops with zeros in the code - the operation is successful. The problem occurs when they are different from zero. In the original (tutorial) they are not normalized. Although I have tried all the variants and this one too.
Help for the newbie! How to prescribe waiting for the EA to open the next bar?
bool f_New_Bar()
{
int Bar_ID=Bars;
bool NB=false;
//+------------------------------------------------------------------+
if (g_NewBar!=Bar_ID)
{
g_NewBar=Bar_ID;
NB=true;
}
return (NB);
}
g_NewBar-global variable.Equals true only on one tick at the start of a new bar
bool f_New_Bar()
{
int Bar_ID=Bars;
bool NB=false;
//+------------------------------------------------------------------+
if (g_NewBar!=Bar_ID)
{
g_NewBar=Bar_ID;
NB=true;
}
return (NB);
}
g_NewBar-global variable.Equals true only on one tick-at the start of a new bar
Sorri, that's another rush. g_NewBar is an integer variable.
help newbie! how to prescribe waiting for the next bar? i.e. the EA waits for the current bar to be formed and starts checking conditions at the opening of a new bar?
Tried replacing the stops with zeros in the code - the operation is successful. The problem occurs when they are different from zero. In the original (tutorial) they are not normalized, although I have tried all variants and this one too.
Perhaps the settings are those of the brokerage company. Try to divide an operation into two.
>> First, we will start with setting of order without stops and takeovers, and then its modification with setting of stops and takeovers.
Can I make an object "blink" (like the "blink" parameter)?
Can I make an object "blink" (like the "blink" parameter)?
Uncle Fyodor, you're asking a lot of questions. I haven't tried it, but I think, you can do it with colour change looping.
But it will be slow and you will need it.
Well, you're Uncle Fyodor, I have not tried it, but I think that by looping the colour change is possible.
But it'll slow you down, you don't need it.
no... I don't need brakes... during my own studies I do not remember encountering one, so I asked... loops, slips, and delays are not the solution... Thanks!