Download MetaTrader 5

MQL4 and MetaTrader 4 - page 363

To post a new topic, please log in or register
Thanks for your assistance. I placed orders to open short on the NZDUSD daily TF. The entry was just below the bar low and I wanted my code to close the orders if price invalidated the trade by moving above the bar high. It appeared that my code closed the orders before price moved above the bar...
Hi Guys, having issues with displaying the current spread (Bid - ask). It works fine for up to 4 decimals, but I need the spread to be displayed as 0.00005 for example. My code is quite simple (please see below) int start(){        double ask_price = MarketInfo(Symbol(), MODE_ASK);        double...
possible find gartley indicator for mt4?
Hi, I still have to say this that I am still new to Expert Adviser. I would like to Thanks for anyone in advance to read/reply my topic regarding with calling a custom indicator. I have to say first, I bought this indicator from some dude, it was a well written program that you need to install the...
Hi, does anybody knows a lib for Client-Server-Socket Communications with MetaTrader4 > Build 600. In former times I used a dll-lib, but after my update I only get the message "Cannot load ..." :-(
Hello,  I don't know why but I have in some trades (not all) the error 130 when I'm doing a backtest. The error 130 is invalid StopLoss but here is my OrderSend:   BuyTicket=OrderSend(Symbol(),OP_BUYSTOP,Units,BuyPrice,SlipPage,0,0, comment,MagicNumber,TimeCurrent()+expiration,clrYellow);...
Hi folks, I've made a signal indi which works (sort of!), currently for the Australian Opening Range, my code is referring to the Opening Range price of *yesterday*... Any ideas on how to get the code below to read the OR time/price *today*? // Opening Range combined with if...{        int...
Hi all Does anyone know how to get Metatrader 4 running successfully on a Synology NAS?
Hello, I suggest that we develop together a semi-automatic strategy EA. Developing each of his side your answer, then post it here. It is me who post the statements of EA to develop. First step EA to develop : The First step EA to develop is described by an attached drawing in PDF. If points are...
Fatbardh Pakashtica
Hello guys, I want to ask how to do to let the ea increase the lotsize every time when a new order gets open ? Greetings 
Is this how to print when a new order opens?   if(OrdersTotal() ++)Print(“a new Order has opened, OrdersTotal() is now = “+OrdersTotal() );     thanks pros  :)   
Hi everybody. I have a .net app that I use for to connect the mt4 and get data and others functions. When my pc sleep or suspend and after sometime resume again, the mt4 auto update the data in charts. Including a small sound play. The problem is that my app not detect it. I do it detect when my pc...
Hi there,  I am having a problem opening my MT4 platform. After having downloaded it about a year ago I uninstalled it but I have recently reinstalled it. I am using a Mac OS so I used Wine to install it. It all seemed ok but every time i try to open the terminal it comes up with a message saying...
Hey, im looking for a method  to read out bars, and how can i check them for bull or bear bar etc. I coudnt found something helpfull in the mql4 references, just    int Bars and iBarShift but i dont know how to check with these function  for single values.
I have a file abc.csv and there are multiple variable value pairs in there separated with a "#" character -  a#4 b#3 c#4.67 and so on. Here is the code : string listcsv="abc.csv"; string listarray[500]; filehandle=FileOpen(listcsv, FILE_BIN|FILE_READ|FILE_WRITE); int t=FileReadArray(filehandle,...
  MT4 & WIN7 (2)
after upgrading to Win7 From WIN XP    some indicators (.ex4) do not work. please advise
I'm working on an EA and I want it to be able to check if there are any closed orders on the current symbol within the past so many periods. The amount of periods would be a variable. Is this possible?
Is  there a  method to read an indicator's chart visualisation?  
It seems there will always be another hurdle. I thought I was ready to go live: paste my custom indicator into a live account, but CRASH! it produced nothing even approaching the results that it does in the demo account. (Same broker for both accounts). Sure enough, I go back and find data...
Hi Coders! Does anybody have a working NamedPipes Server-Client solution for MT4 B600+? I tried to rewrite to B600+ without success. Thank you in advance. Relative
My function prints the order position where i expect it to print the order ticket number. I followed the format from https://docs.mql4.com/trading/orderticket . It appears it should print the ticket number. Can one of my coding heros here please help me understand? # Property Strict is not in my EA...
Dear Traders,  Please Help me to Solve this Problem, My Buy/Sell Condition given bellow but its not working, Buy ConditioniMA(Symbol(),0,3,0,MODE_LWMA,PRICE_TYPICAL,i)> iMA(Symbol(),0,10,0,MODE_LWMA,PRICE_TYPICAL,i) && iMA(Symbol(),0,3,0,MODE_LWMA,PRICE_TYPICAL,i+1)< iMA(Symbol(),0,10,0,MODE_LWMA...
Hi community !   I am not an expert in the developement of an EA, this why i need some help from you.  I will appreciated any information or advice :)   I am currently using an EA that looks like an hedging method. In result i have in real time many opened trade...some one have TP and SL with the...
Dear all   I want to use Accelerator Oscillator as icustom function but I can't locate it.   Would anyone please help?    Thanks a lot!     wing 
HELLO,  i want help to get a content from url and put it in variable  by using wininet.dll  , InternetOpenW      i see alot of codes  on the fourm but all of it not work    please i need a simple working code  thanks :) 
Hi Everyone, I write an indicator that has Entry/TP/SL buffer and it show arrow/value on chart correctly. However, it doesn't feed trading EA correctly. the EA start many positions where there is no value on the Entry bufferfrom the indicator. Some how it still have Entry/SL/TP. I narrow down to 1...
I have few Expert advisors and custom indicators installed in my MT4 terminal (build 646). After dragging en expert or a custom indicator into the window the parameters window opens only with RESET button (without "OK", "Cancel" buttons) - see attached screen shot. However For regular indicators -...
HELLO,   i neade to open url to send data to the site from EA   by using wininet.dll  , InternetOpenW     i see alot of codes  on the fourm but all of it not work    please i need a simple working code    thanks :)     
I'm using Blackberry Z10 using Blackberry 10 OS. Now Blackberry 10 OS is supporting for all *.apk application. I installed mt4 for my Blackberry. Everything is good except the chart. I cannot move the chart by touch the screen. And when I want to change the chart to another currencty or timeframe,...