Forum

virtual host connection problem

Hi I have rented two VPS one is 45273 and the other is 35817. They both connect to FXCM-REAL03. But I can't synchronize my EAs these days.And I get Send request failed [12002] Any help how to solve the problem please? Thanks

how to set indicator buffer invisible in the data window?

Hi : I am writing an indicator with 50 buffers. I don't want them all to be appear in the data window, how can I hide some of them please? Thanks

How to pass array of object as a reference parameter

Hi all: I create a class and want to pass an array of that class as a reference parameter, however, some error shows: "Structure have objects and cannot be copied". The error occurs at the last line of the function " TradeDataBase". In essence, I want to create a class to store the history order

OnChartEvent can't catch CHARTEVENT_OBJECT_CREATE

Hi all: I write a simple code to catch the new created object on the chart. void OnChartEvent ( const int id, const long &lparam, const double &dparam, const string &sparam) { Print ( "id = " ,id ); //--- the object has been deleted if

dll questions

Hi all: I am quite confused about writing a indicator using C++ dll. 1. It seems that the DLL import must have a parameter, MT4 doesn't accept empty paramter function calls? 2. when I try to pass all the parameters in OnCalculate(...) to the dll function, it never works. Eventually, I split all the

Buffer variable other than indicators?

Hi : It is possible to define a variable that contains a value for every bar and this variable is not set as an indicator. In another word, this is a kind of dynamic array and I want to store some data other than the indicator values. Thanks

Indicator arrows messy

Hi I met a problem when writing indicators. The indicator works fine in normal conditions but if there are some new data loading, the indicator markers and zigzags becomes messy like show in the following image. https://charts.mql5.com/8/221/usdchf-m15-forex-capital-markets.png Any help please

Is it possible to color the candles in program?

Hi: Is it possible to color the candles in program? for example, if the candle close is above 20 Moving Average, I want to color the filled bull bar in blue and bear bar in a blank blue bar. If the price is above 20 MA, color it into a filled red bar for a bear bar and blank red bar for a bull bar

I can't open the mail in the mailbox

Hi all: I have a technical problem with the MT4 platform. I have a FOREX.COM real account and want to look for the investor's password. However, since I opened a demo account, the old mails were flushed out. However, I can find the mail file from the user's directory but it's coded in binary and I

Extract the historical trades on first EA running?

Hi All: I have two questions: 1. When I apply an EA to a chart to run in real time, is it possible to extract the historical test trading result on the first run please? For example, I want to have a logic that detect the previous trading winning percent, if the winning rate is lower than 30%, I