Forum

OrderSend / OrderClose use wrong prices!?

Hi, every time I test my code, the results look like this (see picture). The prices used by the OrderSend / OrderClose function are wrong. As you can see the expert does not Open or Close many Orders at the current market price but uses a price far above it. Does any of you know how to solve this

How can I connect MT4 with a broker?

I know that there must be an step by step explanation for this somewhere, but just can't find it. I want to try trading Bitcoins on a Demo account and I already got the server address, in this case: <removed by moderator> If someone could explain me where to put in this in or provide a link, that

OrderClose Error 4051 - Invalid Ticket

Hey Guys, my skills in MQL4 aren't that sophisticated so I have no idea why I get the Error 4051 all the time. It would be also very helpful I one could explain in more detail to me what an invalid ticket is, maybe I'll figure it out by my own then. Thanks in advance! This should the relevant part

Is it possible to blind out iMAs when backtesting in visual mode ?

Im using a lot of them in my EA, and my chart gets really confusing because of that. Thanks in advance

Draw a line between 2 dots (not a trendline)

Hey, I was wondering if its possible to draw a line between two dots which starts at coordinate 1 and ends at coordinate 2. The problem with trend lines is, that they always go further than the coordinates til infinity - thats not what I need. Is is possible to draw such a line with ObjectCreate()

Create multiple Objects with ObjectsCreate()

I want to draw a line to see what value my trailingstop has... Thats my code but there is only one dot when the EA is running, how can I program it that it creates many dots to make some kind of a line out of it... ObjectCreate ( "TR" , OBJ_ARROW , 0 , TimeCurrent (),TRStop); ObjectSet ( "TR"

Drawing a Line with an EA

Hey, is it possible to create lines (not the straight ones) with an EA (not an indicator)? I didn't find any useful parameters when using the ObjectCreate() ... I though it may be possible to draw just one dot everytime the EA is runned but you can't do that either with ObjectCreate. I want to use

Basic Exel

Hey, does anyone know if its possible to export and import data from MetaTrader to exel? I was was thinking about an EA that may give some data to exel while running and let exel do some calculations and import the results than back to the EA... I have no idea what exacly to do with this ability

Order Send Error 138 (Requote)

Hey, I am new to MQL (thats why my EA is so simple) and I'm getting this error but I have no idea why... The solution is probably very simple, but I just don't see it. I think the best would be just to post my EA code, thanks for your help! extern int MATimeframe = PERIOD_H4 ; extern int MAPeriod =