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 4,585 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
  #1 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 478 since Jun 2009
Thanks Given: 1,419
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:	426
Size:	172.3 KB
ID:	7387  
Started this thread

Can you help answer these questions
from other members on NexusFi?
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Daytrading to swingtrading
Traders Hideout
Trump Media to sell instant access to market-moving soci …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
FootPrintV2 Chart for NT8
1 thanks
BERN ALGOS algo trading journal
1 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
  #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: 478 since Jun 2009
Thanks Given: 1,419
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
 R.I.P. 1977-2026 
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,586

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

Mike




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 X Visit my NexusFi Trade Journal
  #6 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 478 since Jun 2009
Thanks Given: 1,419
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


© 2026 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 - Downloads - Top
no new posts