Place trade from a file

 

Hi everyone, I want to make an EA that reads a file and places trades in MT4 based on that file.

The file will probably be a CSV with structure like: Buy,symbol,stop loss, tp1,tp2,tp3 also i would like it to move stop loss to entry when i reach tp2.

The file will probably be altered say every 5 min so should i reopen it every time? or is there any way to read it when a new line is appended.

I am completely new to this so any example of a code or tips or hints everything is welcome.

Thnak you :)

 
Jkey: I want …
Examples are in the documentation.

You have only four choices:

  1. Search for it,
  2. Beg at
  3. learn to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
  4. or pay (Freelance) someone to code it.
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help
          urgent help.