NexusFi: Find Your Edge


Home Menu

 





Scanner/backtest question


Discussion in Traders Hideout

Updated
    1. trending_up 1,196 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

Scanner/backtest question

  #1 (permalink)
Roddog
Birmingham Alabama USA
 
Posts: 1 since Jun 2018
Thanks Given: 1
Thanks Received: 0

First post, been lurking for a few weeks.
Old school guy here looking for a quick and dirty way to do a scan and backtest.
Example of what I知 looking for,
How many times has XYZ stock been down 4 days in row for the last xx years (the longer the better)?
What was % return of XYZ stock the following day after being down 4 days in a row? % return 3 days after being down 4 days?

This is a rough example of what I am looking for but inputs would change to maybe down 3 days etc etc,,

Being a tad on the older side and not wanting to learn python at this stage does anyone know how to flesh this out ?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
About a successful futures trader who didnツエt know anyth …
Psychology and Money Management
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
 
  #2 (permalink)
 bchip 
Torino, Italy
 
Experience: Advanced
Platform: TradeStation
Trading: ES,YM,CL,GC
Posts: 132 since Sep 2017
Thanks Given: 160
Thanks Received: 116


Roddog View Post
First post, been lurking for a few weeks.
Old school guy here looking for a quick and dirty way to do a scan and backtest.
Example of what I知 looking for,
How many times has XYZ stock been down 4 days in row for the last xx years (the longer the better)?
What was % return of XYZ stock the following day after being down 4 days in a row? % return 3 days after being down 4 days?

This is a rough example of what I am looking for but inputs would change to maybe down 3 days etc etc,,

Being a tad on the older side and not wanting to learn python at this stage does anyone know how to flesh this out ?

To do some analysis like this would either be done in excel or in python these days.

Another alternative is dependant on which broker you are with
Tradestation, Metastocks, Metatrader all have their own engine you can test with.
There's also Amibroker which is seperate.

Example of the code would be as simple as
if Close[0] < Open[0] and Close[1] < Open[1] and Close[2] < Open[2] and Close[3] < Open[3] then
buy 1 contracts next bar at market;

Reply With Quote




Last Updated on May 19, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts