[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 298
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
Thank you and good luck to you artmedia70
Hello.
How can I display on the chart the inscription on the current instrument Profit/loss of open orders.
It is difficult to check in the Expert Advisor whether it has opened positions or not (terminal on/off) and to pick up the last lot volume before closing the terminal.
Thank you.
Hello, no one in the know?
If I've made any past trades, then use the orderprofit function and then summarise the entire history of the trades.
I wonder if anyone has any answers to my question.
There is one flaw in that code. Here, taken out of context:
The whole point is that the expression
Therefore, the lot value will be rounded to one decimal place.
Read on, it may help.
I certainly hope so. Thank you. I will read through the above thread to reinforce this point. Don't want to leave any gaps.
Hello, is there anyone knowledgeable?
Well, as I understand it all is elementary. All you need is elementary knowledge.
1. You do an overshoot of the orders.
2. Check the order is open, i.e. the order closing time relative to zero.
3. If the order is open, display its data needed, profit, type, etc..
If I've made any past trades, then use the orderprofit function and then sum up all the history of the trades.
I wonder if anyone has answers to my question.
Copy the entire code into your Expert Advisor
like this
or
or use functions
to look for an object. There is no other way.No, it works, but the value comes out absolutely from the ceiling
Try to remove indicator settings in the EA code. Then the settings will be taken from the code prescribed in the indicator.
I also got left values, I removed the settings from the code and it's OK.