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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cls71, Today, 04:45 AM
    0 responses
    1 view
    0 likes
    Last Post cls71
    by cls71
     
    Started by mjairg, 07-20-2023, 11:57 PM
    3 responses
    213 views
    1 like
    Last Post PaulMohn  
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    4 responses
    544 views
    0 likes
    Last Post PaulMohn  
    Started by GLFX005, Today, 03:23 AM
    0 responses
    3 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Started by XXtrader, Yesterday, 11:30 PM
    2 responses
    12 views
    0 likes
    Last Post XXtrader  
    Working...
    X