Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1939
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
The general metaquotes folder is the terminal folder, it contains the general terminal folders, there the terminal logs, data and the tester folder, it has its own logs and file folders. The mcl folder contains logs of EAs, scripts, indicators, windows, subwindows.
In this thread I want to begin to help those who really want to understand and learn programming in the new MQL4 and want to easily switch to MQL5 - the languages are very similar.
This blog will be a good place to discuss problems, algorithms of their solution and any other questions concerning MT programming one way or another.
I hope that other experienced members of our forum will join the discussion and the branch will be interesting to all.
Hello, no one can help me with the close order function, I am trying the following,
for (int i=1; i<=OrdersTotal(); i++)
{
if(OrderSelect(i-1,SELECT_BY_POS)==true)
{
if( Ask<= OrderOpenPrice())CloseBay();
}
}
When Ask is above the order Bay, everything is fine, as soon as Bid becomes above the order Bay the order is removed, and should be removed when Ask is below the open price. Please help me, I will be very grateful to you. Sincerely Alexander.
Hello, no one can help me with the close order function, I'm trying it this way,
Have you tried it this way?
Greetings. Can you please tell me how to make a trade api query for "BTCUSDT" to indicate the number of lots not in BTC but in USDT?
Hi all! A word of advice, please.
The idea is simple. To write an EA that will open a position and close the opposite one when breaking through one of the global channel borders. The channel is plotted by the indicator.
I have made a variant using Internet guides. This bot opens/closes positions in the strategy tester, but if you look at the chart, it does not meet my conditions at all. I have checked all the variables in the buffer and checked for errors. I did not get any results.
If someone can, please advise me what's wrong, what direction to dig. :3
I attached a file with variables from buffer, demonstration of indicator, its initial variables, my variant of Expert Advisor.
Hi all! Can you give me a hint, please?
Which way to go. :3
Dig in the direction of using the debugger
At least tell me which way to dig, as they say?
and what are you doing this kind of research for? Does it make practical sense? Or just for the sake of interest?