Codes

Tick Chart in MQL4 for MetaTrader 4

This will create an offline chart for the ticks

Copy Tick and History From MT4 to MT5 real time. for MetaTrader 5

You can copy the ticks and history from the MetaTrader 4 to MetaTrader 5

Trade Statistics Report Real Time for MetaTrader 5

This will display the Account Trading Report for real trade

stdlib.mq5 for MetaTrader 5

converted stdlib library for MQL5 from the MQL4

Forum

CopyTicksRange () does not work correctly in MQL5. a

I'm trying to get the marks for different times. I've been using the CopyTicksRange () function. It used to work fine. But it suddenly stopped working. I am very disappointed with this behavior of the function. Please explain me why this is happening? What is the best way to get ticks using Time

How to download Metatrader 4?

Whenever I am trying to download the MT4 from the website, it is giving me the MT5 download exe. How I can I get the MT 4 exe that I can work on it. Please suggest

Examples\Fractals usage in EA

I am trying to make my EA based on the Fractals sample form the Indicator-->Examples folder. Here is the code that I tried: #include<Trade\Trade.mqh> CTrade trade; void OnTick () { int test = iCustom ( _Symbol , _Period , "Examples\\Fractals" ); MqlRates rates_price[]; if (rates_price.high ==

How to increase and reduce the size of text when chart zoom in and out?

I am writing a text using the OBJ_TEXT . But when I zoom in, the text get overlap and zoom out then the text moves out. Please suggest me what can do to reduce and increase the size of the text that I have placed using the OBJ_TEXT

How to calculate the width of the text in OBJ_TEXT?

I have draw an object using OBJ_TEXT . I have tried using the ObjectGetInteger(0, "name", OBJPROP_XSIZE); so that I will get the length of the text that is set using the OBJ_TEXT. But I get 0 in return. I have read the documentation related to the OBJPROP_XSIZE, and OBJ_TEXT is not mentioned in the

How I do know the modelling of the Tester using MQL5 program?

I am trying to check if the modelling is every real tick based or not. Sometimes, I have tested the EA of Every Tick modelling. But that is not reliable method. Hence, I want to stop testing if the modelling selected is not Every real tick based. How can I identify it inside my program? Say anything

Facing issues while trying to copy and paste the DLL in MT4 1260.

I have created a dll. But it is not getting copied in the MQL4-->Libraries. This is what I am getting: This error is occurring when I am Metatrader4 terminal is open. When close it, it let me copy. I had attached an expert advisor. That EA I have removed before copying the Dll file. But still I do

How to get the previous Stop Loss of the opened position?

I have opened a position with no stop loss . Then using the trailing I am setting the Stop Loss of the Positions. But the trailing sets multiple stop loss as the condition is met. I want to know whether there is possibility to check the previous stop loss of the opened position or not? If yes then

Share an idea and I will make a free indicator for you

Hello traders, I am opening this thread to know the ideas of making different indicators based on your ideas. I will code that for free and place it here for you. I would love to know your ideas. Please do share. I will discuss it and if effective then will code it down at once in MQL5 probably

Why I cannot use template as resource?

I have a script which is giving me the following error: unknown resource type 'C:\Users\CLAIRE\AppData\Roaming\MetaQuotes\Terminal\F5EC6124DFC414901C9F2B0C5815057F\MQL5\Scripts\test.tpl' Templating.mq5 9 1 The script is: #property version "1.00" #resource "test.tpl"