Re: Exporting a strategy as an Expert Advisor

I fixed the problem. Please put the attached indicator in the MQL indicators folder:

C:\Program Files\Forex Strategy Builder Pro\User Files\MT4 Files\MQL\Forexsb.com\Indicators

You have to reexport your expert.

Post's attachments

PreviousBarOpening.mqh 6.01 kb, 6 downloads since 2015-02-09 

You don't have the permssions to download the attachments of this post.

Re: Exporting a strategy as an Expert Advisor

Thank you very much.

Νοῦς ὁρᾶ καί νοῦς ἀκούει.

28 (edited by mek325 2015-09-16 19:11:22)

Re: Exporting a strategy as an Expert Advisor

Hi Mr. Popov,
i think there a problem with the closing procedure in EA MQL-Code.
In the attached picture you can see the correct exit in FSBpro and the missing exit in MT4, although the EA-infotext shows a closing condition.

http://s23.postimg.org/bfgb3i9vr/mt4_ea_missing_exit.jpg

Post's attachments

New Strategy (1).xml 9.76 kb, 5 downloads since 2015-09-16 

You don't have the permssions to download the attachments of this post.

Re: Exporting a strategy as an Expert Advisor

It is a known MT bug. I have reported it to MetaQuotes one moth ago but I have no response from them.

The problem is that the MT backtester doesn't generate tick near to the end of the bar especially on 5 min chart. 

You can see this topic in the MQL5 community: https://www.mql5.com/en/forum/60765

Please note that there is zero response from the MT stuff.

The latest version of our EA should overcome this MT problem as well as it can.

Re: Exporting a strategy as an Expert Advisor

ok, thank you for your fast response and great support!

31 (edited by simon_json 2015-11-22 10:22:14)

Re: Exporting a strategy as an Expert Advisor

Hi,
I have the following problem; When I generated a strategy and try to backtest it in MT4, this happen:
2015.11.22 09:32:37.639    EURUSD,M30: 1198 tick events (6425 bars, 10821063 bar states) processed in 0:00:10.191 (total time 0:00:24.997)
2015.11.22 09:32:37.638    2015.04.01 01:14  Testing pass stopped due to a critical error in the EA
2015.11.22 09:32:37.638    2015.04.01 01:14  New Strategy m30 EURUSD,M30: array out of range in 'New Strategy m30.mq4' (4898,32)
2015.11.22 09:32:27.653    2015.04.01 00:00  New Strategy m30 EURUSD,M30: The expert uses 1050 bars.
2015.11.22 09:32:27.556    2015.04.01 00:00  New Strategy m30 EURUSD,M30: Loading data: EURUSD,M30, Minumum bars: 125...
2015.11.22 09:32:27.553    2015.04.01 00:00  New Strategy m30 EURUSD,M30: New Strategy m30 loaded.
2015.11.22 09:32:27.449    2015.04.01 00:00  New Strategy m30 inputs: Entry_Amount=1; Maximum_Amount=20; Adding_Amount=1; Reducing_Amount=1; Protection_Min_Account=0; Protection_Max_StopLoss=0; Expert_Magic=20224149; Bar_Close_Advance=15; Write_Log_File=0;
2015.11.22 09:32:12.642   
TestGenerator: current spread 20 used

I wonder why? I attach the strategy I try to test.

Post's attachments

New Strategy m30.mq4 281.19 kb, 7 downloads since 2015-11-22 

You don't have the permssions to download the attachments of this post.

Re: Exporting a strategy as an Expert Advisor

Simon, I don't know why it gave you the array out of range error, it points to a strange place code-wise, therefore I decided to wait until market opening to try it out myself, and it works fine for me, try it again is my suggestion.

Re: Exporting a strategy as an Expert Advisor

I have the following problem; When I generated a strategy and try to backtest it in MT4, this happen:

Unfortunately, MT 4 build 910 has a bug and the backtest doesn't work.
However your strategy loads on a demo chart and calculates well.

Re: Exporting a strategy as an Expert Advisor

Hello I am really enjoying the software so far.

I just had a very quick question.  So far I have just been exporting the EAs constructed with ForexSB directly to MT4.  I was just wondering what the advantage is to using the bridge and trading the strategies from within ForexSB using the "Trader" mode? 

It would seem to me that using the EA built with ForexSB on the MT4 platform directly would have less slippage and less delay no?

I haven't finished reviewing all of the manual or tutorial videos yet but I having trouble grasping the advantage of using the "Trader" function on ForexSB versus just uploading the EA on to your MT4 platform directly.

Thanks in advance.
Serge

Re: Exporting a strategy as an Expert Advisor

Hello Serge,

Exporting of EAs is the new and preferred way of trading FSB strategies. Actually an exported EA is a FSB strategy, bridge and Trader combined in one MQL file. Trading with multiple EAs requires less resources than running multiple bridge connections. You also don't need an FSB installation for trading on a VPS for example.

The Trader mode is useful during the strategy development and debugging because it provides an indicator chart and more terminal, market and indicator information. It allows a manual intervention in the trading during a strategy auto-trade.