Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 1 invisible), 620 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 2 of 3 1 2 3
Re: dt-e8 MA-crossover, built for Zorro v1.20 [Re: Mandark] #437438
02/17/14 01:03
02/17/14 01:03
Joined: Jul 2013
Posts: 522
D
dusktrader Offline OP
User
dusktrader  Offline OP
User
D

Joined: Jul 2013
Posts: 522
Good catch Mandark, you are right -- the / should be your issue. My broker (IBFX) does not use the slash but other brokers like FXCM do.

I am currently working on some enhancements for dt-e8 which I will post soon once they are complete. There are a couple bugs for sure in the code listed in this thread, so look through it carefully if you plan to use it.

Re: dt-e8 MA-crossover, built for Zorro v1.20 [Re: dusktrader] #437444
02/17/14 10:02
02/17/14 10:02
Joined: Jan 2013
Posts: 68
I
ibra Offline
Junior Member
ibra  Offline
Junior Member
I

Joined: Jan 2013
Posts: 68
Hi Dusk!

Awesome code as always! Wish I was a fast-learner like you!


Quote:

I then moved to NZDJPY and was happier with that basis


Regarding the quote above: How are you able to use NZDJPY pair? I only have the following pair to choose from in my Zorro: audusd, eurusd, gbpusd, eurchf, usdcad, usdchf and usdjpy.

Maybe cause you use Zorro S?

Thanks!

Ibra

Re: dt-e8 MA-crossover, built for Zorro v1.20 [Re: ibra] #437448
02/17/14 10:56
02/17/14 10:56
Joined: Jul 2013
Posts: 522
D
dusktrader Offline OP
User
dusktrader  Offline OP
User
D

Joined: Jul 2013
Posts: 522
Hi ibra,
what I did was took a look at the (currently) 2 brokers I have available to use with Zorro: FXCM and IBFX. Both have several pairs for trading (about 27 on IBFX). However, with FXCM you have access to quality data for free through Zorro. Using the built-in script Download.c, you can configure Zorro to download the .bar history files to your local system.

Now that I have all that on my local system, I am able to design bots and then trade them on either platform.

You can do all downloading/design work without Zorro S. You can trade also with FXCM and the free Zorro. Trading on MT4 does require Zorro S or monthly subscription.

Re: dt-e8 MA-crossover, built for Zorro v1.20 [Re: dusktrader] #437557
02/19/14 14:19
02/19/14 14:19
Joined: Jul 2013
Posts: 522
D
dusktrader Offline OP
User
dusktrader  Offline OP
User
D

Joined: Jul 2013
Posts: 522
I'm attaching here the latest revision of dt-e8. This is a (very) simple trendfollower. In observing it trade for several months now, I've noticed that it really likes market chaos. It can be a little depressing to watch it lose -- a little here, a little there... but then when chaos strikes, it grabs onto the momentum and rides with it.

One issue I've noticed is that it doesn't always keep some huge gains it makes from that momentum, instead letting them evaporate. That is a good segway for me to start learning about TMF's (trade mgmt function). I'd like to explore a TMF that can, at the very least, close a trade once it reaches (a good amount of profit).

Anyway, this Feb2014 version of dt-e8 is better than the original version posted in this thread. The core logic remains the same (sloppy, boring MA-crossover), but there have been several fixes/improvements in the infrastructure around that code.

I've posted a comparison chart below where you can see that the yield on this slopbot is roughly the same as the original version, only much more efficient (and thus safer).

I am still working on the spreadsheet process for the next slopbot, so I'm not ready to share those changes yet. It is a long process of trial-and-error for me, to find what really works. A lot of ideas do not pan out, but some do.

PS: I've completely extracted most helper functions from the main code now, with the exception of the continueStats() routine. This is currently strategy-dependent due to a looping issue I described in another thread.

