Reply

Export Portfolio as Expert Advisor

5 replies

darchi015

Customer, bbp_participant, community, 4 replies.

Visit profile

8 years ago #114946

Is there a way to export one portfolio as only one EA file? Because if I want to test 30-40s strategies I will have to add them manually on each chart, right? Or I am missing something. In MT4 is it called Multi-Instrument (trades several currencies on a single chart).

 

Thank you! If this is not possible it would be a very nice feature for SQ4!

1

mikeyc

Customer, bbp_participant, community, 877 replies.

Visit profile

8 years ago #136118

Currently one strategy equals one EA, so with a 40 strategy portfolio, you will have 40 EA’s and 40 chart windows.

 

I don’t know if SQ4 will change this.

0

Karish

Customer, bbp_participant, community, sq-ultimate, 443 replies.

Visit profile

8 years ago #136128

Thats a great idea BTW, +1!

0

geektrader

Customer, bbp_participant, community, 522 replies.

Visit profile

8 years ago #136164

In theory that sounds nice, but in reality it is impossible with MT4 because you can´t parallel execute orders with it from just one EA. MQL4 code is completely serial executed and can´t use any kind of parallel processing! Each trade has to be processed and confirmed by the broker (MT4 does not support aysnc OrderSend()) before the next line of code is called in the EA. So if you have 40 strategies in 1 EA and each one has a operation at each full hour (or each 30 minutes), it effectively means that it will have to execute the commands for strategy 1, then 2, then 3… it can´t send them in parallel from 1 EA. So it would look like this in reality, assuming each trade operation takes 1 second in total (example):

 

13:00:00 strategy 1 open short

13:00:01 strategy 1 set stop loss

13:00:02 strategy 2 open short

13:00:03 strategy 2 set stop loss

…now repeat this for all 40 strategies and 80 seconds have passed until strategy 40 has executed / modified it´s order. The market can move a lot in 80 seconds and so the backtests especially of strategy #40 will never match the live trading since you´ll get completely different entry prices because of these delays, especially during high volatility. The only way to reliable trade a portfolio with MT4 is to use 1 EA for each single strategy and a max of 8 EAs per MT4 instance for the reason explained here: https://strategyquant.com/forum/topic/4429-bug-or-problem-on-my-vps-lagging-i-got-a-lot-of-terminals-and-eas-working-on-my-vps-but-sometimes-sltp-not-set-on-the-order-why/#entry16155


🚀 Unlock Your Edge in Automated Forex Strategy Development 🚀

Historical Forex Data Starting From 1987, 28 Pairs, M1, 99% Error-Free, Lifetime Free Updates

0

darchi015

Customer, bbp_participant, community, 4 replies.

Visit profile

8 years ago #136172

It is true, the EA I have is working on a single strategy and it opens orders on several pairs. I thought there is a way to do the same with multiple strategies (so all I need to do if i want to forward test several strategies is to run several mt4 clients, right?).

0

geektrader

Customer, bbp_participant, community, 522 replies.

Visit profile

8 years ago #136185

Just use 8 EAs max per terminal and open as many terminals as needed and you´ll be fine and also never get a busy trade context.


🚀 Unlock Your Edge in Automated Forex Strategy Development 🚀

Historical Forex Data Starting From 1987, 28 Pairs, M1, 99% Error-Free, Lifetime Free Updates

0

Viewing 5 replies - 1 through 5 (of 5 total)