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


Backtesting confusion
Started: by mastertrader31 Views / Replies:209 / 3
Last Reply: 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,830 since Sep 2013
Thanks: 1,309 given, 2,753 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,211 since May 2010
Thanks: 144 given, 1,818 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)

PTMC Protrader Platform First Look w/Sergey Sokolov

Elite only

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only

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

April

Process above all else w/Anthony Crudele @ Futures Radio Show

Elite only

Machine Learning - Quantitative Trading w/Martin Froehler @ Quantiacs

Elite only

Market Dynamics w/Peter Davies @ Jigsaw Trading

Elite only

Ask Me Anything w/Patrick Rooney @ Trading Technologies

Apr 18

Ask Me Anything w/FuturesTrader71

Apr 19

Machine Learning w/Kris Longmore

Elite only

Market Analysis w/Dave Forss

Apr 25

Introducing iSystems with Stage 5 Trading

Apr 27
     

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 05:56 PM.

no new posts
Page generated 2017-03-25 in 0.09 seconds with 20 queries on phoenix via your IP 54.205.210.125