Forum

error 4756 No price

Hi i have writen an expert which auto trade. it has been working just fine until today that I got This error: GBPCAD error 4756 comment: No prices retcode=10021 deal=0 order=0 Symbol: GBPCAD OP: 1.58795 sl: 1.4874 NO Price!!! I want to stress this fact that it happened just today and I cannot

Handling worst case senario may EA fail

I have plan to Handle scenarios may cause Expert malfunctioning. This is Error codes may return in the run time. However, I want to handle these errors and some may not even Return errors. I made this topic to be a start point for something big and every one who is willing can contribute. I will

CalendarValueHistoryByEvent Cannot get data

Hi, I want to Read History calendar but it cannot be loaded from 2017 to 2022 there is no data in this period I have tested it on several brokers same result. event_id=840030016 is for Nonfarm payrolls datetime date_from = D'2017.01.17'; datetime date_to = D'2022.01.01'; ulong event_id = 840030016;

"timer" not working in indicator when it is added to chart by an expert

I was developing an expert that should add an indicator to a fresh opened chart when some conditions are met it is not a complex thing just an indicator int OnInit ( void ) { ResetLastError (); if (! EventSetTimer ( 1 )) { int e = GetLastError (); Print ( _Symbol + "Cannot set

change indicator buffer's color from expert

I add several instance of an indicator by using this command: ChartIndicatorAdd ( 0 , 0 ,handle); from an expert. all of the buffer's color are default and kind of ugly and wage. I should change their color. how to access INDICATOR_COLOR_INDEX property of indicator's using their handles? please

login to account using cmd

Hi, I am trying to login to my account using cmd but it doesn't work can you help me where i am doing it wrong? cmd: R:\mt\terminal.exe /portable /config:R:\mt\common.ini also tried: R:\mt\terminal.exe /portable /config:R:\mt\common.ini /login:xxxx /password:xxxx there are two problems: 1- Non of

a copy trading solution without running server

Hi, I want to write a program that copy every trade I execute, on 2000 client accounts with specific modification on lot size based on their free margin. However, Clients don't want to keep their pc running or server requirement. 1-Does broker provides any API to do this? 3-what about multiterminal

reference an Array object to dereference old one.

Hi, I have an array object named "a" , after Appling a function to it, array object named "b" will be produced, for speed up proposes I want to assign b pointer to a and free up memory used by "a". can any body help please. void OnStart () { A a[]; A b[]; ArrayResize (a, 2 ); ArrayResize

how fix metaquotes id is null problem???

Hi , I am trying to send notifications to my android , I logged in to my account in the device but there is no MQID. why id is null and how can I fix it , I logged into mql5.com account and my Meta-trader demo account , and they are working ok, i have decent internet connection I received emails in

default value of Indicator

Hi , I am using an indicator (MQL4) which one of its input argument is mystery Enum! I could not figure out how to input its value I thinks it is something like this : enum ENUM_NAME{ item1 = 50 , item2 = 100 , . . . } as you can see items value are secret! second can I at list choose between items