Expert Advisor

Hello,

I have an indicator that creates 2 CSV files and places it in a directory on my computer (H://signals2)
This could be another directory.

What i need is an expert advisor that could read the CSV files and places orders according to the files

The expert is an hedge expert. hedging to pairs so for each pair there is a file the files are located in the same
directory and have different names E.G FileTest is pair 1 and FileTest1 is pair 2
The files could have other names.

The expert does not use any indicators.

The trading logic en input of the expert advisor should be:

The expert should place it first 2 orders according to the files this could be sell/sell , buy/buy , sell/buy,
buy/sell.

extern CloseAll input…… ////// Close all open orders and stop trading //////
extern MoneyProfit input…. ////// open trade profit. if opentrade profit is x euro close all orders and stop trading /
This is the combined profit of pair 1 and 2 total open trade profit!

extern Pair1 input……… ///// This is pair 1 //// e.g EURUSD
extern FilesLocationPair1 input….. //// location/directory on my computer//// ( H://signals2)
extern FilesNamePair1 input……. ///// Name of file for pair 1 ///// FileTest
extern StartingLotsizePair1 input….. //// starting lotsize pair 1 e.g 4.7 lots
extern PipstepPair1 input… /// if pair 1 moves x number of pips up or down the expert should read the file again and place a new order in the direction the file sais at that moment. this is called the ballance lot function! this adding of the ballance lot could happen many times when the price moves x pips up or down.

extern BallanceLotPair1 input….. ///// Ballance lot eg. 0.74 lots
extern MagicNumberPair1 input…//// magicnumber pair 1

extern Pair2 input……… ///// This is pair 2 //// e.g EURCHF
extern FilesLocationPair2 input….. //// location/directory on my computer//// ( H://signals2)
extern FilesNamePair2 input……. ///// Name of file for pair 2 ///// FileTest1
extern StartingLotsizePair2 input….. //// starting lotsize pair 1 e.g 4.7 lots
extern PipstepPair2 input… /// if pair 2 moves x number of pips up or down the expert should read the file again and place a new order. this is called the ballance lot function! this can be maney times up or down

extern BallanceLotPair2 input….. ///// Ballance lot eg. 0.74 lots
extern MagicNumberPair2 input…//// magicnumber pair 2

extern AutoTradeFunction input…. /// This is the autotrade function true means the expert will trade nonstop
it will trade its cycles untill moneyprofit is reached than closes all orders and will wait x amount of seconds and will start a new trading cycle with the starting lotsize and so on.. if false the expert will only trade 1 cycle
(1 cycle is starting lotsizes from pair 1 en pair 2 and there if any ballance lots untill xxx money profit is reached)
and if money profit is reached the expert will close all open orders and stops trading..!!!!!!

extern WaitxSeconds input….///// This is the amount of seconds to wait with a new cycle if autotradefunction is true!

Leave a Reply

Your email address will not be published. Required fields are marked *