Dukascopy
 
 
Wiki JStore Search Login

CyberiaTrader.mq4
 Post subject: CyberiaTrader.mq4 Post rating: 0   New post Posted: Wed 04 Dec, 2013, 16:54 
User avatar

User rating: 5
Joined: Tue 06 Mar, 2012, 16:47
Posts: 40
Location: United States, South Florida
Greetings:

After converting and attempting to load this on JForex I received a ton of errors. Maybe this won't work on the JForex platform? I don't know.

Also, when running it on Metatrader the base lot size doesn't seem to be altereable. Every time I've reconfigured and saved the changes they look like they've been accepted, but then the EA does what it wants anyway.

Ideally, I'd like to start with $1,000 U.S.D. as the base. And if that could be altered by the user that would be even better.

Thanks.


Attachments:
CyberiaTrader.mq4 [52.18 KiB]
Downloaded 138 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Thu 05 Dec, 2013, 11:10 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The strategy converted fine for us. What errors did you receive?
Strategy should be working fine withe the following parameters: to trade with lot size 1000 set AutoLots parameter "true" and Lots parameter to 0.001(millions).


 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Thu 05 Dec, 2013, 16:22 
User avatar

User rating: 5
Joined: Tue 06 Mar, 2012, 16:47
Posts: 40
Location: United States, South Florida
I guess it's like going to the doctor -- when you get there you feel fine. The strategy loaded and is running without any indicated errors now. :::shrug::: Beats me.

I have the six highest turnover pairs loaded on one minute charts on MT4: EUR/USD, USD/JPY, GBP/USD, AUD/USD, USD/CAD and USD/CHF.

The EA runs pairs one-at-a-time. Sometimes it scalps so fast I can barely duplicate it manually on JForex.

A short time ago the MT4 EA opened an order on USD/JPY. The JForex strategy did not open that order.

I'm wondering if there's some setting I have to change on the JForex strategy. I've got individual, one minute charts open for each of those six pairs. But the pop-up has only EUR/USD checked.

I've only made the changes you were kind enough to suggest. Is there something else I need to do so it works with all the pairs?


 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Fri 06 Dec, 2013, 10:02 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
To run same strategy with different instruments you need to open the strategy multiple times, change instrument in strategy parameters, and start each strategy instance.
Image


Attachments:
Untitled.png [18.67 KiB]
Downloaded 511 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Fri 06 Dec, 2013, 11:33 
User avatar

User rating: 5
Joined: Tue 06 Mar, 2012, 16:47
Posts: 40
Location: United States, South Florida
Ah, I see. Thank you.


 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Mon 09 Dec, 2013, 15:29 
User avatar

User rating: 5
Joined: Tue 06 Mar, 2012, 16:47
Posts: 40
Location: United States, South Florida
I tried to use this for the strategy contest (my first time for that contest), but couldn't get it to work.

I wrote to support there and they replied, "Then ask on API forum to fix compilation errors and adjust strategy to the
contest."

So, would you please be so kind as to help?

Thanks.


 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Mon 09 Dec, 2013, 17:13 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The strategy does compile and does run. In this forum we may adjust the MetaTrader code only if it does not compile or there is some run-time error. Please elaborate what further assistance do you need.


 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Mon 09 Dec, 2013, 22:48 
User avatar

