Day Trade Script Backtesting Questions - ThinkOrSwim Programming | futures io social day trading
futures io futures trading


Day Trade Script Backtesting Questions
Updated: Views / Replies:664 / 0
Created: by ArbitrageCapital Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Day Trade Script Backtesting Questions

  #1 (permalink)
Trading Apprentice
San Francisco
 
Futures Experience: None
Platform: TOS
Favorite Futures: Equity
 
Posts: 1 since Mar 2016
Thanks: 0 given, 0 received

Day Trade Script Backtesting Questions

Hi All,

I want to write a code that allows me to backtest a day trading strategy. To be specific, I am concerned with just the first 4 bars of each trading day using the 10 minute bar (09:30 - 10:00). The issue I have is the code I have will produce meaningful results if I ran the code today for todays trading session but If I ran the code today for yesterdays price action, the code won't produce meaningful results. I think the issue is with the date parameter?

How can I adjust the code such that the code will only look at the price action of the 0930, 0940, 0950, and 10:00
bar for any trading day? Ideally, I'd like to just change the date parameter when I do my backtesting.


Here is my code. Its a simple inside bar setup. I want to be able to back test the code for day trades using the 10 minute bar. Thanks!


Input Bar_1 = 3;
Input Bar_2 = 2;
Input Bar_3 = 1;
Input Bar_4 = 0;


Input Vol = Volume;
Input Price = Close;
Input High_P = High;
Input Low_P = Low;


Input Length = 26;
Input Increase = 50;

Def AVG_Vol = average(Vol, Length);
Def Change_Vol = 100*(Vol[Bar_1] / Avg_Vol - 1);


Def RegularMarketHours = secondsFromTime(930) >= 0 and secondsTillTime(1600)>=0;

Def TradingDay = GETYYYYMMDD() ;

Plot Scan;


Scan =


Price[Bar_4] < High_P[Bar_1]
and Price[Bar_4] > Low_P[Bar_1]

and Price[Bar_3] < High_P[Bar_1]
and Price[Bar_3] > Low_P[Bar_1]

and Price[Bar_2] < High_P[Bar_1]
and Price[Bar_2] > Low_P[Bar_1]

and Change_Vol > Increase
AND RegularMarketHours
AND TradingDay


;

Reply With Quote

Reply



futures io > > > > > Day Trade Script Backtesting Questions

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit Strategy backtesting based on time of day blenderking NinjaTrader Programming 4 July 2nd, 2016 11:23 AM
Yet another newbie day trading questions jp94 Beginners and Introductions 14 June 22nd, 2014 05:50 PM
Before You Take That Trade: Strategic and Tactical Questions Anagami Psychology and Money Management 7 April 27th, 2013 11:48 AM
An alert that will talk to me during the day with trade questions, help? hector24 NinjaTrader 35 July 3rd, 2012 08:47 AM
Multicharts backtesting and optimization ramblings/questions.. benharrell Elite EasyLanguage Automated Trading 4 June 28th, 2012 07:25 PM


All times are GMT -4. The time now is 02:48 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-16 in 0.06 seconds with 19 queries on phoenix via your IP 54.163.209.109