EDIT Feb 21: When I turned this on my live trading account, I realized there was another bug, which I've fixed in these latest attachments. The bug is that, under certain circumstances, if phantom trading was enabled, it would stay enabled and not turn back to real trading. This was evident when I noticed Zorro taking phantom trades for pairs that should never be phantom-ized. It is fixed now, and the result is positive in that it improved the overall yield on the strategy. Additionally, I've improved the continueStats() routine to now count phantom trades as well (it should have been doing that but wasn't) and I've also managed to move it permanently to the toolbox file where it belongs.

Attached Files
comparison.png (234 downloads)
dt-e8_140221.png (42 downloads)
dt-e8 (Feb2014).zip (43 downloads)
Last edited by dusktrader; 02/21/14 14:55.
Re: dt-e8 MA-crossover, built for Zorro v1.20 [Re: dusktrader] #437602
02/20/14 09:08
02/20/14 09:08
Joined: Jan 2014
Posts: 28
Adelaide, South Oz
R
Radar Offline
Newbie
Radar  Offline
Newbie
R

Joined: Jan 2014
Posts: 28
Adelaide, South Oz
Hey DuskTrader,

Thanks for sharing your work on this. laugh

I an looking at an MA crossover strategy using an adaptive MA based on Fractal Dimensions. I am also looking at using a Fractal Graph Dimension Indicator to filter out ranging periods.

The FGDI shows the strength of a trend, but not the direction, so a faster MA is needed as well.

I currently have mql4 versions of the indicators, which are available here... http://fractalfinance.blogspot.com.au/2009/04/fractal-dimensionsand-fractal-graph.html

Once I've gotten used to using those indicators, I'll look for a good range trading strategy, then attempt to convert the indicators to Lite-C.

Why did I post this here? I thought that maybe you'd like a range indicator to filter entries, and - in conjunction with a faster MA - as an early exit on reversals, rather than waiting for an opposite cross.


Have fun!
Radar =8^)
Re: dt-e8 MA-crossover, built for Zorro v1.20 [Re: Radar] #437669
02/21/14 14:56
02/21/14 14:56
Joined: Jul 2013
Posts: 522
D
dusktrader Offline OP
User
dusktrader  Offline OP
User
D

Joined: Jul 2013
Posts: 522
Thanks Radar, I'm adding this to my research todo list!

Re: dt-e8 MA-crossover, built for Zorro v1.20 [Re: dusktrader] #437680
02/22/14 11:35
02/22/14 11:35
Joined: Jan 2013
Posts: 68
I
ibra Offline
Junior Member
ibra  Offline
Junior Member
I

Joined: Jan 2013
Posts: 68
That's absolutely brilliant dusk!

Good job!

EDIT: @Radar,

You might wanna check out the HTTrendMode developed by John Ehlers. It's located in the Indicators section in the manual.

Last edited by ibra; 02/22/14 17:42.
Re: dt-e8 MA-crossover, built for Zorro v1.20 [Re: ibra] #437760
02/25/14 09:11
02/25/14 09:11
Joined: Jan 2014
Posts: 28
Adelaide, South Oz
R
Radar Offline
Newbie
Radar  Offline
Newbie
R

Joined: Jan 2014
Posts: 28
Adelaide, South Oz

Thanks, Ibra laugh Will check it out once I can get my head around Lite-C wink


Have fun!
Radar =8^)
Re: dt-e8 MA-crossover, built for Zorro v1.20 [Re: Radar] #442421
06/21/14 11:33
06/21/14 11:33
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
Just wanted to add my thanks for sharing your hard work on this. I had been following a similar design process, although far less organised and well-documented. Your helper functions are awesome too - I'm going to start using them in my code. Hope you don't mind!

I hope that I can progress my abilities with Zorro to the point that I can contribute something back.

Cheers

Re: dt-e8 MA-crossover, built for Zorro v1.20 [Re: boatman] #449498
03/22/15 12:54
03/22/15 12:54
Joined: Feb 2015
Posts: 45
Italy
forexcoder Offline
Newbie
forexcoder  Offline
Newbie

Joined: Feb 2015
Posts: 45
Italy
Thanks dusktrader. Your job is excellent. I have only an errore during compiling:
"Error 062: Can't open Assets-IBFXnano.dta(rb)".
Infact in yuor code, after function run(), there is that code:
"AssetList = "Assets-IBFXnano.dta"; "
but in files you shared there isn't any file '.dta'.
Can you help me? Thanks.

Page 2 of 3 1 2 3

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1