Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

Trade Copier - Open Source - Multiplatform - Transmitter Side - script for MetaTrader 5

The Coder
Published by:
TheCoder
Views:
16783
Rating:
(26)
Published:
2020.01.28 20:49
Updated:
2020.03.03 18:44
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Each individual trade request is written to "TradeRequest.csv" file in real time.

This file will become long with all trade information and will have its name updated automatically every day, using current date on the name, to keep files small enough to be handled.

1 Trade request file will be created on common folder each day and they will accumulate in the folder.


a Timer is used to write to common folder, other 2 files:

Open Positions, with a summary of all the currently open positions in the account

Open Orders, with a summary of all the unfilled orders currently active in the account


Code can be modified to use pipes, sockets, webrequests or other methods to transmit data over the internet.

When you write the receiver side, make sure to check the age of the signal, before taking it

Master account equity is also transmitted with each trade information, so the receiver can act on sizing the trades.


Code has been compiled, is fully operational and is super fast, as of today.

Have fun !

If you want to show gratitude, to a lot of time you will save on writing a transmitter yourself, you can share your receivers for this transmitter also. I will also appreciate.


-----
2020/Mar/3 - Code Updated to version 4 and now already has a Socket Client embedded to send Messages with all Trading information to a free message relay server on the cloud, where messages are relayed to free Receivers. With this implementation, the same Transmitter already sends signals to local and remote computer.

    CSetFileReader CSetFileReader

    Class to provide simple reading mechanism from MetaTrader set files.

    3D Moving Average 3D Moving Average

    The first really 3D indicator "Moving Average".

    Forex_Market_Hours_GMT_v4.0 Forex_Market_Hours_GMT_v4.0

    The good old MT4 indicator! Now for MetaTrader 5.

    Daylight changes (summer time) Daylight changes (summer time)

    Compute the daylight saving time changes (start/end of the summer time).