Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trade Marker Visualization

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trade Marker Visualization

    Strategy Entry/Exit Visualization
    Hello,

    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've tried this with Range Bars, Tick Bars, RangeNoGap Bars with the same results.
    I'm using the following order types:
    Code:
    [FONT=Courier New]EnterLong(DefaultQuantity, [SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]"target1"[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]);[/SIZE][/SIZE][/FONT]
    [FONT=Courier New][SIZE=2][SIZE=2][SIZE=2][SIZE=2]SetStopLoss([/SIZE][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]"target1"[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], CalculationMode.Price, Position.AvgPrice-autoBreakEvenPlusTicks*TickSize, [/SIZE][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]false[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]);[/SIZE][/SIZE] [SIZE=2][SIZE=2][SIZE=2][SIZE=2][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/FONT]
    [FONT=Courier New][SIZE=2][SIZE=2][SIZE=2][SIZE=2][SIZE=2][SIZE=2][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/FONT] 
    [FONT=Courier New][SIZE=2][SIZE=2][SIZE=2][SIZE=2][SIZE=2][SIZE=2]EnterLong(DefaultQuantity, [/SIZE][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]"target2"[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]);[/SIZE] [/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/FONT]
    [FONT=Courier New][SIZE=2][SIZE=2][SIZE=2][SIZE=2]SetStopLoss([/SIZE][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]"target2"[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], CalculationMode.Price, Position.AvgPrice-autoBreakEvenPlusTicks*TickSize, [/SIZE][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]false[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]);[/SIZE] [/SIZE][/SIZE][/SIZE][/FONT]

    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 Files
    Last edited by zeller4; 02-01-2010, 08:58 AM.

    #2
    Kirk, your charts are displaying based on 'last' price, thus not showing the bid / ask prices at which you would execute in realtime trading, therefore you see expected behavior taking place.

    Please also sync the PC clock and reboot fresh then, as the realtime executions coming in would be stamped with reference to this.

    Comment


      #3
      Thanks Bertrand,

      Is there an option setting for using the current bid or ask for the exit when the stop loss is hit (in lieu of the last price) or do I need to program as a custom exitstop or limit?

      Kirk

      Comment


        #4
        Kirk, unfortunately not for backtesting - NinjaTrader 7 will offer features to submit those to a separate bid / ask series in the future.



        For live trading and live simulation NinjaTrader would of course use the incoming Level 1 data.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, Yesterday, 01:02 PM
        0 responses
        30 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        22 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        148 views
        2 likes
        Last Post CaptainJack  
        Working...
        X