macpee
macpee
macpee
Added topic OnChartEvent() of a non current chart
How can I get the OnChartEvent()  of a non current chart
macpee
Added topic Selecting the latest placed order
I want to select the latest placed order (open or pending) from trade mode but I don't want to use loop or magic number to minimize running time. Does this line of code help? Assume no order was closed or modified. OrderSelect ( ( OrdersTotal () - 1
macpee
Added topic Issue with ObjectGetValueByShift()
void OnTick()   {    long ID = ChartFirst ();    while (ID != - 1 )      {        string Symb = ChartSymbol (ID);        string TF =
macpee
Added topic A simple question that demands a simple answer
When a chart ID is passed as a parameter with long type from Function 1 to Function 2, and the chart ID is used to call a ChartSymbol in Function 2, will the ChartSymbol be different from the ID's ChartSymbol in Function 1
macpee
Added topic Same instrument, different broker naming
Hi guys! We know that same instrument (particularly indices) can have different names based on different brokers (or platforms). I even tried using ChartSymbol() on different brokers and I realized that the same name on the market watch is still
macpee
Added topic How to convert my EA to an indicator?
What is the simplest way to convert an EA to an indicator
macpee
Added topic How to refresh rates of other Chart Windows
How can I refresh the rates of non-current chart windows. Any code that works like RefreshRates() for non-current charts e.g. RefreshRates (long ID)
macpee
Added topic How to draw OBJ_ARROW_UP with pixels as coordinates
Hi all, How can I ObjectCreate an OBJ_ARROW_UP as a button (with screen pixels as coordinates and not time-price as coordinates)? I don't want the arrow to scroll with the charts. Thanks
macpee
Added topic Menu item's event handling function?
Hi everyone! I want my EA to be able to recognize when the AutoTrade menu button had been clicked. Any Event handling function for menu items similar to the OnChartEvent() function for chart events? I am aware of the IsTradeAllowed() and
macpee
Added topic EA freezes at close of Parameter window
Hello everyone! My EA freezes annoyingly when I okays (pressing OK) the parameter window after making some changes. I suspect the reason to be that the EA was still busy with the last known income tick (which I want to refer to as control from now)
macpee
Added topic SendNotification() limit is 30 times?
Hello everyone! Why do I keep receiving not more that 30 notifications from my EA at a go, even when the loop is meant to send up to 60 notifications. Is there a limit to the number of notifications to send from buffer? Does same go for emails? Hope
macpee
Added topic Trouble with iTime(ChartSymbol(ID), ENUM_TIMEFRAMES(timeframe),0);
Hi guys, the command OtherBarZeroTime = iTime ( ChartSymbol (ID), ENUM_TIMEFRAMES (timeframe), 0 ); does not update at all when I loop around charts (30 charts). The time of the Zero bar is too early for non current bars. Sometimes it gives me the
macpee
Added topic Email error: Not enough space - How to solve?
When I send a somewhat large mail (about 700 characters) from MT4 to my mail, I received the not enough space error in the journal section. I configured the mail using: smtp.gmail.com:587. Is there any changes in the confirmation that would increase
macpee
Added topic TimeCurrent() of a non current chart
Hi guys. Since the TimeCurrent() function returns the time of the last known tick (of the current chart) in OnTick() handler, how can I return the time of the last known tick of a non-current chart? Of course, we all know that the ticks of different
macpee
Added topic Which command is used to call the computer name?
Hi guys, I know I can call the name of the Broker using AccountCompany(). But now I want to call the name of the host computer. Any command please
macpee
Added topic I am trying to understand how to use Custom Indicators
I seldom worked with indicators as far as EA is concerned? All I did was manually past indicators on charts when I need them even while working with EA. This can be tasking when back testing the EA being designed. What exactly is iCustom indicators
macpee
Added topic For those who would find it useful: Behold the universal "IsNewBarOnTimeframes()"
I think the below code for IsNewBarOnTimeframes() might be useful for anyone who wishes to monitor the end of a bar from any time frame whatsoever in MT4. Hence, I decided to share it for perusal. Happy using: bool IsNewBarOnTimeframe( int timeframe)
macpee
Added topic Why is my EA seeing only 30 open charts
I opened 42 charts and attached my EA on all of them. But only 30 of the EAs (same EA) are sending me email alert. What happens to the EA on the remaining 12 charts
macpee
Added topic Finding the Time complexity (Big "O") of programs meant to obtain the initial coefficients of a binomial expansion in MQL4.
The following three blocks of codes are meant to find the initial coefficients of the expansion of a binomial expression up to power 6. That is, since (x + y)^6 = x^6 + 6x^5y + 15x^4y^2 + 20x^3y^3 + 15x^2y^4 + 6xy^5 + y^6, the program is meant to
macpee
Added topic Check boxes in MQL4?
Hi guys. I am aware of how to code a boolean external variable to be used at the parameter window when running the EA. But I want to be able to code a check box to be used at the parameter window when running the EA since check boxes are handier. How