MQL4 and MetaTrader 4 - page 546

To post a new topic, please log in or register
Hello Please tell me how to calculate the value of high low open close previous candle? Maybe just a piece of code there ...
Will a expert advisor continue to make live trades if metatrader isnt running? For example if your computer is turned off.
please guide where to find working MT4 dll? facing below issue Could not load file or assembly 'MT4API.Shared, Version=3.1.0.0, Culture=neutral, PublicKeyToken=e10c4a4b31a26875' or one of its dependencies. The system cannot find the file specified.
hi coders, i need to give send e-mail alert for below code. I add Sendmail() function but when i compiled i got wrong parameters count. I'm new programmer so please help me xD look at this code what is wrong ;) //+------------------------------------------------------------------+...
Does stop level of a pair equals its spread? Or those are totally different things? Or maybe they usually close in values?
Dear guys I am new in MT4 coding. I made a EA base on a indicator. I am using icustom. But I am facing a problem. indicator give buy/sell signal on 5 TF of a candle  then my EA take immediately trade on indicator signal. problem is that when my trade close on same candle, EA trade again because...
Hello, I was thinking to solve the next problem: If last price=Bidprevious and actual price=Bidcurrent, I would like to know when Bidcurrent=Bidprevious+(n*pips): ex: Last price=1.4000      Current price=1.4005      And I would like to open trade only when the actual price will be 1.4010. I tought...
Hi, been using Meta Editor for over 5 years with no problems. Yesterday, suddenly it stopped producing ex4 files. I have the perfect code saved as .mq4 files but now if you press the "Compile" button it says it has completed ok, but there is no .ex4 file in the same folder as the source file. Until...
Hi all, I'm wondering if imports and includes are all done at the start of a file, or done when they are first needed?  I have a script that places an immediate buy or sell order with OrderSend, then uses OrderModifty to add stops, and finally after the dust as settled, uses the imported functions...
Dear All, I was wondering, has anyone tried to code an indicator in the subwindow displaying its value in pixel and 2 vertical line place on the same subwindow on a certain pixel point. e.g. If I used a CCI... Could you please direct me to the tread or a sample would be most helpful, because I have...
Hi guys, first post and new to this platform, I received some Ea's to upload, and can't doit, (using wineskin) I'm thinking its a MAC problem because other colleagues havnt had any trouble, they are using PC's i have the TECH guys looking into, but they have been quite for two days now. Any one else...
New article Three Aspects of Manual Trading Automation. Part 1: Trading is published:This article is the first in a series of articles on manual trading automation in the МetaТrader 4 trading platform. Each of the articles will be devoted to one of the following aspects: automation of manual trading...
Hey All!  Thanks for taking time out to help me :) I have written a tonne of code (A "tonne" in my terms - Been learning MQL4 through trial and error and experimenting.) and am currently stuck on writing one part...   I have trailing stops and moving average cross overs. I want the moving averages...
Hi I am new In Forex Market, I want to make a EA with my bolinger band. 
Hi Is it possible to change the TF of the chart using an EA? If so, can someone please guide me how do I go about. Thanks.
Tradeing
Hello, i have a EA with wich i can change the Stoploss when i move a horizontal line wich is draw on the chart, i have often the problem when i doppelclick the horizontal line then the Metatrader open a Ordermask for changing the stoploss, this feature is new in the Metatrader since some weeks, but...
  iFractals (1)
Hi,I know what fractals are I just dont know yet how to use the iFractals in mql4 and what are its parameters for,so please advice: MODE_UPPER1Upper line.MODE_LOWER2Lower line. Upper line and Lower Line represent the price of a fractal? (Horizontal lines of the price at those points?)
Hello, I'm a newbie in forum. I want to know that what is meant by subscription credits/month for a signal? Is it meant that I've to pay in USD or other form of currencies from my account for subscribing that signal? Please let me know in details. Thank you.
Please  Compiler does not see any new pasted code anymore. It reads no error even when i put wrong code. please i need help on this
Downloading MT4 freezes my PC.  I have attempted downloading MT4 independently and with various brokers, but each time the download reaches near the completion point and the cursor freezes. I then have to shut down my PC manually.  Pls help. Thanks
Hi, let's assume i know how to create pending orders, i am sending two pending orders, above and below a price level plus a distance, once the pending orders ar set, could you help me with the flow? i mean, no code needed, just the steps to manage this orders correctly, and coding by myself. When...
  ea review (1)
Hi guys I a newbie to mql4 and have studied topics on order management but it seems i have not grabbed it yet,so I have been trying to code this ea to open one order per currency pair but it has not been easy so i need  someone to help me and identify where i am getting it wrong or edit the ea to...
Hello,  I have a problem, If I add a new custom indicator or EA I don't get the .ex4 file when I open the MT4 platform, instead a .log text file (with nothing written inside) appears and the icona is grey on the platform (if it's an EA) This happened in the last few days, I've tried to Restore my pc...
I was looking through the code for an EA and saw this line: int digits=MarketInfo("EURUSD",MODE_DIGITS); I researched this and found out there is a predefined variable 'Digits' that already has this. So isnt this line of code pointless?
Can someone please explain the importance of this file type ,like what it does and how important it is. Thanks.
Hi All, I wanted to learn more about order selection and processing so I wrote this indicator. It displays the profit or loss of the past 24 hours (or whatever time period you like). Two areas for improvement are: it should run each time an order closes rather than when each bar closes. It should...
Hello, I am new to MT software. Is it possible to entry multiple orders (bucket order) simultaneously? Ex: Buy X Lots of symbol A with profit target & Stoploss AND sell short X lots of symbol A with profit target and stoploss. So that the "bucket order" hits the market at the same time? Thank...
Is there a way to restrict the dates loaded into a chart? For example, if I only want to use price data from 02 Jan 2010 to 30 Apr 2010, how would I do that?
So i designed a simple indicator which is more less a MACD applied on KAMA averages. Everything looks to work fine except for one thing: when it comes to draw the indicator its value is always a constant 1. I don't know if it is a problem with the drawing code or a problem with the value of the...
I want to have a sound signal when the last closed bar exceeds the average of the last x bars with y percent. With  'bar' I mean the absolute value of close - open (the body of a japanese candlestick)  Can someone make this to  work with the 2 variables x and y in MT4?