We can offer extended version of Slave script for our Metatrader account copier "CopyToolPro".
This version includes 3 features: Time filter, Price Difference filter and Copy permissions.
extern string ___tmp4_____________ = " --- Filters ---";
extern bool TimeFilter.On = true;
extern string TimeFilter = "2010.01.01 0:00";
extern bool PriceDiffFilter.On = true;
extern string PriceDiffFilter = "[-1000, 1000]";
extern string Buy.Permissions = "[Open: yes] [Modify: yes] [Close: no]";
extern string Sell.Permissions = "[Open: yes] [Modify: yes] [Close: no]";
extern string BuyLimit.Permissions = "[Set: yes] [Modify: yes] [Delete: yes]";
extern string SellLimit.Permissions = "[Set: yes] [Modify: yes] [Delete: yes]";
extern string BuyStop.Permissions = "[Set: yes] [Modify: yes] [Delete: yes]";
extern string SellStop.Permissions = "[Set: yes] [Modify: yes] [Delete: yes]";
TimeFilter prevents copy of orders with OrderOpenTime older than TimeFilter value
Price Difference filter
For market Buy order price_diff calculated as slave ask price - master order_open_price.
For market Sell order price_diff calculated as master order_open_price - slave bid price.
For pending orders this filter is ignored.
Copy new order if price difference (or price_diff) is anywhere between -1000 and 1000 pips.
Copy new order if price_diff is negative and between -10 and -20 pips.
So we copy order only if the market goes in StopLoss direction and we are on some distance from open price.
[50, 30][-30, -50]
Copy new order if price_diff is positive between 50 and 30 pips or negative between -30 and -50 pips.
We copy order only if the market goes in TakeProfit direction or in StopLoss direction and
we are on some distance from open price.
PS. Please keep in mind that if Master and Slave are different brokers then there is some slippage
value between Master Bid and Slave Bid prices so on open of new order on master terminal
price_diff is not equal to 0.
This is the list of allowed commands for different types of ordersLearn more about Metatrader account copier "CopyToolPro"
Metatrader Account Copier CopyToolPro Demo version is available on trusted websites.
Demo version has two restrictions:
1) Copied BUY and SELLSTOP orders only
2) Copied orders with 1.0 lots volume onlyDownload Demo for FREE!