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 sjeffblack, Today, 01:22 PM
    2 responses
    12 views
    0 likes
    Last Post sjeffblack  
    Started by Kicks.Spin, Today, 01:24 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by JLSwin, Today, 01:07 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by dgee949, Today, 12:11 PM
    4 responses
    20 views
    0 likes
    Last Post dgee949
    by dgee949
     
    Started by jalro, Today, 10:25 AM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X