NexusFi: Find Your Edge


Home Menu

 





Scanner/backtest question


Discussion in Traders Hideout

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




 
Search this Thread
  #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?
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
Would a node-based workflow for automated trading be useful?
Traders Hideout
Datafeed for Atas
Platforms and Indicators
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
FootPrintV2 Chart for NT8
1 thanks
BERN ALGOS algo trading journal
1 thanks
Diary of a simple price action trader
1 thanks
Afternoon-close session
1 thanks
  #2 (permalink)
 bchip 
Torino, Italy
 
Experience: Advanced
Platform: TradeStation
Trading: ES,YM,CL,GC
Posts: 132 since Sep 2017
Thanks Given: 160
Thanks Received: 117


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


© 2026 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 - Downloads - Top
no new posts