Forum

ERROR in MQL NormalizeDouble()

void OnStart () { string x = " 9685.894999999 "; double y = StringToDouble (x); double norm_0 = NormalizeDouble (y, 0 ); double norm_1 = NormalizeDouble (y, 1 ); double norm_2 = NormalizeDouble (y, 2 ); double norm_3 = NormalizeDouble (y, 3 ); Print (norm_0 + " " + norm_1 + "

OnTradeTransaction missing magic numbers

#include <Trade\Trade.mqh> CTrade m_trade; COrderInfo m_order; CPositionInfo m_position; void OnStart () { m_trade.SetExpertMagicNumber( 1 ); m_trade.Buy( 0.01 , Symbol (), 0 , 0 , 0 , "script" ); } //+------------------------------------------------------------------+ This script places

Convert ISO 8601 time format to UNIX timestamp (epoch)

2020-05-28T08:29:20Z to datetime in mql5? Is this possible

ObjectGetValueByShift() returns 0 on Pitchfork

MQL4 I can get ObjectGetDouble (chart_ID,name,OBJPROP_PRICE1,0); for the 3 data points, but I can not get the current pitchfork values ( index 0 ) When I hover the mouse over the lines , I get the actual values, so how can we get the values by code? Can we get the line values in mql5

High CPU usage with no charts, marketwatch, toolbox

BUILD 2085 How I can reduce the CPU usage of MT5? What is the MT5 doing to use CPU when no charts or any other panels are open? i5 processor and MT5 is using 2.5% up to 5% while the platform is doing nothing

How to open a Chart Sub Window without using an indicator? MT5

I would like to open a subwindow via expert advisor but I do not see any Chart function that can open a subwindow without attaching an indicator(shell code with #property indicator_separate_window) I can not attach the #property indicator_separate_window to an expert advisor without the compiler

convert string to hex encoding Hexidecimal

// insert a string and convert to HEX keycode numbers string HEX = convert_String_HEX(hash); // pass in string a4985jnjw983njksd023H03jr83Jje93 string convert_String_HEX( string convert_this){ int length = StringLen (convert_this); string add; string symbol; for ( int i = 0 ; i< length;

Return/Withdrawal my paypal funds

Hi, I deposited funds via paypal $500+ for the freelance projects . Now I want to withdrawal the funds that were not needed to complete these projects and mql5 will not allow me to withdrawal funds. I do not want to be a seller ( verified member ) just to withdrawal my funds. Please return my