• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to reference to the previous order entry price

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

    How to reference to the previous order entry price

    I want to prevent new entries in the event that price has not changed too much.

    For example, if the previous entry was long @ 2000.00 I want to prevent any other long entries unless the close[0] is not with x points lower than the previous entry.

    Can someone please give me an advice?

    Thanks.

    #2
    Hello nikolaalx,

    Thank you for your post.

    You would track the filled price level via OnExecution and store the value in a double for use in the next entry.

    For information on OnExecution please visit the following link: http://www.ninjatrader.com/support/h...nexecution.htm

    For information on the events that you can call please visit the following link: http://www.ninjatrader.com/support/h...iexecution.htm

    Please let me know if you have any questions.
    Patrick H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by IanC28, 03-27-2020, 10:20 AM
    6 responses
    26 views
    0 likes
    Last Post jim1234
    by jim1234
     
    Started by aramtrader, Yesterday, 03:05 PM
    7 responses
    38 views
    0 likes
    Last Post woodie1
    by woodie1
     
    Started by renehtx, Today, 03:51 PM
    2 responses
    14 views
    0 likes
    Last Post renehtx
    by renehtx
     
    Started by eidog2020, Today, 03:31 PM
    0 responses
    6 views
    0 likes
    Last Post eidog2020  
    Started by Lowerlevel1, Today, 01:34 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X