Questions from Beginners MQL5 MT5 MetaTrader 5 - page 392
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
I'm not sure exactly, as I'm still a beginner myself. But it seems that there is a command Comment, which displays any information in the upper left corner of the EA chart. The volume of lots can be calculated in the cycle like this:
int totalOrders = OrdersTotal();
double totalLots = 0;
for(int i=0; i<totalOrders; i++)
if ( (OrderSelect(i, SELECT_BY_POS)) && (OrderMagicNumber() == myMagicNumber) )
totalLots += OrderLots();
Comment("totalLots=", totalLots);
This is a common code for all trades. For buy and sell, you create separate variables and make a switch using OrderType()
This code should be inserted at the end?
The functions are not user-defined. If you don't mind my asking, what language should you use to write the mt4 terminal software?
It depends on where in the EA you want to get information. If after running on the current tick/bar (another question is how your EA works), then at the end of OnTick (or start, or maybe whatever else you have there) and vice versa. It's difficult to give advice without the Expert Advisor's source code.
In general, you have to do some digging yourself, if such questions arise
Hi, can you tell me how to implement the opening of differently directed orders in a trading robot on the tops of candlesticks?
How do i know what i am doing here?
Can you please tell me why I opened 2 accounts (cent) at Alpari (demo and real) - demo is working, while the real is silent for the second day. I am not trying to open orders here.)
Ilan Ilan 1.6 Dynamic_e-Trall_CDD
Can someone tell me what the problem is?
My e-mail: reka.nik.nik@mail.ru
Maybe there will be an offer on the robot for Alpari. Consider ))))
How do i know what i am doing here?
Can you please tell me why I opened 2 accounts (cent) at Alpari (demo and real) - demo is working, while the real is silent for the second day. I am not going to open a single order.)
Ilan Ilan 1.6 Dynamic_e-Trall_CDD
Can someone tell me what the problem is?
My e-mail: reka.nik.nik@mail.ru
Maybe there will be an offer on the robot for Alpari. Consider ))))
Hello, is there something similar in MQL5 "Only "Useful functions from KimIV" ?
CopyTime - bar open time, but how to set bar close time ?