[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 284
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
int NumberOfPos_HISTORY
I tried it, it only counts the number of open current positions, it does not count history, it returns the value to zero when closing the order, maybe something else should be changed?
Here I have done it. I took another function of I.Kim and changed it a bit.
It works like clockwork:
The START function may be used for control.
And here is the function itself:
Hello all!!!
Brains steamed, steamed and turned off.....
Probably easier to figure out how to get the drunks to dig a trench or organize rubbish collection by bums than..........
In this thread, somewhere in the beginning, a problem similar to mine was raised. Read, read.... I still don't get it, and the conversation was about flags...
The idea is simple. SimpleMA, but it's a little bit modified, but it doesn't matter.
Wh Whose fi should be added IF an EA (to buy) would buy, an order would be triggered by TP and the next order would be put on condition of selling, ie, MACC crossing for selling?
Regardless of whether there is a further condition or not.
Perhaps the function https://www.mql5.com/ru/forum/107476/page21 can help.
Function isCloseLastPosByTake().
This function returns a flag to close the last position by Take.
Flag up - True - TakeProfit was triggered.
Flag lowered - False - position was closed due to another reason.
The function itself should be placed at the very end of the code. Add to the Sell condition:
On the EUR/USD pair.
Good people. I don't understand (see picture) why Momentum is not Momentum :).
Can you please explain why it is above zero?Momentum
Here's what I've done. I took another function from I. Kim and changed it a bit.
It works like clockwork:
The START function can be put in for control.
And here is the function itself:
Yes, it works! Thank you very much ! Thank you! >> Good luck to you!
Help!!! the expert is supposed to open trades at the opening of a new candle, but in addition to opening at the beginning of the candle, he opens "left" ones chaotically...
Plus, after assigning High and Low, it stopped buying... but only sells...
And it was hard to check OrderSend() carefully. One fails by mistake, the other fails.
Help!!! the expert is supposed to open trades at the opening of a new candle, but in addition to opening at the beginning of the candle, it also opens "left" ones chaotically...
Plus after assigning High and Low, stopped buying... only selling...
Thanks... sat for an hour... I couldn't figure out what was going on... Sometimes you need someone to open your eyes to mistakes...