femtotrader / mysql-trade-replicator

MySQL Trade Replicator enables you to copy trades between separate accounts, possibly located at different brokerages
BSD 2-Clause "Simplified" License
37 stars 23 forks source link

HOW to re adjust symbol #2

Open gudangpaperku opened 6 years ago

gudangpaperku commented 6 years ago

Hi femtotrader...

I try this replicator on MT4. It seems okey and great.

Wanna ask u.... How to re adjust the name of symbol. Due to there is different symbol for different broker.

For example on IC Market, Gold symbol is XAUUSD but... On FX Primus is XAUUSD-

For micro account. The symbol always add by micro. I.e. GBPUSDmicro, CHFJPYmicro and so on..

In which part we can modify the symbol? Thanks...

femtotrader commented 6 years ago

I don't use this code since many years. You should store instruments mapping in a hash map like http://www.lordy.co.nf/mql4/ in the slave code

Feel free to submit PR.