Absolute opposition - page 7

 
Alexey Volchanskiy:


I had to put the red numbers into an array because the colours and even/odd don't match, data from here https://otvet.mail.ru/question/9344746

if you have trouble with black/red you can replay everything with odd/even, the scheme is the same and the ratios are the same

There is no difference in roulette between black/red and even/odd
 
Alexey Volchanskiy:

2015.12.09 00:55:46.757 Roulette EURUSD.e,M5: iteration=10000 depo=66927.0 MinDepo=1001.0 MaxDepo=66927.0 MaxLot=16384.0 NZero=260 Nred=4969 Nblack=4771

MinLot=1; //minimum lot
StartDepo = 1000; //Start deposit
Iterations = 10000; //Number of iterations

---------

:-) too much profit, something is wrong
 
Ivan Vagin:
Of course "give back to the casino", I can only look it up on the computer now if I understand.

in general terms - the bet "burns out" if zero or not our colour

you have a common black and red counter

You can count the longest sequences of black and red.
This is counted, look on the computer, I think everything will be clear in the prints there.
 
Ivan Vagin:
:-) too much profit, something is wrong

It was a run in VERY LUCKY!!! There are also a bunch of minuses.

MQL4 has a MathSrand random number counter initialisation function. The operation of the random number generator depends on this initial value.

The initial value is set there and ideally it should be random too. In real life I used from help. That is set number of milliseconds since start of winds, which is random at the moment of start of script.

MathSrand(GetTickCount());  
 
I'll have a look on the computer this weekend.
mmmmm profit can't be more than minlot*kol iterations-null, that's assuming we guessed the colour in all iterations except zeros
 
Ivan Vagin:
What do you know how to do?

I don't think the market is tougher than the sea.
No, first you have to learn how to ski, and you have to learn how to ride a tricycle. Then you can turn the market upside down.
 
Дмитрий:
similarly. What is the probability that a coin will fall 1942 times tails up in a row?
0.5^1942 for a "right coin"
 
Avals:
0.5^1942 for "the right coin"
I'm going to start saying that there are no right coins and that everyone here is a realist and absolutely perfect, rather than a theoretician.
 

What useful things can be modelled using Monte Carlo?

For example, how many trades are needed for a particular indicator (MO, FI, FS, etc.) to converge with sufficient accuracy to its true values. I.e. how many deals we need minimum for tests. And it turns out that it depends on the distribution of returns and on what indicator is being estimated. For example, let's trade with a fixed tp and sl. Then the minimum number of trades depends on tp/sl. In general it depends on the distribution of returns

 
Avals:

What useful things can be modelled using Monte Carlo?

For example, how many trades are needed for a particular indicator (MO, FI, FS, etc.) to converge with sufficient accuracy to its true values. I.e. how many deals we need minimum for tests. And it turns out that it depends on the distribution of returns and on what indicator is being estimated. For example, let's trade with a fixed tp and sl. Then the minimum number of trades depends on tp/sl. In general it depends on the distribution of returns

Oh, I can't even smell Monte Carlo in this trading robot, it made me fart in 20 minutes while I was testing it ))