Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 215

 

Exactly what we need, thank you very much.
 
teplovoz:

Exactly what we need, thank you very much.


The functions are taken from this thread
 

Thanks, I've bookmarked it.
 
digits:

Good afternoon.

My strategy takes into account the spread, the spread is defined by a function:

But because the spread is constant in the strategy tester, I need a random spread emulator. I want to emulate the changes of spread in the tester in the range of 2 to 3 points (4 digits) in 80% of cases and more than 3 points in 20% of cases. Any ideas how to implement this, or links where such an idea has been solved.

Try fiddling with MathRand().
 
Sepulca:

Regularities should certainly be caught and tracked. But applying martingale in case of failure is a shorter route to losing the deposit.

Here's a live example (one of many).In 13 years. Almost a thousand trades.(that's more than one trade a week) ONLY 1 STOP!!!!!!!!!!!!!!!!!!!!!!!!!!

http://clip2net.com/s/62KQCp

And in this link for the same period of time there are twice as many trades BETWEEN ONLY 1 STOP!!!!!!!!!!!!!!!!!!

http://clip2net.com/s/62Le9d

Are the conditions I found not statistical patterns?

Why would using martingale with the above statistics speed up a deposit loss?

Or maybe I do not understand something? Then explain me please.

Thanks for that.

 
solnce600:

Here's a live example (one of many).In 13 years. Almost a thousand trades.(that's more than one trade a week) ONLY 1 STOP!!!!!!!!!!!!!!!!!!!!!!!!!!

http://clip2net.com/s/62KQCp

And in this link for the same period of time there are twice as many trades BETWEEN ONLY 1 STOP!!!!!!!!!!!!!!!!!!

http://clip2net.com/s/62Le9d

Are the conditions I found not statistical patterns?

Why would using martingale with the above statistics speed up a deposit loss?

Or am I misunderstanding something? Then explain me please.

I have no idea what to do with them.


Get yourself a simple advisor on your TS... It will show you more than a thousand of our words. Better to go straight to the real, with money borrowed from a friend...
 

Made a custom indicator. The following is needed:

find the closest segment where the indicator rose or fell in relation to the previous value (in other cases it has an absolutely flat surface), that is to determine the trend.

In details: let's assume that the indicator has risen, then it remains flat and in a horizontal position. This is the point where we need to identify the given area.

Comparing the indicator with the shift yesterday and the day before yesterday will not do, because the entry signal may be much later than the trend detection.
 
solnce600:
That's exactly what I'm trying to do.... but I'm stuck with you know what.


Yeah, we know... logic. And you can't do it without it. Unfortunately. Small mistakes are easy to correct, but the head is logic. Especially since it turns out there is an antilogic. So you don't have either one or the other.
 
solnce600:
That's exactly what I'm trying to do.... but I'm stuck with you know what.

int start() {

if (conditions) {

// everything that should happen if conditions are met, write it here.

}

return(0); // exit start()

}

 
Vinin:

Yes we do ... logic. You can't do it without it! Unfortunately. Small mistakes are easy to correct, but the head is logic. Especially since it turns out there is an antilogic. So you have neither one nor the other.
Am I right to understand that logic is associated with the correct placement of brackets?
Reason: