Bitcoin Forum
July 05, 2024, 01:10:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help with backtesting strategy  (Read 573 times)
nurettin (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
October 26, 2013, 04:07:42 PM
 #1

Hi

Say I want to backtest against

Values:    141 142 141 142 143
Indicator: 0     0     0     0     1

I see that my indicator rised, so let's assume this is a buy signal.
Future values are: 144, 145, 141

So how do you backtest against this?
I assume that in real world there's a delay between buy order and actual buy.
How do you account for this in backtesting?

Do you put a random delay before you buy?
Do you average next N values and see if there is profit?

Thanks
TKeenan
Hero Member
*****
Offline Offline

Activity: 874
Merit: 1000



View Profile
October 26, 2013, 05:12:04 PM
 #2

Hi

Say I want to backtest against

Values:    141 142 141 142 143
Indicator: 0     0     0     0     1

I see that my indicator rised, so let's assume this is a buy signal.
Future values are: 144, 145, 141

So how do you backtest against this?
I assume that in real world there's a delay between buy order and actual buy.
How do you account for this in backtesting?

Do you put a random delay before you buy?
Do you average next N values and see if there is profit?

Thanks
What kind of scheme are you building - that is weird
nurettin (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
October 26, 2013, 05:45:10 PM
 #3

Hi

Say I want to backtest against

Values:    141 142 141 142 143
Indicator: 0     0     0     0     1

I see that my indicator rised, so let's assume this is a buy signal.
Future values are: 144, 145, 141

So how do you backtest against this?
I assume that in real world there's a delay between buy order and actual buy.
How do you account for this in backtesting?

Do you put a random delay before you buy?
Do you average next N values and see if there is profit?

Thanks
What kind of scheme are you building - that is weird

Not sure what you're asking. Are you saying backtesting is weird?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!