[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 388
![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
Gentlemen programmers how to make it so that only the points of max and min candles of the same colour were displayed?
Decompiled deleted
Can you tell me if the profit factor is counted correctly if the Hist-array contains the account history after each closed trade.
Hello Can you please advise how to split these signals into three different ones (i.e. the EA uses three buy signals, I want all three signals to be used by the EA separately and not in one pile) I tried it myself and got this
And it turned out that the EA opens deals only on RSI CCI and Stoh. What is wrong?
Welcome, because the old one is slowing down immensely.
Link to previous top : https://www.mql5.com/ru/forum/134688
Good day, Dear forum users!
Not so long ago, I could hardly imagine how to write an EA at all. And now, I decided to write my first EA, my head got a great idea. Let's get to the point!
One of the functions of my EA is to scroll through the history looking for the last closed order, but the problem is that this order must be necessarily BUy or Sell, but not a deleted pending order. I am stumped. Originally I had the following construction
OrderSelect(OrdersHistoryTotal()-1,SELECT_BY_POS,MODE_HISTORY);
The code is simple, it calculates the last order, but if the order is pending, then stupor(
I need code of the following form:
tra-la-la loop (reads from the end)
if I get a pending order {then 1 upwards},
if I get an order like BUY or SELL, voila {some function}
I hope for your help, the EA is almost completely written, my first creation, only this big joint is left, and the other small ones are nonsense.
Thanks in advance!!!Good day, Dear forum users!!!
Just recently, I had a hard time imagining how to write an EA. And now, I decided to write my first EA, and a bright idea just came to my mind. Let's get to the point!
One of the functions of my EA is to scroll through the history looking for the last closed order, but the problem is that this order must be necessarily BUy or Sell, but not a deleted pending order. I am stumped. Originally I had the following construction
OrderSelect(OrdersHistoryTotal()-1,SELECT_BY_POS,MODE_HISTORY);
The code is simple, it calculates the last order, but if the order is pending, then stupor(
I need code of the following form:
tra-la-la loop (reads from the end)
if I get a pending order {then 1 upwards},
If I get an order like BUY or SELL, voila {some function}
I hope for your help, the EA is almost completely written, my first creation, only this big bug is left, and the other small ones are nothing.
Thanks in advance!!!Spammy? If you do it again, get banned.
Spamming? If it happens again, you get banned.