Hello - hope this is correct spot to ask.. if not please advise and I'll delete and repost where suggested.
My trading environment is MetaTrader 4 but I believe question is general enough to perhaps apply to other trading platforms where coding is used.
Summary/background of question is this:
I believe, due to the single threaded nature of MT4 regards trading operations, that there are those that get around this issue by running one ClientTerminal for each chart symbol/timeframe and apply the expert to it.
In this way each expert runs solo and will not be constrained by the one trading thread issue due to other competing experts also wanting to trade ASAP.
This however raises money management issues which I hope are set out clearly below.
Thanks for reading!
I need some understanding on how some of you who run many ClientTerminals - all same expert and some/all using same account# deal with eg, daily draw down limit, maximum money risk, ...
On single Client, one way to deal with each expert's 'slice of the money cake' if 2 or more on same ClientTerminal/account# could be:
dMyMoneySlice = dEquity*dRiskPcent/dCountOfTradingExperts; //GlobalVariable
This basic idea (or variant of), I am happy with...
?what about when we introduce say 2 ClientTerminals running same/one expert on same account#.
As I understand it, we have 2 experts which do not 'know' about each other. RiskPcent must be divided by 2 (in this example).
So how achieve in an n ClientTerminal environment? and additionally, experts could stop/restart at any time etc. NOTE:This is not an issue in the one ClientTerminal example, as each instance would obviously be updating their local copy of 'count' or whatever mechanism is chosen - as long as they are dynamically aware of the changed 'count'..
external var is static and unable to react to changing number of experts running so would appear to not offer solution.. and file sum store seems slow and potentially? R/W contentions and delays, may emerge..
My trading environment is MetaTrader 4 but I believe question is general enough to perhaps apply to other trading platforms where coding is used.
Summary/background of question is this:
I believe, due to the single threaded nature of MT4 regards trading operations, that there are those that get around this issue by running one ClientTerminal for each chart symbol/timeframe and apply the expert to it.
In this way each expert runs solo and will not be constrained by the one trading thread issue due to other competing experts also wanting to trade ASAP.
This however raises money management issues which I hope are set out clearly below.
Thanks for reading!
I need some understanding on how some of you who run many ClientTerminals - all same expert and some/all using same account# deal with eg, daily draw down limit, maximum money risk, ...
On single Client, one way to deal with each expert's 'slice of the money cake' if 2 or more on same ClientTerminal/account# could be:
dMyMoneySlice = dEquity*dRiskPcent/dCountOfTradingExperts; //GlobalVariable
This basic idea (or variant of), I am happy with...
?what about when we introduce say 2 ClientTerminals running same/one expert on same account#.
As I understand it, we have 2 experts which do not 'know' about each other. RiskPcent must be divided by 2 (in this example).
So how achieve in an n ClientTerminal environment? and additionally, experts could stop/restart at any time etc. NOTE:This is not an issue in the one ClientTerminal example, as each instance would obviously be updating their local copy of 'count' or whatever mechanism is chosen - as long as they are dynamically aware of the changed 'count'..
external var is static and unable to react to changing number of experts running so would appear to not offer solution.. and file sum store seems slow and potentially? R/W contentions and delays, may emerge..