User rating: 5
Joined: Tue 06 Mar, 2012, 16:47
Posts: 40
Location: United States, South Florida
Perhaps I'm requesting help in the wrong place? I'm getting a "Comp. error", whatever that is (I don't know anything about java).

Please pardon my ignorance.

https://www.dukascopy.com/strategycontes ... anguage=en


 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Mon 16 Dec, 2013, 07:37 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please ensure that the strategy is opened as MT4:
Image

And that the file is openned as a strategy and not an indicator:
Image

It might be helpful if you screenshot or copy the error message here.


Attachments:
tree.jpg [82.53 KiB]
Downloaded 442 times
mt4.jpg [48.53 KiB]
Downloaded 447 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Mon 16 Dec, 2013, 12:07 
User avatar

User rating: 5
Joined: Tue 06 Mar, 2012, 16:47
Posts: 40
Location: United States, South Florida
Image
Image
Image

I was not able to open the strategy in the trader contest platform.

Also, couldn't open it in the strategy contest platform. Please see the attached images.

Using my live account I was to open and compile successfully, which I'll show in the next post.


Attachments:
File comment: Opening a strategy from the strategy tab on the strategy platform does not work
cy_cannot_open_from_strategy_tab.jpg [11 KiB]
Downloaded 365 times
File comment: I cannot open a strategy from the workspace on the strategy platform
cy_cannot_open_from_workspace.jpg [3.56 KiB]
Downloaded 361 times
File comment: This is what I see when I open the jForex strategy platform
cy_view_mode.jpg [6.51 KiB]
Downloaded 414 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Mon 16 Dec, 2013, 12:14 
User avatar

User rating: 5
Joined: Tue 06 Mar, 2012, 16:47
Posts: 40
Location: United States, South Florida
Thanks to your suggestions I was able to get the strategy up and running in my live account. It doesn't work properly as it closes all trades at a loss or before it earns enough pips to beat the spread and commission, but at least it is running.

As you can see the compilation was successful.


Image
Image


Attachments:
File comment: Saved as MT4 environment file
cy2.jpg [13.8 KiB]
Downloaded 366 times
File comment: Compilation successful for live account
cy1.jpg [19.61 KiB]
Downloaded 372 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Mon 16 Dec, 2013, 12:16 
User avatar

User rating: 5
Joined: Tue 06 Mar, 2012, 16:47
Posts: 40
Location: United States, South Florida
When I went to update the strategy on Dukascopy I received the following error message.

Note, the first time I saved it as a java file. That didn't work. So, I saved it as described in the previous post.

I'm not sure what I'm doing wrong.
Image


Attachments:
File comment: Error Message: file must be a java source code
cy3.jpg [11.52 KiB]
Downloaded 474 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Mon 16 Dec, 2013, 12:48 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please post your strategy contest inquiries in the correct forum section, see:
viewforum.php?f=21


 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Mon 16 Dec, 2013, 17:37 
User avatar

User rating: 5
Joined: Tue 06 Mar, 2012, 16:47
Posts: 40
Location: United States, South Florida
Okay, I posted over in the correct forum.

About running this on the live account: can you see any reason it can't make a profit? In other words it always closes before a profit can be realized.

I'm running the MT4 version simultaneously and don't have this problem. It likes to scalp profitably.

Also, on the MT4 version as soon as one pair closes, another one can open, sometimes immediately.

On jForex once one pair closes everything closes and doesn't start up again. I have to manually restart each one. Note, this is for running four pairs.

Any idea why that would be?


 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Wed 18 Dec, 2013, 14:38 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please provide a concrete case. For instance, run the strategy in the Historical Tester and pinpoint the place on the chart where the strategy should have made a trade but it did not. For this please provide print-screens of both the chart and the Historical Tester settings.


 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Sat 28 Dec, 2013, 17:19 
User avatar

User rating: 5
Joined: Tue 06 Mar, 2012, 16:47
Posts: 40
Location: United States, South Florida
The image you posted in this thread is an example.

You've got a long entry for GBP/CHF and a short entry for AUD/USD running simultaneously.

This is not possible in my MT4 platform. Only one pair can run at a time.

Furthermore, historical testing this strategy shows a loss on each individual pair in JForex. However, the strategy is profitable on MT4. Maybe it's because MT4 is looking at all the pairs and only selecting the best one at that exact moment?

:::scratching head::::

(I can't attach a file. Getting a "Server Error" message when I attempt to do so)


 
 Post subject: Re: CyberiaTrader.mq4 Post rating: 0   New post Posted: Mon 06 Jan, 2014, 10:03 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please describe specific errors in strategy opreation.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com