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 PeakTry, Today, 10:49 AM
    0 responses
    2 views
    0 likes
    Last Post PeakTry
    by PeakTry
     
    Started by llanqui, Today, 10:32 AM
    0 responses
    4 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by StockTrader88, 03-06-2021, 08:58 AM
    45 responses
    3,992 views
    3 likes
    Last Post johntraderuser2  
    Started by TAJTrades, Today, 09:46 AM
    0 responses
    8 views
    0 likes
    Last Post TAJTrades  
    Started by rhyminkevin, Yesterday, 04:58 PM
    5 responses
    62 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Working...
    X