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.
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...
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.
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?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
More
This function returns the opening price of the last open position
Exactly what we need, thank you very much.
Exactly what we need, thank you very much.
The functions are taken from this thread
functions taken from this thread
Thanks, I've bookmarked it.
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.
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.
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.
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.
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.
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()
}
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.