Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by 7th_zorro. 04/16/24 13:19
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
6 registered members (7th_zorro, Aku_Aku, VoroneTZ, 11honza11, ricky_k, Nymphodora), 427 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 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,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
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,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
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,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
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.
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