Discussion of article "The checks a trading robot must pass before publication in the Market" - page 24

 

Explain why the example about stop levels says this:

SL_check=(Bid-SL>stops_level*_Point);

and not like this:

SL_check=(Bid-SL>=stops_level*_Point);

The help says that stop levels are the minimum distance from price, not distance + 1 pip?

 
Konstantin Efremov #:

Explain why the example about stop levels says that:

and not like this:

The help says that stop levels are the minimum distance from price, not distance + 1 pip?

The minimum distance from the price at which a stop cannot be placed.

If >=, then we hit the last point of this distance.

 
Konstantin Efremov #:

Explain why the example about stop levels says that:

and not like this:

The help says that stop levels are the minimum distance from price, not distance + 1 pip?

also, without additional squatting, doubles are not compared for equality :-) i.e. >= is used only if you are sure that equality can be and makes sense.

Bid-SL can be for example 0.001000012 or 0.0009999971 which in both cases is 0.001.

 
Maxim Kuznetsov #:

Also, without additional squats, double for equality is not compared :-) i.e. >= is used only when you are absolutely sure that equality can be and makes sense.

Bid-SL can be e.g. 0.001000012 or 0.0009999971, which is 0.001 in both cases.

variables naturally passed through NormalizeDouble

 
Artyom Trishkin #:

The minimum distance from the price at which you cannot place a stop.

If >=, we hit the last point of this distance.

not hit

 
Hi, help me understand, when loading the robot passes the test on EURUSD but fails the test on gold, while EURUSD is tested with 10k, on gold for some reason with 1k and most importantly, the robot is not designed to work on gold, but I can not bypass this test or find in the settings where to specify only forex, I'm not saying that the robot is designed for H4, and the test is conducted on H1 but with this is still half the trouble, just the results are worse

.

test on EURUSD,H1 (hedging) strategy tester report 25 total trades test on XAUUSD,D1 (hedging) 2021.04.19 01:05:00 position stop out triggered at 45.86% [#48 sell 0.2 XAUUSD 1712.80 tp: 1710.80] 2021.04.19 01:05:00 position stop out triggered at 45.86% [#50 sell 0.2 XAUUSD 1727.02 tp: 1710.80] stop out occurred on 51% of testing interval strategy tester report 26 total trades

 
Maria Strudov EURUSD but fails the test on gold, while on EURUSD is tested with 10k, on gold for some reason with 1k and most importantly, the robot is not designed to work on gold, but I can not bypass this test or find in the settings where to specify only forex
.

I made a separate strategy for those instruments for which the Expert Advisor is not designed. Or you can set a minimum lot for such instruments, regardless of external settings.

 
Aleksey Vyazmikin #:

I made a separate strategy for those instruments for which the Expert Advisor is not designed. Or you can set a minimum lot for such instruments, regardless of external settings.

I tried it, I put a check on XAUUSD and if it is XAUUSD then do not open trades, but the check failed, it writes that there are no trades :)

 
Maria Strudov #:

I tried, I put a check on XAUUSD and if it is it, then do not open trades, but the check failed, it says that there are no trades :)

I did not suggest not to trade at all, I suggested using a different approach to trading.

In the description, of course, you should inform the user about this nuance.
 
Maria Strudov EURUSD but fails the test on gold, while EURUSD is tested with 10k, on gold for some reason with 1k and most importantly, the robot is not designed to work on gold, but I can not bypass this test or find in the settings where to specify only forex, I'm not saying that the robot is designed for H4, and the test is conducted on H1 but with this is still half the trouble, just the results are worse

.

test on EURUSD,H1 (hedging) strategy tester report 25 total trades test on XAUUSD,D1 (hedging) 2021.04.19 01:05:00 position stop out triggered at 45.86% [#48 sell 0.2 XAUUSD 1712.80 tp: 1710.80] 2021.04.19 01:05:00 position stop out triggered at 45.86% [#50 sell 0.2 XAUUSD 1727.02 tp: 1710.80] stop out occurred on 51% of testing interval strategy tester report 26 total trades

as an option to read what is written there. If honestly, really not a bad option