Forum

Unresolved Issue with PointValue Calculations for Specific Broker on Indices Trades

I'm aware that the subject of point value, delta lot value, and related calculations has been extensively discussed on this forum. Until recently, none of my customers had encountered issues with point value calculations when using my products. However, I've encountered a unique problem for a client

Handling Dynamic GUI Layouts When Saving and Loading Controls in CAppDialog

Hello everyone, I'm currently developing a GUI using the CAppDialog class in MQL4. My application has the capability to save and load its state, including all GUI controls, to and from a binary file. I use the Save method provided by CAppDialog for this. The issue I'm facing is related to dynamic

passing parameters to other files

Good evening. I'm working on a project with a lot of files. As I didn't know exactly what the best was is to pass something to other files I tought I ask the communtity how they do it. What ist the most beautiful/common way to solve this: So in this example there is a Main file in wich 3 other files

RadioGroup with RadioButtons (Pointers)

I'd like to create a RadioGroup with some RadioButtons: With the "AddItem" function i can add radiobuttons into the RadioGroup. I use the mql4 controls classes. I know there is already an existing Radiogroup file but It's not for my use and I need to create my own. So, if I udnerstand right, I need

Const before function

Good morning Can someone explain me what the const before a function does? bool ReadOnly( void ) const { return (m_read_only); } //with const bool ReadOnly( void ) { return (m_read_only); } //without const does it make a difference if the function returns a fucntion or

Pine to mql4 Question (WMA of BarIndex)

"Good evening I have to convert a tradingview indicator to MQL4 for a friend. I have to admitt I have not much experience in pine script, but till now it was enough to creat some indicators or convert some to MQL. But the current one has some parts I don't understand completly. Pine Code: x =

Return Object Pointer

Hello Community. I'm creating a new class for working with orders. I haven't worked a lot with pointers. There is a Class "COrder", it contains all the information about the order. class COrder { public : int ticket; int type; int magic; double lots; double

ERROR 4024 MQL BUG

Hello my dear coding and trader friends. So, recently I came across a new funny problem^^ Function of the code: Open New Chart --> Apply Template --> Take Screenshot --> Close Chart. But in 30% an error occures. ERROR 4024 . The Chart Opens, but It doesnt return the Chart ID. I've programmed a

MT4 to Telegramm Message \n doesn't work

Good evening everyone I have a short question. I'd like to send messages from an EA to my telegram. That works but I can't make a new line in the message. with the \n Does anyone know what the problem could be? message = StringFormat ( "%s %s \n Entry: %s" , orderType

Indicator bugs all over the Chart

Hello Community I got a little problem with a Indicator I made. Sometimes if i switch the timeframe, The Indicator is drawn randomly all over the chart. Indicator normally: Indicator Buggy: Does someone know where the problem is? Here are some parts of the code: //Indicator drawing and buffers