Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 215
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.