Forum

A question about what happens to an EA when the Trading Platform Closes and Restarts

I have an EA that opens its first position when an active trend line is crossed. This trend line is removed when the first position is filled so that this active trend line does not interfere with any other orders. Sometimes the platform closes down. This is rare but it happens. (I don't mean

Help with a recurring OrderClose function error

Hello, I was wondering if anyone can shed light on the following error: Would appreciate suggestions on how to fix it. There is plenty of margin available and the lot size I used is 0.03 Much appreciated, Thanks, B

stop loss order not being placed

Hello, I believe if I run an EA in an ecn account then market orders open in two stages: 1- The order is first opened and then only after that the 2- the stop-loss and take profit are placed. Most of the time this is not a problem but occassionally my stop loss order and take profit order are not

how to edit Symbol()

Hi, I am editing an old EA that was coded for so I can try learn to code. I assume Symbol() in the code below means the EA will work with any symbol. RefreshRates(); if (takeprofit != 0) ticket_buy =

help printing comments on chart

Hi, I am learning by taking parts of old EA's I have had programmed and piecing them together in new EA's. I have an EA that uses an account number and expiry date for validation. The code below works fine and the EA runs perfectly. bool working; input int

Inserting a block of code

Hi, I am trying to figure out how to insert a block of code into a forum comment. I know I'll kick myself when I hear the answer but appreciate any help:) Tried SRC in the forum text editor. Perhaps just doing it wrong. Thanks, Brian

beginner coder question re: SENDMAIL

Hi, I am a complete beginner playing around with code - trying to learn a few things. I tried to add this SENDMAIL code into an old EA that was coded for me. {SendMail("First Order Opened","First Order Opened Sucessfuly for: " + Symbol() + " at: " + TimeToStr(TimeCurrent(),TIME_DATE|TIME_MINUTES)

EA securuty

Hello, I have OLD EA's that were coded BEFORE Build 600. I have compiled these older EA's again in the new Build 600 I understand that decompiling EA's that have been compiled with Build 600 is much more difficult than older builds. My Question: Even though my EA's are old, if I compile them with

Registered a Virtual Server and paid with MT5 account but it has dissappeared on my MT4 Desktop terminal

Hello, Problem description I registered and paid for the new virtual server service offered through our MT5 account. It is running some EA's. When I log onto my desktop, MT4 is asking me to register a virtual server . In other words it thinks I don't have one but I already have one . The money for

Coding an EA to use at Oanda

Hello, I have some EA's that work fine at other brokers but not at Oanda. Oanda uses bridging software to communicate with MT4. If I get stopped out the EA is supposed to place a new order. What happens, is that after being stopped out on Oanda's platform, the EA loses track of my position and stops