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


      #3
      Hi, I am dealing with something similar. I use 20 range charts along with the Ninzaco bar status indicator (free). As shown in the attached image. I want to have buy and sell buttons for placing an order above or below the indicator which is the high/low of the current bar once it closes. Let me know if you have found a solution.

      Comment


        #4
        Hello jorisje,

        If you have an indicator with a plot, you can use that value rounded to ticksize and add a tick and then use this for a limit or stop price.

        EnterLong(MyIndicatorName().PlotName[0] + TickSize);
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by algospoke, Yesterday, 06:40 PM
        2 responses
        19 views
        0 likes
        Last Post algospoke  
        Started by ghoul, Today, 06:02 PM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        45 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        21 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        181 views
        0 likes
        Last Post jeronymite  
        Working...
        X