NexusFi: Find Your Edge


Home Menu

 





multiple trades same bar


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Quick Summary with 1 posts (0 thanks)
    2. looks_two ABCTG with 1 posts (2 thanks)
    3. looks_3 tpredictor with 1 posts (2 thanks)
    4. looks_4 GuppyDRV with 1 posts (0 thanks)
    1. trending_up 1,373 views
    2. thumb_up 4 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 1 attachments




 
Search this Thread

multiple trades same bar

  #1 (permalink)
 GuppyDRV 
Seattle
 
Experience: Intermediate
Platform: MultiCharts 10
Broker: InteractiveBrokers, IQFeed
Trading: ES
Posts: 58 since Nov 2015
Thanks Given: 19
Thanks Received: 7

Hello All,

On certain random days (I think Random) while using the Walk Forward Optimization or Back test my strategy will generate multiple trades on the same bar.

Basically, it will take a long trade that enters and exits at the open and then take whatever other trade that would have normally happened on that bar close. I posted a picture showing 1.....the multiple trade and 2....what a normal trade would look like.

Any ideas without having to think to hard. Am I doing something stupid simple wrong or might I need to post some code. Either way I appreciate the help.

I tried searching other threads and found nothing relevant but if there is one just a point in the right direction is all I'll need.

Thank,

GuppyDRV

Attached Thumbnails
Click image for larger version

Name:	Multiple Trades.PNG
Views:	183
Size:	44.1 KB
ID:	226332  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627


GuppyDRV,

the explanation is most likely in your code. Check when and why these orders have been triggered (by using print
statements for example for your conditions).

Regards,

ABCTG


GuppyDRV View Post
Hello All,

On certain random days (I think Random) while using the Walk Forward Optimization or Back test my strategy will generate multiple trades on the same bar.

Basically, it will take a long trade that enters and exits at the open and then take whatever other trade that would have normally happened on that bar close. I posted a picture showing 1.....the multiple trade and 2....what a normal trade would look like.

Any ideas without having to think to hard. Am I doing something stupid simple wrong or might I need to post some code. Either way I appreciate the help.

I tried searching other threads and found nothing relevant but if there is one just a point in the right direction is all I'll need.

Thank,

GuppyDRV


Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 tpredictor 
North Carolina
 
Experience: Beginner
Platform: NinjaTrader, Tradestation
Trading: es
Posts: 644 since Nov 2011

This can happen if you use an indicator that is set to calculate/generate trades intrabar. Also, if you use time based entries/exits and you don't exclude last hour, it might happen. It could also be the result of a value being set to true and not resetting. It looks like you are taking longs and shorts. This could be the result of an indicator that crosses both thresholds in the same session. If you have limit orders, you may want to make sure that the last order is closed.

Reply With Quote




Last Updated on February 6, 2017


© 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