Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Obtaining Entry Signal for a Position

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

    Obtaining Entry Signal for a Position

    Hi all

    Is there a way to easily obtain the entry signal associated with currently open positions?

    I'm developing a strategy that has two types of entry signals, say Entry A and Entry B. Each of these have their own stop loss and profit target rules that are updated after every bar.

    If I have an existing Entry A position open, and the entry criteria is triggered for Entry B, I would like to be able to just start applying my Entry B stop loss and profit target rules to the existing Entry A positions. For this to happen, I need to create a List containing the entry signals associated with open positions, so that when I update Stop Loss, the Stop Loss associated with the entry signals are correctly updated.

    Any ideas / suggestions are greatly appreciated
    Jan

    #2
    Hello,

    Generally, you would use OnExecutionUpdate to either gather orders you execute or do other logic like apply for protective entries. You could use this override to check for filled orders and append the filled orders to a list or do other logic when you enter a position. We have a sample that shows the usage of OnExecutionUpdate and OnOrderUpdate here: http://ninjatrader.com/support/forum...ead.php?t=7499


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    44 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    65 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X