Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Quad, EternallyCurious, 1 invisible), 737 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
How to trade a different asset than that used for training? #472153
04/12/18 14:17
04/12/18 14:17
Joined: Oct 2017
Posts: 52
Brazil
J
jmlocatelli Offline OP
Junior Member
jmlocatelli  Offline OP
Junior Member
J

Joined: Oct 2017
Posts: 52
Brazil
Hi,
How can I train a strategy using a certain asset history, and trade using a different asset?
The idea is to train using a continuous historic data and trade future contract with expiration date.
tks,
jm

Last edited by jmlocatelli; 04/12/18 14:31.
Re: How to trade a different asset than that used for training? [Re: jmlocatelli] #472154
04/12/18 14:37
04/12/18 14:37
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
You can construct a continuous futures series using contract data.

Documentation on futures, options, and futures-options contracts can be found here:
http://www.zorro-trader.com/manual/en/contract.htm

Re: How to trade a different asset than that used for training? [Re: AndrewAMD] #472155
04/12/18 15:13
04/12/18 15:13
Joined: Oct 2017
Posts: 52
Brazil
J
jmlocatelli Offline OP
Junior Member
jmlocatelli  Offline OP
Junior Member
J

Joined: Oct 2017
Posts: 52
Brazil
tks for the info.
The broker already provides me the continuous contract futures series.
Its associated asset name is "WDO$D".
The asset name for the current negotiated contract is "WDOK18".
I just need to train using WDO$D and trade using WDOK18.
I want to keep things simple.

I can change the script manually removing the optimize commands, assign the optimized values to the parameters, and change the asset name. But its a little more complicated when using machine learning.

Re: How to trade a different asset than that used for training? [Re: jmlocatelli] #472156
04/12/18 15:28
04/12/18 15:28
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Who's your broker, and which plugin are you using?

Re: How to trade a different asset than that used for training? [Re: AndrewAMD] #472157
04/12/18 15:37
04/12/18 15:37
Joined: Oct 2017
Posts: 52
Brazil
J
jmlocatelli Offline OP
Junior Member
jmlocatelli  Offline OP
Junior Member
J

Joined: Oct 2017
Posts: 52
Brazil
I trade Brazilian market. The broker's name is XP.
I use Metatrader 5 with MT4/5 plugin.

Re: How to trade a different asset than that used for training? [Re: AndrewAMD] #472158
04/12/18 15:40
04/12/18 15:40
Joined: Dec 2017
Posts: 129
Halifax, NS
K
kujo Offline
Member
kujo  Offline
Member
K

Joined: Dec 2017
Posts: 129
Halifax, NS
Originally Posted By: AndrewAMD
You can construct a continuous futures series using contract data.

Documentation on futures, options, and futures-options contracts can be found here:
http://www.zorro-trader.com/manual/en/contract.htm



As far as I know (according to Support), Zorro doesn't provide any out-of-the box functionality to construct a continuous futures contract. My idea was to construct it manually using Zorro's datasets. If you know a better way, could you please share your thoughts?

Last edited by kujo; 04/12/18 15:40.
Re: How to trade a different asset than that used for training? [Re: kujo] #472161
04/12/18 16:09
04/12/18 16:09
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Originally Posted By: kujo
My idea was to construct it manually using Zorro's datasets.
Manually is exactly what I meant.

Re: How to trade a different asset than that used for training? [Re: AndrewAMD] #472163
04/12/18 18:37
04/12/18 18:37
Joined: Oct 2017
Posts: 52
Brazil
J
jmlocatelli Offline OP
Junior Member
jmlocatelli  Offline OP
Junior Member
J

Joined: Oct 2017
Posts: 52
Brazil
for the pourpose to train on asset WDO$D and trade on asset WDOK18, would does this work??

asset("WDO$D");
vars PriceCloseWDO = series(priceClose());
Parameter = optimize(...);
var Signals[2];
Signals0 = signal generation based on Parameter and PriceCloseWDO ...
Signals1 = signal generation based on Parameter and PriceCloseWDO ...
bool BuySig = adviseLong(DTREE,0,Signals,2) > 0;
bool SellSig = adviseShort(DTREE,0,Signals,2) > 0;

if(is(TRADEMODE)) asset("WDOK18");
if(BuySig) enterLong();
if(SellSig) exitLong();

Last edited by jmlocatelli; 04/12/18 18:47.
Re: How to trade a different asset than that used for training? [Re: jmlocatelli] #472164
04/12/18 19:14
04/12/18 19:14
Joined: Dec 2016
Posts: 43
F
Fiber Offline
Newbie
Fiber  Offline
Newbie
F

Joined: Dec 2016
Posts: 43
Edit asset name in .par file, and change name of .par file. Or copy paste content between .par files.
Same for .c files if using ML.

Last edited by Fiber; 04/12/18 19:17.
Re: How to trade a different asset than that used for training? [Re: Fiber] #472165
04/12/18 20:28
04/12/18 20:28
Joined: Oct 2017
Posts: 52
Brazil
J
jmlocatelli Offline OP
Junior Member
jmlocatelli  Offline OP
Junior Member
J

Joined: Oct 2017
Posts: 52
Brazil
Thanks fiber,

"I can change the script manually removing the optimize commands, assign the optimized values to the parameters, and change the asset name. But its a little more complicated when using machine learning."

I'm already doing this. It's prone to errors.
But could have a straightforward way.

Last edited by jmlocatelli; 04/12/18 20:28.
Re: How to trade a different asset than that used for training? [Re: jmlocatelli] #472181
04/14/18 19:34
04/14/18 19:34
Joined: Dec 2016
Posts: 43
F
Fiber Offline
Newbie
Fiber  Offline
Newbie
F

Joined: Dec 2016
Posts: 43
What if to rename WDO$D history files to WDOK18X and while training use History = "X.t6";

----
History
The last part of the file name - including extension - of the historical data files; for selecting between different sets of price histories for the same asset. If not set up otherwise, the files begin with the asset name and year number, and end with ".t6". Examples: History = "fxcm.t6" reads price history from f.i. EURUSD_2015fxcm.t6; History = ".t1" reads T1 price history from EURUSD_2015.t1. History must be set before calling asset().

Re: How to trade a different asset than that used for training? [Re: Fiber] #472374
04/23/18 18:08
04/23/18 18:08
Joined: Oct 2017
Posts: 52
Brazil
J
jmlocatelli Offline OP
Junior Member
jmlocatelli  Offline OP
Junior Member
J

Joined: Oct 2017
Posts: 52
Brazil
Tks Fiber.
It was exactly what I did to "solve" the problem.

Page 1 of 2 1 2

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