This mql5 code failed to open a long position on the AUDJPY even though the price went below the buy price. Any idea why and how to fix it? Thank you
Here is the terminal output:
TradeLog: Trade request failed. Error =...
A mql5 code needs to know when a new bar arrives. various methods use "TimeCurrent()" which can remain fixed "not changing" for a long time till a new tick is received by the termnal from the server.
How does that affect the ploting of a new...
I am trying to remove the news event flags using the code below, which fails to remove object with the "/" in their text. Is this a bug? And how would you delete all the news flags at the button of the chart? Thanks
can mql5 be used to login to a web site using username and password and download a page after the login page?
This mql5 code prints the oldest bar info first.
How can I get array indexed so that the current bar on the chart is in index 0 and thus prints out first?
CopyRates(_Symbol, PERIOD_D1, 0, 19,...
Using the code in this article https://www.mql5.com/en/articles/159 to detect the new bar arrival. In the file lib_cisnewbar.mqh
Is there a way to "using the code in the link" to detect the arrival of one day bar when the chart in...
This code uses uChar instead of int to save on memory. I get compiler warning "possible loss of data due to type convesion.
Since I am not expecting the number to go above 30, why use int and waste memory?
Any suggestion to turn off this...
Can someone please explain what this part of the code mean as found in the file panelDialog.mqh downloadable from the link below?
I mean this part of the constructor.
What is this convention called so I can...
"In the indicators directory (MQL5\Indicators), create a separate folder MyIndicators and a subfolder MyPanel. The process of creating folders will not be dealt with here as it is well described in...
What is the best way to delete all the news flags at the bottom of the chart.
This code works but I have to change the time frame few times so that the code runs in the Oninit function then it deletes few of the news flags at a each time. any...
This code needs to create a trend line and extend it to the right chart boarder regardless of the shift button action. it works but not an elegant solution, Any suggestions? Thanks
datetime start =...
In mal5, who can I make the bars vanish so that I have all the room to put buttons, text boxes and labels?
It needs to be in such a way so that dragging the chart or price does not change the appearance.
I remember in mt4, some settings with...
A chart has a label which was created by a custom indicator. When I drag this indicator on the chart which already has an EA running, a pop up asking to choose one or the other but not both.
The label text changes onTimer and the EA has it's own...
deals that are initiated on the desktop terminal. Can mql5 EA code close them? or they have to be opened by the EA?
I am thinking to loop over all deals and find which one is profitable and close it, here is a getting started effort...