Integrating MetaTrader with a file structure

MQL5 脚本 积分

指定

I've modified the project so I repost the text with improved instructions:

The project is to integrate a strategy computing application with trading information.

Overview: I’ve have built a trading algorithm as a separate application and would need to be able to feed it information through files. As a second step I would like to receive orders from a file and execute those orders.

In more detail on 2 separate steps:

Step 1:
Targeting OANDA.com.
I would like to have 5 sec data on as all available currency pairs.

The data is to be put into a csv file in a specific directory (../datainput/ with the unix time as the name. For a specific time the filename would be: 149830433.csv

In the code example the format and the full data information could be seen (http://developer.oanda.com/rest-live/development-guide/)

Example:

Pair 1 name

Pair 2 name

Pair n name

Unix time

openBid

openAsk

highBid

highAsk

lowBid

lowAsk

closeBid

closeAsk

The team at oanda.com has a few pages with code examples:

http://developer.oanda.com/rest-live/console/

http://developer.oanda.com/rest-live/authentication/ https://github.com/oanda/py-api-streaming https://github.com/oanda/CAPISample




Step 2:
I would like to be able to read from a file (in a specified directory) and extract the information on the specific pairs and make orders to sell or buy.
The file will be named “order.csv” and should be renamed after being read/executed by your application to “unixtime-order.csv” (the current unix time minus order dot csv)

The instruction could not be long (buy) and short (sell) at the same time. A sanity data check for corrupted data (both buy and sell) should be done.

If the data in the order is 0 then nothing should be done at this time.

This data should be put into the MT4 or MT5 application and the application can then execute the order on the connected trader site. 

反馈

1
开发者 1
等级
(119)
项目
127
41%
仲裁
3
33% / 67%
逾期
0
空闲
2
开发者 2
等级
(54)
项目
64
42%
仲裁
5
20% / 60%
逾期
4
6%
空闲
3
开发者 3
等级
(1)
项目
16
81%
仲裁
1
100% / 0%
逾期
2
13%
空闲
4
开发者 4
等级
(13)
项目
34
76%
仲裁
1
100% / 0%
逾期
6
18%
空闲
5
开发者 5
等级
(130)
项目
210
40%
仲裁
90
20% / 43%
逾期
85
40%
空闲
6
开发者 6
等级
(1)
项目
1
0%
仲裁
1
0% / 100%
逾期
0
空闲
相似订单
I need to automate the supertrend indicator on ctrader with partial tp and sl. I already have a sort of script (without tp and sl) but when I go to compile it gives me an error. would you be able to make it work by adding the partial tp and sl

项目信息

预算
200 - 2000 USD
VAT (25%): 50 - 500 USD
总计: 250 - 2500 USD
开发人员
180 - 1800 USD
截止日期
 2  8 天