Forum

Trades are double when I put my EA at work?

Hello there my EA seems to put double the trades when I put it on a DEMO account . (they are entry orders) Does anyone has an idea what could it be? Thank you Luis

Dont allow to change timeframe while EA is attached to a chart.

I have an EA that only works on H1 timeframe, is there a way to: - Automatically change timeframe to H1 when EA is attached succesfully to a chart? - Disable the abiility to change timeframe while the EA is attached to a chart. Thank you very much

Hype giant logs??

what is this?? I have logs in metatrader that are gygabytes of data!! http://screencast.com/t/NH2DaG7rM8R

Value of the spread

Hello there. Im trying to create a function that calculates the value in the deposit currency of the spread of each trade open and this function should be calculated differently in each broker, because they have different characteristics. So I downloaded a blank mt4 terminal from www.metaquotes.com

Why mql4 is reading this backwards? File operations

Im kinda shock, maybe anyone of you could help me. I dont understand why this returns me the columns changed order. I have an CSV with 2columms full of data. And this returns me A2,A1; B2;B1; etc.... why?? int handle= FileOpen (Archivo_Historical(), FILE_READ | FILE_CSV ); for ( int i= 0

Logs in VPS while sending orders from home

Hello I have seen that the trading log of my VPS doesnt take in account the orders I send from HOME. MEaning I have 2 mt4 one in VPS following an EA and one at home for real trading. I send manual trading and is executed correctly but the Log in the VPS seems to not get that information. Is there

I think my code is written badly

This is the part of my coding in my EAs that is giving me some headaches. This will check if there is free margin to open the position, but seems is failing in some brokers that are using Stopoutmode==1. This is the only part of the coding that I didnt make it, seems that checking free margin was

Im reading a double from an excel is returning an int?

Hello there, Im having a bit of trouble here: double Read_File(int i) { int handle=FileOpen(Archivo_Historical(), FILE_READ|FILE_CSV ); while(Time[i]!=FileReadString(handle) && !FileIsEnding(handle)) FileReadString(handle); int valor=StrToDouble(FileReadString(handle));

Good programming for sending Orders

Hello there. I have a new EA that lauch multiple orders at the same time. Market Orders and Entry orders. What do you think I will need to code for the EA work "perfect". At the moment I just launch the orders. Should I use Sleep() , RefreshRates() or others to confirm that the order will be

Is my EA safe?

Hello there. Im trying to sell one of my EAs. Im thinking in giving a client a DEMO of the EA, capping its use with some function like: "if(TimeYear(Time[1])<2016)". Is is my EA safe with new version of metatrader safe? I heard that version 600+ is very difficult to decompile. Thank you