NexusFi: Find Your Edge


Home Menu

 





Strategy Entry/Exit Visualization


Discussion in NinjaTrader

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




Closed Thread
 
Search this Thread

Strategy Entry/Exit Visualization

  #1 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404

Hey Strat Programmers!
Please view the attached screenshot for a couple trade markers and let me know if this is expected behavior or not.

The entry/exit marker plotted on a candle is shown above the high or below the low of that candle. The actual high / low of the following candle would have allowed the order to fill.

I'm using the following order types:
 
Code

EnterLong(DefaultQuantity, "target1");
SetStopLoss("target1", CalculationMode.Price, Position.AvgPrice-autoBreakEvenPlusTicks*TickSize, false);
 
EnterLong(DefaultQuantity, "target2");
 

SetStopLoss("target2", CalculationMode.Price, Position.AvgPrice-autoBreakEvenPlusTicks*TickSize, false);
 

If I understand right, this is part of the NT internal order handling. If there's something I need to do differently in my code (ie, by verifying High[0] above or Low[0] below) or an option that needs set differently, please let me know.

Thanks for your help.
Kirk

Attached Thumbnails
Click image for larger version

Name:	6E 03-10  1_29_2010 (6 RangeNoGap).jpg
Views:	337
Size:	172.3 KB
ID:	7387  
Started this thread

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Quantum physics & Trading dynamics
The Elite Circle
About a successful futures trader who didnt know anythin …
Psychology and Money Management
What broker to use for trading palladium futures
Commodities
 
  #3 (permalink)
 
sefstrat's Avatar
 sefstrat 
Austin, TX
 
Experience: Advanced
Platform: NT/Matlab
Broker: Interactive Brokers
Trading: FX majors
Posts: 285 since Jun 2009
Thanks Given: 20
Thanks Received: 768


is this simulation or real trades?

if it is real trades and you are using market orders then it is quite common for the entry signal to be generated on one bar but the price has moved outside the bar by the time you are filled, however since the signal was generated on that bar ninja still draws the entry there.

  #4 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404

it's simulation on a strategy and I'm trying to modify the lines of code if that will help...

Started this thread
  #5 (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,469 since Jun 2009
Thanks Given: 33,246
Thanks Received: 101,669

Do you get the same behavior using a normal Range chart?

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
  #6 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404

yes, the same thing happens with Range charts in realtime on sim.

I'll try tick charts next

kz

Started this thread
  #7 (permalink)
 
Keen4Snow's Avatar
 Keen4Snow 
Destin, FL / EU (Brno, Czech Rep.)
 
Experience: Advanced
Platform: R|Trader, NinjaTrader, JForex
Trading: CL, NQ, TF, 6E
Posts: 20 since Apr 2010
Thanks Given: 2
Thanks Received: 15

Hey guys, did you already find out what's wrong with those trade marks in chart?
It borders me too. I have written to NT support with no results.





Closed Thread



Last Updated on November 8, 2012


© 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