Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

pending order 1 tick above or below the bars predicted high / low

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

    pending order 1 tick above or below the bars predicted high / low

    Hello,

    My strategy runs off a Range( 8 ) chart The strategy involves placing Buy/Sell Stop orders one tick above/below the signal bars high/low.

    My problem:

    In fast markets the strategy will often get an invalid order message because the market has moved too fast.

    What I would like to do:

    Before the current bar, closes, if the strategy has a valid signal, I would like to place a pending order 1 tick above/below the bars predicted high/low to get in the trade on the next bar.

    do you know a seller who has this? the ideal would be to just click on a button and the pending order appears 1 tick above or below the bars predicted high / low.


    #2
    Hello gravdigaz6,

    I wouldn't have any advice for predicting the high or low.

    But to add 1 tick to the current bars high or low.

    High[0] + 1 * TickSize.

    To verify the price is valid you can add or subtract to the current ask or bid.

    double limitPrice;

    if (myPrice > GetCurrentAsk() + 1 * TickSize)
    limitPrice = myPrice;
    else
    limitPrice = GetCurrentAsk() + 1 * TickSize;
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by JodieThur, Today, 11:11 PM
    0 responses
    1 view
    0 likes
    Last Post JodieThur  
    Started by cryfgg, Today, 06:01 PM
    0 responses
    18 views
    0 likes
    Last Post cryfgg
    by cryfgg
     
    Started by Tremblinghandtrader, Today, 04:56 PM
    0 responses
    33 views
    0 likes
    Last Post Tremblinghandtrader  
    Started by MattD888, Today, 02:38 PM
    1 response
    29 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by trader3000a, Today, 02:13 PM
    1 response
    37 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X