Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
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
1 registered members (AndrewAMD), 533 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Trouble backtest Option trading strategies #465064
03/28/17 16:22
03/28/17 16:22
Joined: Oct 2016
Posts: 8
R
robotekkers Offline OP
Newbie
robotekkers  Offline OP
Newbie
R

Joined: Oct 2016
Posts: 8
Hello all,

I have used both the OptionSimulate and the OptionSellRandom codes from the Algorithmic Options Trading article on the financial hacker to recreate the random option sell backtest, but I am unable to replicate the results from the article.

The closest I have gotten to is as shown below:

option_fh compiling................
Test: option_fh SPY 2012..2017
Assets assetsIB
Profit 0$ MI 0$ DD 0$ Capital 0$
Trades 256 Win 0.0% Avg -1.$p Bars 24
AR 0% PF -1.#J SR 0.00 UI 0% R2 1.00

- I have installed R on my PC, and have linked the Rterm in the Zorro.ini file.
- I have installed the RQuantlib package into the R terminal
- I have ensured that the dataload function opens the exact same "SPY_Options.t8" created using OptionsSimulate
- I include both r.h and contract.c files in the scripts

Has anyone else had a similar problem in the past? Heck, if someone can attach/ link to a copy of their setup that is working fine, I would appreciate that as well!

Re: Trouble backtest Option trading strategies [Re: robotekkers] #465068
03/28/17 19:20
03/28/17 19:20
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Per the comments section, jcl said there was an error in the script. Take a look.

Re: Trouble backtest Option trading strategies [Re: AndrewAMD] #465069
03/28/17 19:41
03/28/17 19:41
Joined: Oct 2016
Posts: 8
R
robotekkers Offline OP
Newbie
robotekkers  Offline OP
Newbie
R

Joined: Oct 2016
Posts: 8
Thank you Andrew. I've seen the comments and have now fixed the problem.


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