Codes

Colored Zerolag MACD for MetaTrader 5

It is the MQL5 version of ZeroLag MACD

Forum

using winhttp in metatrader4

hi, I have used this great article for mt5 to connect to a wss api. which is working fine. but the same code in mt4 does not work at the very first line long http_open_result = WinHttpOpen("mt4",WINHTTP_ACCESS_TYPE_DEFAULT_PROXY,NULL,NULL,/*reserved parameter*/0); I think sending that string is

is there method to read last candle data from mql4 hst file?

hi, I am writing an offline chart in which I get OHLC data from an API. I convert data to csv and convert the csv to MQLrates and then save it as hst. this is the first step which is working fine. now the issue is that sometimes because of network issues or latency or any unknow error there may be a

question about the maximum number for volume possible in metatrade4 hst file

hi, I faced an strange issue in my hst file builder app that when some pair has small price value so the volume goes more than "tick_volume>100,000,000,000" then metatrader4 gives "HistoryBase error" and destroys the candles data

Is it possible to read History Base errors in mql4?

hi , I wanted to know if it is possible to get History Base : X errors in pair "abcXYZ" I think metatrader checks history while rendering chart and generate error in a seperate process than EAs. its not some error code that can be accessed via GetLastError() in mql? I want to know if metatrader has

Question about updating Ask price on offline hst files

Hi, I wanted to know how should I include Ask price in offline hst files ( version 401 ) for mt4 ? I was testing the period converter script and when I open the generated offline timeframe history, It has the Ask/Bid lines and they are updating. but when I create a offline hst file for a

question about MQL4 multi histograms overlap.

Hi, Can we draw multiple historgrams in one subwindow of an indicator and then send one of them to back of the other one? how can i send one histogram to back of the other

how to secure indicators before publishing to market ?

Hi , I want to know if limiting an Indicator by checking license type illegal ? because on indicators people can download it on demo accounts and see the signals and then manually trade on their real accounts. for example I want to have a fully functional demo of my indicator only on EurUsd . and

question about getting the ask price on previous candles

Hi , Is there any way to get the value of Ask or Bid price of previous candles ? for example I want to see what was the max ask value on candle 10th from the last candles. I saw that Ask value in mt4 , or SymbolInfoDouble(_Symbol, SYMBOL_ASK ); is only referring to the value of latest ticks on last

mt5 history refresh and jump back problem

Hi , I have limited my MT5 to 5000 candles. now there are more candles available on the chart than this limit . and at random times the whole chart refreshes and counter bars goes back. please see the attached pic and tell me if there is a solution to this jump backs ? 2016.12.12 19:00:01.539

is there a bug in mt5 ObjectDelete?

hi , I am writing an indicator in MQL5, but whatever I write as string name ObejectDelete returns true ! even on an empty chart with no objects! int ObjCount = ObjectsTotal(ChartID(),/*0=main subwindow*/0,/*all objectTypes*/-1); bool deleteResult=ObjectDelete(ChartID(),"non existing object");