Re: Mt4-FST Expert.mq4
I will do that in a while, downloading, but even without IBFX MT4 running, the new v 0.8.0.0 FST crash when I click on the "Chart" or the "Operation" tab.
Create and Test Forex Strategies
You are not logged in. Please login or register.
Forex Software → Forex Strategy Trader (legacy) → Mt4-FST Expert.mq4
I will do that in a while, downloading, but even without IBFX MT4 running, the new v 0.8.0.0 FST crash when I click on the "Chart" or the "Operation" tab.
OK, I have install the FX Open MT4 client but the behaviour is still the same.
Do you say that FST crashes alone without MT running when you click on the "Chart" tab.
Yes, that what happen , FST crash when I click on the "Chart" or "Operation" tab without MT4 running.
Can you make a screen shot of the error message. I cannot reproduce this error on mine 4 comps. A friend of mine reported such problems before on XP and 8 years old comp but after reinstalling it was ok.
Are you able to test the program with your broker on another computer?
I have ran the v 0.8.0.0 in another computer with Vista (Core2Due) and it have the same problem so I tried it on this computer a XP(laptop also Core2Due family of chip).
There is a global variable set from previous try. Stop the expert and delete the global variables. F3
OK deleted the global variable set, it just allow FST to connect for a short while and then get disconnected.
OK,
So far my testing is, you will have to go to another timeframe say H1 and back to the intented timeframe M5 before you relaunch FST, I am most successful to get FST to work by clicking on another timeframe before returning to the intended timeframe before launching FST.
Do not know what this mean as far as the coding of FST or the expert advisor is concern.
There is only one function that stops FST - if in single mode the program find another running instance.
- Press Ctrl-Alt-Dell and check the Windows processes for background Forex Strategy Trader
- Run FST in multiple copies mode and set ID = 0 in order to connect to expert.
The problem may be not only in connection if you cannot start the Chart tab.
Can you execute trade operations? If the "Operation" tab is not acceptable, open "Test Trade" strategy on a 1 minute chart. (For FXOpen set LateStops = true)
Lets debug the connection:
1. Copy the whole Forex Strategy Trader folder to your desktop.
2. Open the config.xml file (from System) directory and allow MT Bridge Log File
<bridgeWritesLog>True</bridgeWritesLog>
3. Start FST and try some operations.
4. You'll find bridge.log file in the FST folder.
5. Send me the file.
Tried it in a new folder and change the config.xml
this is from the bridge.log ( MT4 not runing )
12/14/2009 3:11:34 PM - Write: 'PI'
12/14/2009 3:11:34 PM - Read: 'OK EURUSD 5 37309936 1.46670 1.46690 2 1260781800 1.46620 1.46670 1.46610 1.46670 10 1260778800 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
Ok. Start the expert and we'll see all the communication.
I deleted the log and run MT4 then FST again and the new log
12/14/2009 3:31:04 PM - Write: 'PI'
12/14/2009 3:31:04 PM - Read: 'OK EURUSD 5 30035440 1.46720 1.46740 2 1260783000 1.46700 1.46730 1.46690 1.46720 9 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
and in an instance FST close by itself.
In this instance FST manage to connect and the log content
12/14/2009 3:33:20 PM - Write: 'PI'
12/14/2009 3:33:20 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:12 PM - Write: 'PI'
12/14/2009 3:34:12 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:12 PM - Write: 'MA EURUSD'
12/14/2009 3:34:12 PM - Read: 'OK 0.00010 4.00000 2.00000 10.00000 100000.00000 10.00000 0.00010 -0.79000 0.15000 0.00000 0.00000 1.00000 0.10000 0.10000 1000.00000 0.00000 0.00000 0.00000 0.00000 0.00000 50000.00000 733.65000 3.00000'
12/14/2009 3:34:12 PM - Write: 'BR EURUSD 5 1 586'
12/14/2009 3:34:12 PM - Read: 'OK EURUSD 5 20203 1 587 1260782700 1.467600 1.467600 1.467000 1.467100 22 1260782400 1.466800 1.467600 1.466800 1.467500 43 1260782100
...
...
1.473600 8 1260419100 1.473800 1.473900 1.473800 1.473900 2 1260418800 1.473900 1.474000 1.473800 1.473900 5'
12/14/2009 3:34:12 PM - Write: 'AI'
12/14/2009 3:34:12 PM - Read: 'OK GW2 885938 FXOpen_Investments_Inc. FXOpen-Demo USD 200 9697.00 9697.00 0.00 0.00 0.00 1.00 9697.00 0 10'
12/14/2009 3:34:12 PM - Write: 'TE'
12/14/2009 3:34:12 PM - Read: 'OK MetaTrader MetaQuotes_Software_Corp. C:|Program_Files|MetaTrader_-_FXOpen 0.11_Beta 0.11'
12/14/2009 3:34:13 PM - Write: 'PI'
12/14/2009 3:34:13 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:14 PM - Write: 'PI'
12/14/2009 3:34:14 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:15 PM - Write: 'PI'
12/14/2009 3:34:15 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:16 PM - Write: 'PI'
12/14/2009 3:34:16 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:16 PM - Read: 'TI EURUSD 5 1260783257 1.46720 1.46740 2 1260783000 1.46700 1.46760 1.46690 1.46720 23 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:16 PM - Write: 'OK'
12/14/2009 3:34:17 PM - Read: 'TI EURUSD 5 1260783258 1.46730 1.46750 2 1260783000 1.46700 1.46760 1.46690 1.46730 24 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:17 PM - Write: 'OK'
12/14/2009 3:34:19 PM - Write: 'PI'
12/14/2009 3:34:19 PM - Read: 'OK EURUSD 5 30035440 1.46730 1.46750 2 1260783000 1.46700 1.46760 1.46690 1.46730 24 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:20 PM - Write: 'PI'
12/14/2009 3:34:20 PM - Read: 'OK EURUSD 5 30035440 1.46730 1.46750 2 1260783000 1.46700 1.46760 1.46690 1.46730 24 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:21 PM - Write: 'PI'
12/14/2009 3:34:21 PM - Read: 'OK EURUSD 5 30035440 1.46730 1.46750 2 1260783000 1.46700 1.46760 1.46690 1.46730 24 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:22 PM - Write: 'PI'
12/14/2009 3:34:22 PM - Read: 'OK EURUSD 5 30035440 1.46730 1.46750 2 1260783000 1.46700 1.46760 1.46690 1.46730 24 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:23 PM - Write: 'PI'
12/14/2009 3:34:23 PM - Read: 'OK EURUSD 5 30035440 1.46730 1.46750 2 1260783000 1.46700 1.46760 1.46690 1.46730 24 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:23 PM - Read: 'TI EURUSD 5 1260783264 1.46740 1.46760 2 1260783000 1.46700 1.46760 1.46690 1.46740 25 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:23 PM - Write: 'OK'
I close the FST after the succesful connection and tried for the connection twice and it fail, the log is as below
12/14/2009 3:33:20 PM - Write: 'PI'
12/14/2009 3:33:20 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:12 PM - Write: 'PI'
12/14/2009 3:34:12 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:12 PM - Write: 'MA EURUSD'
12/14/2009 3:34:12 PM - Read: 'OK 0.00010 4.00000 2.00000 10.00000 100000.00000 10.00000 0.00010 -0.79000 0.15000 0.00000 0.00000 1.00000 0.10000 0.10000 1000.00000 0.00000 0.00000 0.00000 0.00000 0.00000 50000.00000 733.65000 3.00000'
12/14/2009 3:34:12 PM - Write: 'BR EURUSD 5 1 586'
12/14/2009 3:34:12 PM - Read: 'OK EURUSD 5 20203 1 587 1260782700 1.467600 1.467600 1.467000 1.467100 22 1260782400 1.466800 1.467600 1.466800 1.467500 43 1260782100
...
...
1.473600 8 1260419100 1.473800 1.473900 1.473800 1.473900 2 1260418800 1.473900 1.474000 1.473800 1.473900 5'
12/14/2009 3:34:12 PM - Write: 'AI'
12/14/2009 3:34:12 PM - Read: 'OK GW2 885938 FXOpen_Investments_Inc. FXOpen-Demo USD 200 9697.00 9697.00 0.00 0.00 0.00 1.00 9697.00 0 10'
12/14/2009 3:34:12 PM - Write: 'TE'
12/14/2009 3:34:12 PM - Read: 'OK MetaTrader MetaQuotes_Software_Corp. C:|Program_Files|MetaTrader_-_FXOpen 0.11_Beta 0.11'
12/14/2009 3:34:13 PM - Write: 'PI'
12/14/2009 3:34:13 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:14 PM - Write: 'PI'
12/14/2009 3:34:14 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:15 PM - Write: 'PI'
12/14/2009 3:34:15 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:16 PM - Write: 'PI'
12/14/2009 3:34:16 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:16 PM - Read: 'TI EURUSD 5 1260783257 1.46720 1.46740 2 1260783000 1.46700 1.46760 1.46690 1.46720 23 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:16 PM - Write: 'OK'
The log is perfectly legal. The problem is not in the communication.
There is no code in the program that closes it alone once started.
Please restart the computer and try with minimum other software running.
It looks like FST fail to "Write: 'MA EURUSD' " , " Write: 'BR EURUSD 5 1 586' " when it fail to connect to MT4.
MA is MarketInfo All
BR is bars
It's ok in the log. After that TI (Ticks are coming) and PI (Ping) from FST to MT are passing.
This is not the problem. It's not possible once to run and other time not if there is a constant error.
There is some dynamic reason. Does Forex Strategy Builder work normally?
Forex Strategy Builder works normally and do not have problem with it.
This is the log (new log) when I tried it on IBFX where the EA indicates that its connected and then later gets disconnected by itself, maybe here you can find out why
12/14/2009 3:33:20 PM - Write: 'PI'
12/14/2009 3:33:20 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:12 PM - Write: 'PI'
12/14/2009 3:34:12 PM - Read: 'OK EURUSD 5 30035440 1.46710 1.46730 2 1260783000 1.46700 1.46760 1.46690 1.46710 22 1260780000 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:34:12 PM - Write: 'MA EURUSD'
12/14/2009 3:34:12 PM - Read: 'OK 0.00010 4.00000 2.00000 10.00000 100000.00000 10.00000 0.00010 -0.79000 0.15000 0.00000 0.00000 1.00000 0.10000 0.10000 1000.00000 0.00000 0.00000 0.00000 0.00000 0.00000 50000.00000 733.65000 3.00000'
12/14/2009 3:34:12 PM - Write: 'BR EURUSD 5 1 586'
12/14/2009 3:34:12 PM - Read: 'OK EURUSD 5 20203 1 587 1260782700 1.467600 1.467600 1.467000 1.467100 22 1260782400 1.466800 1.467600 1.466800 1.467500 43 1260782100 1.467000 1.467000 1.466500 1.466900 40 1260781800 1.466200 1.467000 1.466100 1.466900 52
12/14/2009 3:36:23 PM - Write: 'PI'
12/14/2009 3:36:23 PM - Read: 'OK EURUSD 5 30035440 1.46770 1.46790 2 1260783300 1.46760 1.46780 1.46760 1.46770 8 1260780300 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:37:24 PM - Write: 'PI'
12/14/2009 3:37:24 PM - Read: 'OK EURUSD 5 30035440 1.46780 1.46800 2 1260783300 1.46760 1.46780 1.46760 1.46780 13 1260780300 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
12/14/2009 3:38:39 PM - Write: 'PI'
12/14/2009 3:38:39 PM - Read: 'OK EURUSD 5 25841136 1.46780 1.46800 2 1260783300 1.46760 1.46790 1.46760 1.46780 17 1260780300 9697.00 9697.00 0.00 9697.00 0 -1 0.00 0.00000 0.00000 0.00000 0.00 '
The Expert and DLL is OK. Every time when FST sends a Ping it receives a correct respond in the same second.
FST sends pings every seconds if there is no ticks. I noticed that between the last two pings there is more than a minute delay.
12/14/2009 3:37:24 PM - Write: 'PI'
12/14/2009 3:38:39 PM - Write: 'PI'
This is not normal. Did you restart your computer? Is it possible for the computer to be overloaded?
Do you open the chart tab or it crashes at every attempt?
I did reboot my computer and exit all the programs that was not needed. CPU usage wa not more than 40%.
It still crash every time I tried to view the Chart and Operation page even without MT4 running.
CPU load should be 1-4% when MT and FST are running but this is not the problem. High load stops the communication and FST gets disconnected but it must not crash.
The key element here is the crash of the Chart and Operation tabs even without MT connection.
I'm very surprised of a crash without error message.
Can you check the MD5 sum of the installation file. Use the attached program.
The correct MD5 Sum is:
4d37457aebb577cc42bb809766493743
For Forex Strategy Trader.exe it returns
4d37457aebb577cc42bb809766493743
and it the same as your so no error in the file.
Forex Software → Forex Strategy Trader (legacy) → Mt4-FST Expert.mq4
Powered by PunBB, supported by Informer Technologies, Inc.