Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Channel

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

    Channel

    Dear sir,

    How can I do this:

    if the price it´s in the channel determinate by Swing Indicator, and I would like send a BuyStop order at Swing High and a SellStop Order at Swing Low simultaneously.

    I've trying this:

    picosuperior = Swing(NBarras).SwingHigh[0];
    picoinferior = Swing(NBarras).SwingLow[0];
    if((Position.MarketPosition == MarketPosition.Flat)
    {
    EnterLongStop(picosuperior);
    EnterShortStop(picoinferior;
    }
    In this case only BuyStop Orders are sents
    I've trying set a two differents conditions for buy or sell as:

    if((picosuperior-Close[0])<(Close[0]-picoinferior))
    {
    EnterLongStop(picosuperior);
    }
    if ((picosuperior-Close[0])>(Close[0]-picoinferior))
    {
    EnterShortStop(picoinferior);
    }

    But don't work properly because in example if the actuall barr send a sell stop order and in the next barr the market reverse quickly and SwingHigh is surpassed, not enough time to modify order and can't enter in long position.

    Can you hep me?
    Thank you in advance.
    Luis Olivares
    Pd. Excuse me for my english

    #2
    Currently, submitting two entry orders to open a position is not supported, this is why the second order is ignored. You can verify that via the Control Center Log tab.

    More information can be found on Internal Order Handling rules at the bottom of the page that the following link references.



    For now, the options are:

    - Self monitor the price for your upper/lower support areas and submit market orders when either price is penetrated
    - Run two separate strategies one for long, the other for short
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    84 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    66 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    58 views
    0 likes
    Last Post CarlTrading  
    Working...
    X