Backtesting confusion - NinjaTrader | futures io social trading
futures io futures trading


Backtesting confusion
Updated: Views / Replies:246 / 3
Created: by mastertrader31 Attachments:4

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

Backtesting confusion

  #1 (permalink)
Trading Apprentice
Tallinn Estonia
 
Futures Experience: None
Platform: ninja
Favorite Futures: es
 
Posts: 3 since Jun 2016
Thanks: 3 given, 0 received

Backtesting confusion

I am backtesting a sample strategy using vwap indicator. It basically buys es if close is above 3 points. Stops if stoploss is reached 8 points or Take profit is reached also 8 points. But my backtest shows what seems to me intrabar buying and stoping. How can I make it buy and sell on bar close?

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Attached Files
Register to download File Type: cs vwapLong.cs (17.8 KB, 4 views)
Register to download File Type: cs VitVWAP.cs (6.1 KB, 3 views)
Reply With Quote
 
  #2 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 1,981 since Sep 2013
Thanks: 1,396 given, 2,961 received
Forum Reputation: Legendary


mastertrader31 View Post
I am backtesting a sample strategy using vwap indicator. It basically buys es if close is above 3 points. Stops if stoploss is reached 8 points or Take profit is reached also 8 points. But my backtest shows what seems to me intrabar buying and stoping. How can I make it buy and sell on bar close?

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

try to run your strategy in 'replay' mode..
what does that give ?

Reply With Quote
 
  #3 (permalink)
Trading Apprentice
Tallinn Estonia
 
Futures Experience: None
Platform: ninja
Favorite Futures: es
 
Posts: 3 since Jun 2016
Thanks: 3 given, 0 received


Sry about the delay. Had to learn market replay. So anyway I tested with it and it shows the same result. Seems like its closing on every tick not bar
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #4 (permalink)
Elite Member
Denver, CO
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: ES
 
NinjaTrader's Avatar
 
Posts: 1,225 since May 2010
Thanks: 147 given, 1,838 received


mastertrader31 View Post
I am backtesting a sample strategy using vwap indicator. It basically buys es if close is above 3 points. Stops if stoploss is reached 8 points or Take profit is reached also 8 points. But my backtest shows what seems to me intrabar buying and stoping. How can I make it buy and sell on bar close?

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

At a quick glance, this can happen if your stops and profit targets are tight, within the range of the entry bar. NinjaTrader 8 has been improved in this area.

Reply With Quote

Reply



futures io > > > > Backtesting confusion

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May

An overview of volumetric analytical tools w/Sergey Sokolov @ PTMC

Elite only

John Hoagland (TBA)

Elite only

FuturesTrader71 Extended Ask Me Anything (AMA)

Elite only

Pete @ Jigsaw Trading (TBA)

Elite only

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Backtesting API/library - externalize backtesting from your trading platform andby Elite EasyLanguage Automated Trading 1 July 26th, 2016 09:25 PM
ZB calculation confusion.... mdsvtr Bonds and Interest Rates Trading 7 May 28th, 2015 08:27 AM
Asia open confusion Joseph689 Currency Futures 3 March 13th, 2015 08:30 PM
ThinkorSwim DOM Confusion purveyor ThinkOrSwim 6 March 2nd, 2015 02:27 AM
Confusion Still Prevails Over Greek Leadership Quick Summary News and Current Events 0 November 4th, 2011 07:10 AM


All times are GMT -4. The time now is 09:38 AM.

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-05-29 in 0.09 seconds with 20 queries on phoenix via your IP 54.162.19.123