Forum

MQL4 Expert Advisor Read Text from Terminal Journal

Does anyone know if it's possible to program my EA to pull in data from the terminal journal (not the experts log)? I want to do this live if possible, so check the text in the journal every tick , minute or ideally when a new journal entry appears and scan the text for certain values. I'm not sure

Share Data between Terminals

Is it possible to share data between MT4 terminals on the same VPS? Is there a location that both terminals could access? For example, I have Terminal 1 using Broker A, and Terminal 2 using Broker B. Broker B has a market that is not available with Broker A. So I want to send the price data for this

Auto Saving Chart Templates

Is it possible for an EA/script to save ALL chart templates that are open in the terminal? I know the chart operations are available but how do I search for the values of the chart ID's that are open? If I can pull a list of the open chart ID's can I use ChartSaveTemplate to reference each

iRSIOnArray Issues

Hi All, Could someone help me with how to use the iRSIOnArray function . For example, why does this not work? double RSI = iRSIOnArray ( Close , 0 ,10, 0 ); I'm just playing around with it to try and understand how it works. When I run this it returns zero. I assumed the Close array would be fine to

Dealing with OrderSend Error 136 Off Quotes

Hi All, Lately my EA's have been running into the OrderSend error 136 a lot of the time. So I have placed my OrderSend code into a loop that repeatedly retries to send the order up to a maximum of X times until the order is filled. Problem is sometimes even after 10-15 attempts I still get the same

Issue with receiving no new chart ticks for some symbols

Hi All, My terminal has decided it doesn't want to receive new chart ticks or update the bid/ask prices in marketwatch for a few symbols. Yet it is connected to broker and the data for all other symbols is coming through fine. I also have another terminal running alongside it both with the same

Order Close Function Issues

I have written the function below to close my orders. I want to close only the orders for this symbol and magic number, and only either buy or sell. I've placed the order close within a loop that checks if orders are still open on this currency pair and continues to attempt the close until

Calculating Correlation

Hi All, I'm trying to calculate the correlation coefficient between two arrays. I basically want to replicate the Excel "CORREL" function , where I input the two arrays and the function outputs the correlation value. Does anyone have working code to do this and be willing to share it? The best I

Query Order History within Indicator in Strategy Tester

I'm writing an indicator that uses OrdersHistoryTotal() in the calculation. I'd like to test it in strategy tester but it's not working. I've attached the indicator to the chart window I am running the test on and the Print statement in the code below returns zero every time. The function works fine

Notifications or Email Alerts for replies to Forum Topics

Hi, Is it possible to get push notifications or email alerts when someone has replied to one of my forum topics? Does anyone know how to turn this on? Thanks