Questions from Beginners MQL5 MT5 MetaTrader 5 - page 512

 

Good day everyone! Please help, there is a ZigZag https://www.mql5.com/ru/code/10076 how to correctly spell the condition to check if the perigee was perigee 24 hours ago

 Print(iCustom(NULL,0,"ZZ_Orlova",0.33,240,50,0,5000,0,1439),"   ",iCustom(NULL,0,"ZZ_Orlova",0,1440),"   ",iCustom(NULL,0,"ZZ_Orlova",0,1441));

It only outputs zeros.

Where am I wrong?

 
Aleksey Vakhrushev:

Good day everyone! Please help, there is a ZigZag https://www.mql5.com/ru/code/10076 how to correctly spell the condition to check if the perigee was a day ago

It just comes up with zeros.

Where am I wrong?

Are you doing a loop search?
 
Oksana Berenko:
Are you searching with a cycle?
Oksana, no, I'm just checking for conditions like this(I've written the indicator parameters completely without them to see if there's a difference)
 iCustom(NULL,0,"ZZ_Orlova",0.33,240,50,0,5000,0,1439)> iCustom(NULL,0,"ZZ_Orlova",0,1440) && iCustom(NULL,0,"ZZ_Orlova",0,1440)<iCustom(NULL,0,"ZZ_Orlova",0,1441));
 
MT4/950 Testing an EA, noticed that the results change spontaneously. Turned out to be a matter of spread change (the terminal is connected to the network).
How can I set a fixed spread for my choice - broker offers pairs with fixed spread among others, e.g. 1.6 for EURUSD ...
 
MikeZv:
MT4/950 Testing an EA, noticed that the results change spontaneously. Turned out to be a matter of spread change (the terminal is connected to the network).
How can I set a fixed spread for my choice - broker offers pairs with fixed spread among others, for example 1.6 for EURUSD ...
Put the numbers in the "Spread" field...
 
Aleksey Vakhrushev:
Oksana, no, I just check conditions something like this(I prescribed the indicator parameters completely without them to see if there is a difference)
i forgot to write that i am looking at minutes so 1440 minutes ago exactly one day
 

"One man is not a warrior in the field!"

Hello, everyone!

Is there anyone here from LITMO(St. Petersburg State University of Information Technologies Mechanics and Optics), living in St. Petersburg, with whom you can meet in person and discuss programming issues?
Reply in private or via E-mail: ****
 
-Aleks-:
Put the numbers in the "Spread" field...
-Aleks-, thanks for your reply. In the tester in"Character properties" the "Spread" field is not editable.
 
MikeZv:
-Aleks-, thanks for the reply. In the tester in"Character properties" the "Spread" field is not editable.
 
Artyom Trishkin:

Thanks, Artyom ! Turns out my tester opened narrowly and I didn't think to look below ...
It's called an advanced user. :)

Reason: