Topic: Connection ID - how to configure multiple sessions for FST

Hi Gurus,

because Youtube Tutorial about "How to configure multiple sessions of FST" is restricted in Germany (Music Owner Rights) I would like to ask You about small tips.



How may I run multiple sessions of Forex Strategy Builder ?


On my PC I have installed two MT4 in separate folders. Each installation is for different Live account.

c:\Program files\MT4-1
c:\Program files\MT4-2

For each meta trader I would like to run 3 different strategies:1) EurUsd 5min 2) GbpUsd 5min 3) EurUsd 1h

How to connect each strategy with dedicated chart in Meta Trader ?


Would be great if somebody could help me.



Dlugi

Re: Connection ID - how to configure multiple sessions for FST

hi Dlugi.
Did you manage to connent single FST with MT4 ?
If not see here: http://forexsb.com/wiki/fst/connection

Run multiple is same thing:
1. Open 3 charts, put expert on each, but you must assign unique ConnectionID & MagicNumber on each.
2. Than you open 3 FST, and you need do configure each with specific ConnectionID (it can be enabled from options - Allow multiple..) , you provide in point 1

Thats all.

Re: Connection ID - how to configure multiple sessions for FST

Hi acerguest

it seems that everything is ok.

You wrote:

1. Open 3 charts, put expert on each, but you must assign unique ConnectionID & MagicNumber on each.

MagicNumber ? What do You mean ? "Expert_Magic" variable ?

What for is this ?


Thanks for support big_smile

Re: Connection ID - how to configure multiple sessions for FST

You need to change Expert_Magic only if you trade different strategies on same symbol. Meta Trader Experts use Expert_Magic for separating its deals from other experts. This number is something like ID number for the Expert Advisor.
Forex Strategy Trader (the program) doesn't use the Expert_Magic number. It is known and used only from MT4-FST Expert.
FST uses Connection_ID number to separate information feeds coming from the different running experts. That's why we have to set different Connection_ID number for each expert. In the other case, the information coming from different Experts with same ID numbers will be mixed and FST trades will be wrong.

Re: Connection ID - how to configure multiple sessions for FST

Popov wrote:

You need to change Expert_Magic only if you trade different strategies on same symbol. Meta Trader Experts use Expert_Magic for separating its deals from other experts. This number is something like ID number for the Expert Advisor.
Forex Strategy Trader (the program) doesn't use the Expert_Magic number. It is known and used only from MT4-FST Expert.
FST uses Connection_ID number to separate information feeds coming from the different running experts. That's why we have to set different Connection_ID number for each expert. In the other case, the information coming from different Experts with same ID numbers will be mixed and FST trades will be wrong.


Thanks a lot for Your help smile

Re: Connection ID - how to configure multiple sessions for FST

Huh?  I thought [and have been doing so for years] in the MT4-FST_Expert settings, we were to make the ID number and MagicNumber the same.  That is if the FST ID number for the MT4-FST_Expert attached to a EURUSD 15m chart was 55, the MagicNumber was to made 55 also.  Then, if the FST ID number for the MT4-FST_Expert attached to a GBPUSD 15m chart on the same MT4 demo was 44, I understood that the MagicNumber setting for that chart would be 44.  Now aren't you saying that its MagicNumber should be 55, rather than 44,  also??? Confused.

Re: Connection ID - how to configure multiple sessions for FST

That is if the FST ID number for the MT4-FST_Expert attached to a EURUSD 15m chart was 55, the MagicNumber was to made 55 also.

Not necessary. Leave Magic as it is by default.

Then, if the FST ID number for the MT4-FST_Expert attached to a GBPUSD 15m chart on the same MT4 demo was 44, I understood that the MagicNumber setting for that chart would be 44.

Also it is not necessary.

Now aren't you saying that its MagicNumber should be 55, rather than 44,  also??? Confused.

Just leave it default. You don't need to change it in most of the cases.

Expert_Magic must be changed ONLY if you run strategies on same symbol.
Examples: 5 strategies on: EURUSD M15, USDJPY H1, USDCHF 1H,  EURUSD H1, GBPUSD H1.
Here you HAVE TO change the Expert_Magic for EURUSD M15 only, in order to separate it from  EURUSD H1. For all other strategies you can leave the default Expert_Magic. (or to change the magic number for  EURUSD H1)

Setting different magic for each strategy running on different symbols is not wrong but is useless.

FST Expert separates deals by the symbol. Expert_Magic serves to separate deals if more than one strategy runs on same symbol.

If you have two strategies on EURUSD H1 and USDCHF H1, FST Expert knows that positions opened by the first strategy are for EURUSD and the second strategy opened positions for USDCHF. So here we do not need to change the magic.
But if we have strategies running on EURUSD H1 and EURUSD H4. FST cannot separate the positions of the strategies only by their symbol. Here comes the Expert_Magic. We have to set different magic for each strategy since the symbols are equal.

For Connection_ID is clear. Each expert has unique ID number.

Re: Connection ID - how to configure multiple sessions for FST

Probably you are wandering why do not make the Expert_Magic internally equal to the Connection_ID and to stop worrying about it.

The reason is that we can trade several strategies on same symbol (different charts) with same Expert_Magic in order to achieve more complex logic.
We can have several strategies that make entries at different levels during the bar and other strategies that hes different exit levels.

Re: Connection ID - how to configure multiple sessions for FST

thanks master Popov for that explanation.  by the way, it was fixed for months, but for some reason I seem to be having that multiple-entry-during-the-same-bar problem again, even when I include the enter-once-per-bar command [on demo accounts].  FST v1.4.10.0 [FSB 2.72.0.0}

10

Re: Connection ID - how to configure multiple sessions for FST

2012.08.09 03:54:39    '1282107': request in process
2012.08.09 03:54:39    '1282107': request was accepted by server
2012.08.09 03:54:39    '1282107': modify order #19678057 buy 0.01 EURUSD at 1.23423 sl: 0.00000 tp: 1.23977 -> sl: 0.00000 tp: 1.23978
2012.08.09 03:54:39    '1282107': order was opened : #19678057 buy 0.01 EURUSD at 1.23423 sl: 0.00000 tp: 1.23977
2012.08.09 03:54:39    '1282107': request in process
2012.08.09 03:54:39    '1282107': request was accepted by server
2012.08.09 03:54:39    '1282107': instant order buy 0.01 EURUSD at 1.23423 sl: 0.00000 tp: 1.23977
2012.08.09 03:54:38    '1282107': modify order #19673999 buy 0.01 EURUSD at 1.23648 sl: 0.00000 tp: 1.23978 -> sl: 0.00000 tp: 1.23978
2012.08.09 03:54:38    '1282107': modify order #19673999 buy 0.01 EURUSD at 1.23648 sl: 0.00000 tp: 1.23978 -> sl: 0.00000 tp: 1.23978
2012.08.09 03:54:38    '1282107': order #19663548 buy 0.01 EURUSD at 1.23964 was modified -> sl: 0.00000 tp: 1.23978
2012.08.09 03:54:38    '1282107': request in process
2012.08.09 03:54:38    '1282107': request was accepted by server
2012.08.09 03:54:37    '1282107': modify order #19663548 buy 0.01 EURUSD at 1.23964 sl: 0.00000 tp: 1.23979 -> sl: 0.00000 tp: 1.23978
2012.08.09 03:54:37    '1282107': modify order #19673999 buy 0.01 EURUSD at 1.23648 sl: 0.00000 tp: 1.23979 -> sl: 0.00000 tp: 1.23979
2012.08.09 03:54:37    '1282107': modify order #19673999 buy 0.01 EURUSD at 1.23648 sl: 0.00000 tp: 1.23979 -> sl: 0.00000 tp: 1.23979
2012.08.09 03:54:37    '1282107': order #19663548 buy 0.01 EURUSD at 1.23964 was modified -> sl: 0.00000 tp: 1.23979
2012.08.09 03:54:37    '1282107': request in process
2012.08.09 03:54:37    '1282107': request was accepted by server
2012.08.09 03:54:36    '1282107': modify order #19663548 buy 0.01 EURUSD at 1.23964 sl: 0.00000 tp: 1.23976 -> sl: 0.00000 tp: 1.23979
2012.08.09 03:54:36    '1282107': order was opened : #19678056 buy 0.01 EURUSD at 1.23427 sl: 0.00000 tp: 1.23981
2012.08.09 03:54:36    '1282107': request in process
2012.08.09 03:54:36    '1282107': request was accepted by server
2012.08.09 03:54:36    '1282107': instant order buy 0.01 EURUSD at 1.23427 sl: 0.00000 tp: 1.23981
2012.08.09 03:50:15    '1282107': order #19663548 buy 0.01 EURUSD at 1.23964 was modified -> sl: 0.00000 tp: 1.23976
2012.08.09 03:50:15    '1282107': request in process
2012.08.09 03:50:15    '1282107': request was accepted by server
2012.08.09 03:50:15    '1282107': modify order #19663548 buy 0.01 EURUSD at 1.23964 sl: 0.00000 tp: 1.23974 -> sl: 0.00000 tp: 1.23976
2012.08.09 03:50:14    '1282107': modify order #19673999 buy 0.01 EURUSD at 1.23648 sl: 0.00000 tp: 1.23974 -> sl: 0.00000 tp: 1.23974
2012.08.09 03:50:14    '1282107': modify order #19673999 buy 0.01 EURUSD at 1.23648 sl: 0.00000 tp: 1.23974 -> sl: 0.00000 tp: 1.23974
2012.08.09 03:50:14    '1282107': order #19663548 buy 0.01 EURUSD at 1.23964 was modified -> sl: 0.00000 tp: 1.23974
2012.08.09 03:50:14    '1282107': request in process
2012.08.09 03:50:14    '1282107': request was accepted by server
2012.08.09 03:50:14    '1282107': modify order #19663548 buy 0.01 EURUSD at 1.23964 sl: 0.00000 tp: 1.23975 -> sl: 0.00000 tp: 1.23974
2012.08.09 03:50:13    '1282107': order was opened : #19677923 buy 0.01 EURUSD at 1.23421 sl: 0.00000 tp: 1.23975
2012.08.09 03:50:13    '1282107': request in process
2012.08.09 03:50:13    '1282107': request was accepted by server
2012.08.09 03:50:13    '1282107': instant order buy 0.01 EURUSD at 1.23421 sl: 0.00000 tp: 1.23975
2012.08.09 03:49:50    '1282107': order #19663548 buy 0.01 EURUSD at 1.23964 was modified -> sl: 0.00000 tp: 1.23985
2012.08.09 03:49:50    '1282107': request in process
2012.08.09 03:49:50    '1282107': request was accepted by server
2012.08.09 03:49:50    '1282107': modify order #19663548 buy 0.01 EURUSD at 1.23964 sl: 0.00000 tp: 1.23986 -> sl: 0.00000 tp: 1.23985
2012.08.09 03:49:50    '1282107': modify order #19673999 buy 0.01 EURUSD at 1.23648 sl: 0.00000 tp: 1.23986 -> sl: 0.00000 tp: 1.23986
2012.08.09 03:49:49    '1282107': modify order #19673999 buy 0.01 EURUSD at 1.23648 sl: 0.00000 tp: 1.23980 -> sl: 0.00000 tp: 1.23986
2012.08.09 03:49:49    '1282107': order #19663548 buy 0.01 EURUSD at 1.23964 was modified -> sl: 0.00000 tp: 1.23986
2012.08.09 03:49:49    '1282107': request in process
2012.08.09 03:49:49    '1282107': request was accepted by server
2012.08.09 03:49:49    '1282107': modify order #19663548 buy 0.01 EURUSD at 1.23964 sl: 0.00000 tp: 1.23980 -> sl: 0.00000 tp: 1.23986
2012.08.09 03:49:49    '1282107': order was opened : #19677897 buy 0.01 EURUSD at 1.23426 sl: 0.00000 tp: 1.23980
2012.08.09 03:49:49    '1282107': request in process
2012.08.09 03:49:49    '1282107': request was accepted by server
2012.08.09 03:49:49    '1282107': instant order buy 0.01 EURUSD at 1.23426 sl: 0.00000 tp: 1.23980
2012.08.09 03:46:09    '1282107': modify order #19673999 buy 0.01 EURUSD at 1.23648 sl: 0.00000 tp: 1.23977 -> sl: 0.00000 tp: 1.23977
2012.08.09 03:46:09    '1282107': modify order #19673999 buy 0.01 EURUSD at 1.23648 sl: 0.00000 tp: 1.23977 -> sl: 0.00000 tp: 1.23977
2012.08.09 03:46:09    '1282107': order #19663548 buy 0.01 EURUSD at 1.23964 was modified -> sl: 0.00000 tp: 1.23977
2012.08.09 03:46:09    '1282107': request in process
2012.08.09 03:46:09    '1282107': request was accepted by server
2012.08.09 03:46:08    '1282107': modify order #19663548 buy 0.01 EURUSD at 1.23964 sl: 0.00000 tp: 1.23980 -> sl: 0.00000 tp: 1.23977
2012.08.09 03:46:08    '1282107': order was opened : #19677797 buy 0.01 EURUSD at 1.23426 sl: 0.00000 tp: 1.23980
2012.08.09 03:46:08    '1282107': request in process
2012.08.09 03:46:08    '1282107': request was accepted by server
2012.08.09 03:46:08    '1282107': instant order buy 0.01 EURUSD at 1.23426 sl: 0.00000 tp: 1.23980
2012.08.09 02:25:42    '1282107': order #19668207 sell 0.01 GBPUSD at 1.56498 sl: 1.58523 tp: 1.55307 closed at price 1.56551
2012.08.09 02:25:42    '1282107': request in process
2012.08.09 02:25:42    '1282107': request was accepted by server
2012.08.09 02:25:41    '1282107': close order #19668207 sell 0.01 GBPUSD at 1.56498 sl: 1.58523 tp: 1.55307 at price 1.56551
2012.08.09 01:11:38    '1282107': order was opened : #19674029 buy 0.01 EURUSD at 1.23647 sl: 0.00000 tp: 1.24201
2012.08.09 01:11:38    '1282107': request in process
2012.08.09 01:11:38    '1282107': request was accepted by server
2012.08.09 01:11:38    '1282107': instant order buy 0.01 EURUSD at 1.23647 sl: 0.00000 tp: 1.24201
2012.08.09 01:11:35    '1282107': modify order #19663548 buy 0.01 EURUSD at 1.23964 sl: 0.00000 tp: 1.24201 -> sl: 0.00000 tp: 1.24201
2012.08.09 01:11:35    '1282107': modify order #19663548 buy 0.01 EURUSD at 1.23964 sl: 0.00000 tp: 1.24201 -> sl: 0.00000 tp: 1.24201