NexusFi: Find Your Edge


Home Menu

 





Backtesting with TS intrabarordergeneration


Discussion in TradeStation

Updated
      Top Posters
    1. looks_one highlyimprobable with 6 posts (5 thanks)
    2. looks_two mtzimmer1 with 5 posts (3 thanks)
    3. looks_3 kevinkdog with 2 posts (3 thanks)
    4. looks_4 mattjack9708 with 1 posts (0 thanks)
    1. trending_up 3,679 views
    2. thumb_up 11 thanks given
    3. group 4 followers
    1. forum 14 posts
    2. attach_file 0 attachments




 
Search this Thread

Backtesting with TS intrabarordergeneration

  #11 (permalink)
highlyimprobable
ridgewood, NJ
 
Posts: 13 since Aug 2019
Thanks Given: 8
Thanks Received: 6


mtzimmer1 View Post
Interesting. Make sure you are not fooling yourself with the backtest. Watch it live on SIM and see if you can figure out the glitch.

I completely understand the desire to keep proprietary code private, BUT I am happy to take a look at the logic of your strategy if that would be any benefit to you. Feel free to PM me.

-Zimmer

You are absolutely right about the SIM (Labor Day weekend is killing me with curiosity).

It would be great for second eyes to see what is going on, but I'll have to run that by my business partner. Thank you so much for all your help!

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Quant vue
Trading Reviews and Vendors
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
 
  #12 (permalink)
mattjack9708
Wisconsin
 
Posts: 28 since Sep 2019
Thanks Given: 8
Thanks Received: 7

This does not sound easy

Reply With Quote
  #13 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


Don't use intrabar order generation if you want an accurate backtest

Use 1 minute Look Inside Bar backtesting for most accuracy

Don't use SIM for anything other than verifying that orders are firing correctly. Trying to measure and compare performance results with TS sim is a TOTAL waste of time.

If you set up your strategy logic correctly, and avoid certain keywords (setpercenttrailing, for example), you should get a good match between backtest and live real money trading, assuming you have accurate results for slippage

It seems daunting at first, but once you get it, it becomes second nature.

Start with a simple strategy with "buy next bat at market" "sell next bar at market" etc. That will always work, and give excellent match between backtest and live (after accounting for slippage), except in very rare occasions.

Follow me on Twitter Reply With Quote
Thanked by:
  #14 (permalink)
samsssrs
London, UK
 
Posts: 2 since Jul 2022
Thanks Given: 1
Thanks Received: 0


kevinkdog View Post
If you set up your strategy logic correctly, and avoid certain keywords (setpercenttrailing, for example), you should get a good match between backtest and live real money trading, assuming you have accurate results for slippage

Why do you say to avoid setpercenttrailing? I am experimenting with it. With look-inside-bar-backtesting turned off, it gives a great backtest. With it turned on, the backtest sucks. So I came here looking for some answers.

If not percent trailing, what other options are more reliable?

Reply With Quote
  #15 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


samsssrs View Post
Why do you say to avoid setpercenttrailing? I am experimenting with it. With look-inside-bar-backtesting turned off, it gives a great backtest. With it turned on, the backtest sucks. So I came here looking for some answers.

If not percent trailing, what other options are more reliable?

The setpercentrailing and setdollartrailing keyword only work correctly with 1 tick resolution for Look Inside Bar Backtesting. With any other setting it is inaccurate. Tradestation explains why on their forum somewhere (sorry, I do not have link). I would recommend creating your own trailing stop, you can use keywords maxpositionprofit and openpositionprofit to do so.

Follow me on Twitter Reply With Quote
Thanked by:




Last Updated on December 9, 2022


© 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