Forum

socket in mql5 why "not work" the example ?

Hi i try to understund the socket in mql5 i take a example in help , i run it and return me 2024.11 . 09 12 : 06 : 39.109 TCP_PASS_DATA (EURUSD,H1) Established connection to www.mql5.com : 80 2024.11 . 09 12 : 06 : 39.109 TCP_PASS_DATA (EURUSD,H1) GET request sent 2024.11 . 09 12 : 06

Mql5 socket for stream data terminal

Hi guys i have created this script #property copyright "Copyright 2000-2024, MetaQuotes Ltd." #property link " https://www.mql5.com " #property version "1.01" #property script_show_inputs input string Address = "127.0.0.1" ; input int Port = 8080 ; bool ExtTLS = false ; bool

label in mt5 exist a fix label ?

In MT4, there are two types of text that can be written on the chart: "text" and "text label." The "text" option remains automatically anchored to the point where it was inserted, while the "text label," if placed at a specific point on the chart, will move away from that point when you scroll the

Why Does MQL5 Behave Unexpectedly

I have a script in MQL5 derived from MQL4 with the appropriate libraries to make it 'work' on MQL5. It does work... but only when it feels like it. Here is the piece of code in MQL5 derived from MQL4. string _Apri_Primario( string oPen, double lott, int slipp, double STp, double TKp, string

why not open a sell ??

Hi guys i am in MT5 i try to open inthe same time one order in NZDJPY in buy and one order SELL in NZDUSD i have create an expert i place over NZDJPY and push the button , the button call some function and open only a BUY NZDJPY and not openNZDUSD this is my part of code string _Apri_Correlato(

why this indicator not plot nothing ?

Hi guys anyone can explain me why this indicator not plot nothing ? //+------------------------------------------------------------------+ //| CorrelationIndi.mq5 | //| Indicatore per calcolare la correlazione tra due strumenti

icustom i can open a indicator in new template ?

Hi guys with icustum i can open a indicator in new chart , but i ask is possible open also in new chart a expertadvisor? or i must use a template for do taht ? thanks

read File ini in mt5 why retrun cinese char?

Hi guys i try to read a file ini , my file ini have this name correlazioni.ini and is located inside of .....\MQL5\Files , inside of correlazioni.ini i have this structure [primario] symbl1=AUDUSD+ .... ... .. [correlato] symbl1=NZDUSD+ .... ... .. [soglia_minima] symbl1= 0.4 .... ... .. i try to

why icustom not run my personal indicator

Hi guys i have a function in expert for load a indicator , over chart my code void _OpenChart( string CroSS) { // Apri una nuova chart per il simbolo specificato con il timeframe desiderato long chartID = ChartOpen (CroSS, PERIOD_H1 ); if (chartID > 0 ) // Controlla se il grafico è stato

mql4 to mql5 how convert orderprofit?

Hi guys i have this part of code (is free and is not mine ) /** * Create the info-string for opened and closed order arrows. */ string formatOrderArrowInfo() { // order is already selected return ( StringConcatenate ( OrderComment(), " (" , OrderMagicNumber()