Skip to content
Prev 12354 / 15274 Next

stochastic oscillator OBOS - intraday data & optimization

Hi IIya,


I have run optimizations for GBPUSD 30min data, 3528 (8*21*21) combinations. Thereafter, I divided the tradeStats on the?nSlowD variable and generated heat-maps?& 3D-Graphs for various parameters, viewing lowThresh?vs highThresh.?Maybe there's a better way?of doing this.?I have checked the values given?via the optimizations?with an individual run of the strategy and the results equate. Please check???As of only?10 days of data,?the strategy does not generate many trades. It's up to the reader to?determine values for nSlowD, lowThresh?& highThresh given the plethora of graphs; indeed?rationale for 'optimal'?values along these lines is given on p51-p55? Jaekle & Tomasini (2009). With more data I'd like to do an IS vs OOS test,?in addition to a?periodic optimized walk-forward,?that's for later; of course?being mindful of?the pitfalls of over-optimization and non-parsimony. 


Question:


(a) Are the inequalities correct with regard to add.distribution ?

The inequalities?in the add.distributions for the?long-only GBPUSD (enter a trade?buy GBP sell USD; and to exit a trade sell GBP and buy USD) strategy are:
slowD.stoch.ind.gt.20
slowD.stoch.ind.gte.80


Likewise, to include a short-side?(enter a trade?sell GBP?buy USD; and to exit a trade?buy GBP and?sell USD)?the add.distributions would be:
slowD.stoch.ind.lte.20
slowD.stoch.ind.lt.80



Attached are:
(a)?program for?calculating the optimizations?& generating the?graphs. NB: half-way in?the program the reader can load the RData tradeStats data and simply generate the graphs?not?running the optimizations.
(b) RData file with tradeStats of 3528 optimizations


Please check if all is okay with optimizations. If there's a better way of graphing be free to make?the improvements.


Thereafter?I'd like?to get the timefilter optimized. 



Amarjit





 
 From: amarjit chandhial <a.chandhial at btinternet.com>
To: Ilya Kipnis <ilya.kipnis at gmail.com>; "r-sig-finance at r-project.org" <r-sig-finance at r-project.org> 
Sent: Monday, 21 April 2014, 8:03
Subject: Re: [R-SIG-Finance] Fw: stochastic oscillator OBOS - intraday data & optimization
  


Hi IIya,


Have reinstalled quantstrat and I get results! Hooorrraaayyy ;-)

I will try on GBPUSD, produce graphs, and then try a relevant intraday timefilter with optimization.


Amarjit

?