Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 552 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 15 of 20 1 2 13 14 15 16 17 19 20
Re: One Night Stand System [Re: RTG] #458336
03/05/16 09:10
03/05/16 09:10
Joined: Feb 2014
Posts: 181
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 181
Wow, this thread has over 16000 views. Is anyone other myself and Spin using this strategy?

Re: One Night Stand System [Re: RTG] #458339
03/05/16 13:44
03/05/16 13:44
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
If OptimalF for AUD/USD:L is 0 then only AUD/USD:S is traded, otherwise this Asset doesn't make sense at all in the Asset set. I based my decision to include an asset or not simply on the idea that there are assets for which the ONS works while for others it does not, and this idea is based on the historical prices. E.g. in my candidats' setup for trading the ONS real I only use assets with a single PF not lower than 1.5 in any simulation and an average PF of ~2.0 or above (BTW: Interestingly >50% are pairs against the JPY that seems to have a 'special iking' for the ONS). This is surely somewhat subjective and weighted by past but the opposite was to trade every available pair with a fixed lot amount and this could also be more successful in the end, who knows?
There are really a lot of views for this thread, how comes? I sometimes think about if ONS is a strategy or rather gambling, but at least it's a cool alternative to the weekend's lottery! laugh

Re: One Night Stand System [Re: RTG] #458343
03/05/16 17:48
03/05/16 17:48
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Originally Posted By: RTG
Wow, this thread has over 16000 views. Is anyone other myself and Spin using this strategy?

I've linked to it from a recent post on Financial Hacker - hope that is ok with you.

Re: One Night Stand System [Re: jcl] #458353
03/06/16 12:50
03/06/16 12:50
Joined: Feb 2014
Posts: 181
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 181
Cool.

Ive run a long only version of the mean reversion script on the S&P500 which backtests well.

Re: One Night Stand System [Re: RTG] #458463
03/11/16 14:24
03/11/16 14:24
Joined: Feb 2014
Posts: 181
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 181
USOil was entered into however 870 contracts were bought at 38.50 instead of 87. I had changed the .dta file to account for this but I assume the .dta carrying the margin value is overwritten every time a broker connection is made. So the incorrect margin value must have been reset.

That aside, I am struggling to work out why the position was closed out immediately. There is no stop set in the script Im running.

Edit: It was closed out due to margin call. The position size is 10x larger than what it should be.

The mystery solved.

When Zorro is connected to a broker, it loads the current spread and rollover values from the broker's server. When not connected, the spread and rollover values are loaded from the History\AssetsFix.dta file or from the parameter file given by AssetList.

So I need to set the margin for oil in the script.


[USOil::L1830] -696$ s0.00000 c38.49 e38.50


[197: Thu 10.03.16 00:05] 112.605
[198: Fri 11.03.16 00:05] 113.290
(AUD/USD::L) Long 0@0.7529 Entry stop
(CHF/JPY::S) Short 26@111.90 Entry stop
(EUR/JPY::S) Short 123@122.08 Entry stop
(USOil::L) Long 87@38.50 Entry stop
(USOil::L) Entry stop 38.50 hit at 03:32
[USOil::L1830] Long 87@38.50

[USOil::L1830] -696$ s0.00000 c38.49 e38.50


Last edited by RTG; 03/11/16 15:00.
Re: One Night Stand System [Re: RTG] #458466
03/11/16 16:21
03/11/16 16:21
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Mine only set up (CHF/JPY::S). In the other assets the directions of the SMAs were not the same. How did you train your strategy (WFO, StartDate, EndDate)?

Re: One Night Stand System [Re: Sphin] #458471
03/12/16 00:12
03/12/16 00:12
Joined: Feb 2014
Posts: 181
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 181
StartDate = 2005;
// EndDate = 20160226;
NumWFOCycles = 5;

Re: One Night Stand System [Re: RTG] #458517
03/16/16 17:53
03/16/16 17:53
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
I snyced mine but it didn't set up a trade in Oil last Friday, not even in backtest. Was it successful? What are your USOil parameters? Mine are

USOil 13.1 70.3 300=> 3.295

Re: One Night Stand System [Re: Sphin] #458520
03/17/16 00:59
03/17/16 00:59
Joined: Feb 2014
Posts: 181
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 181
Well my position was closed almost immediately due to a margin call. This was due to the position size being 100x larger than intended and not having enough equity to maintain it.

I have stopped and retrained mine since that trade. I had manually set the fast SMA to 7 and the slow one to 45.

Re: One Night Stand System [Re: RTG] #458537
03/18/16 14:27
03/18/16 14:27
Joined: Feb 2014
Posts: 181
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 181
Lookback period (120 bars).
[197: Fri 18.03.16 00:05] 85.541
(AUD/JPY::L) Long 210@86.42 Entry stop
(AUD/USD::L) Long 0@0.7660 Entry stop
(EUR/USD::L) Long 8@1.1344 Entry stop
(USD/CHF::S) Short 26@0.9650 Entry stop
(USD/JPY::S) Short 0@110.66 Entry stop
(USOil::L) Long 1@40.58 Entry stop
(AUD/USD::L) Entry stop 0.7660 hit at 01:07
(AUD/USD::L) Skipped: Lots/Margin = 0
(USOil::L) Entry stop 40.58 hit at 10:39
[USOil::L7578] Long 1@40.58

Page 15 of 20 1 2 13 14 15 16 17 19 20

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