Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OrderMethods explanation

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

    OrderMethods explanation

    Hi there.
    I watched two webinars, have read several times section of order methods and I totally can't understand how order mechanism works.
    Please help me to understand.

    As a signal I draw a black dot on top or bottom of shadow.
    To construct one signal I need two bars.


    The logic is :
    If the bar 1 is up bar - wait next bar;
    If the bar 2 is up and greater than 10 pips - we draw a signal (black dot) on the bottom of the first bar shadow (Low[1]).

    Here the example what I'd like to reach


    1. We get an signal and place limit order on the price level of this signal.
    2. The market go down and trigger our limit order of signal 1.
    3. The market go up and we get another signal.
    A take profit of signal 1 was reached - and we put new limit order of this signal again.
    4. The market go down and trigger our limit order of signal 2.
    5. The market go down a bit and trigger our limit order of signal 1 (that was placed after take profit).

    and so on...

    The questions are:
    1. How to place a buy limit order in this example?
    2. How to place target profit and stop loss for this limit order?
    3. How to track when we get a stop loss? I need to cancel signals when stop loss for this signal was reached.

    Thank you.

    #2
    Hello romulko,

    1. If you are starting out with NinjaScript I would recommend using the Strategy Wizard as it will have a simple point and click interface that you may use to have a strategy do basic items like entering a position and setting profit targets and stop loss orders.

    Here is a link to our help guide that describes "How to enter a market position" using a limit order that you may view.


    2. After the Conditions and Actions window in the Strategy Wizard you have the option to set your stop loss and profit target orders.

    3. This is an item that you would have to custom code into your strategy. First, you may want to make sure that you have items 1 and 2 down.

    Once you have those methods down, we have a reference sample that you may view that will monitor the stop loss and profit target orders so that you may add in your custom logic at the following link.




    Let us know if you have any questions.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    656 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    371 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X