Forum

question about return value commission

Hi , but if i not have history , how can recover a commission of instruments ? thanks

why not create line my code ?

Hi i have a and expert in ontick it call 2 function void OnTick () { CALC_DATA(); DrawLine4SnipeAll(); } void DrawLine4SnipeAll() { //Print("object_line4SniepAll: ", object_line4SniepAll); // Creazione della linea se non esiste if (g_dominance == "BUY" ) { if (

how calculate a price with ATR ?

Hi guys how calcolate a stop loss with ATR ? anyone have some example ? i find but not have a good example i tryed double atrSL = 2.0 ; SL = NormalizeDouble (OpenPrice - (ATR_Value * atrSL), Digits ()); but not return me a price correct

cpanel how remove resize? ..if possible ?

for moderator plase not remove my post , cpanel is part of standar library of mql5 ( https://www.mql5.com/en/docs/standardlibrary/controls/cpanel#sample) is possible remove the button resize in tool bar in up right _ (i attach foto for better details) thanks

checkbox in cpanel but how work?

Hi guys i notice some error but strange error if some one cangive me some suggest , because i want resolve it by my self because the code is too large i attach a video of defect in practical: When I click on the checkbox, at the variable level, the variable changes as if I had clicked it, but the

how to create dll for import in MT5 question

Hi guys i try to understund how work dll import in mt5 i use this tutorial https://www.mql5.com/en/blogs/post/753426 i create a dll in VS 2022 c++ , dll ,with this code BybitAPI.dll #pragma once #include "pch.h" #include <utility> #include <limits.h> #ifdef BYBITAPIDLL_EXPORTS #define

checkbox un cpanel how is logic ?

Hi guys i dnot know if i understund a good logic of a checkbox in cpanel i want know if when i flag cjeckbox it must return 1 and when defalg it must rerun zero ? because in my sript return always zero paneldialog.mqh //+------------------------------------------------------------------+ //|

how is possible create line under the gui ?

Hi guys, I created a GUI, and when I click a checkbox, it creates two lines on the chart. However, the lines also appear on top of the GUI. Would it be possible to make them appear below the GUI? I tried this, but it doesn't work. Thanks! // Traccia la linea superiore ObjectCreate ( 0

why my pending order not go at market but cancell it ?

Hi guys in my program i have part of code that send in chart a limit order i sett it but the strange effect is : when market price touch a limit price , the trade not go in execution and disappear from chart like cancel , why ? ?this this is my code void ExecuteOrders( double lotSize, double

Class function and other artifact .....

Hi guys, I have a script composed of two scripts: PanelDialog.mqh and TradeManager.mq5 . I'm trying to access the function CheckAndCancelOrders(); , which is inside a class that, in theory, should be fully public, so I should be able to access it. However, there's no way to make it work. Basically