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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    591 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    553 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X