[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/biz/ - Business & Finance

Search:


View post   

>> No.53993120 [View]
File: 83 KB, 816x669, backtest.png [View same] [iqdb] [saucenao] [google]
53993120

Got the most basic version of my backtester finished. It's pretty fucking crude but my goal is to fully automate a bruteforce backtesting beyond what websites allow.

Anyways, as a proof of concept
>Wait until 5 minutes before markets close to buy or sell
>Look at N candles back, equal to Offset, to compare % changes
>If the close is >= entry% (eg up 1 or 2% from the other candle) then buy
>If the close is <= entry% (eg down 1 or 2% from the other candle) then short
>If the price moves against you by exit%, then close all positions

This was done on the SPY over the last 500 sessions, and like I said is very crude, but this is a great starting point and I can't wait to see how this looks a month or two from now (eg, being able to tweak multiple variables and indicators)

Navigation
View posts[+24][+48][+96]