NexusFi: Find Your Edge


Home Menu

 





backtesting intraday data


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one crazybears with 2 posts (0 thanks)
    2. looks_two Big Mike with 1 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 shadrock55 with 1 posts (0 thanks)
    1. trending_up 4,303 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

backtesting intraday data

  #1 (permalink)
 crazybears 
Alesia E.U.
 
Experience: Intermediate
Platform: Sierra chart
Trading: Futures
Posts: 168 since Feb 2011
Thanks Given: 146
Thanks Received: 115

Hello
I'm struggling with a piece of code about testing intraday strategy
using no-time bar like ticks -Volume-range- bar, you could have an order filled into a bar that it was formed in less than 30 seconds.
I Think this isn't possible or better I would delete these trade.
When it happens i've set in strategy to exit at the close of bar,but i'm not able to delete this kind of trade.
I'd delete either the gain/loss and commision paid from NetProfit.
a big issue is when there are more bar with time less than 1 minute. i can't refer to the correct bar

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
About a successful futures trader who didnt know anythin …
Psychology and Money Management
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #3 (permalink)
 crazybears 
Alesia E.U.
 
Experience: Intermediate
Platform: Sierra chart
Trading: Futures
Posts: 168 since Feb 2011
Thanks Given: 146
Thanks Received: 115


I tested some strategieswith intraday data , on rangebars volume bars,ticks bars
.all is ok but i saw that sometime, foremost when there is fast market condition, some bars are being formed less then 1 minute , sometime are being formed in few seconds.
I've looked for skipping these trades but I've been only capable to close this trades in the close of the bar.
possible solutions can be to export data into excel and use a macro to delete or skipping these trade. someone knows if it is possible,because i don't know excel language .

Started this thread Reply With Quote
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,465 since Jun 2009
Thanks Given: 33,242
Thanks Received: 101,663

I don't know about deleting it after the fact, but you can try to not take it in the first place. News events will generate many bars in rapid succession, check the Time_s[0] from bar to bar and don't trade when say the last 2-3 bars print faster than 2 seconds apart.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
shadrock55
Marietta, GA U.S.A
 
Posts: 9 since Mar 2011
Thanks Given: 0
Thanks Received: 4

Put a tick chart as data 1 and the timeframe you are trading in data 2. That way you see every traded tick, but take signals from your preferred time frame. Its probably intermediate level programming to do it.

If you are using TradeStation, it might present a problem because you can't mix time based bars with advanced bar types or tick charts in Data1 and Data2.

Reply With Quote




Last Updated on April 4, 2011


© 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