• 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

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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by saltminer, Today, 05:19 PM
    0 responses
    3 views
    0 likes
    Last Post saltminer  
    Started by martyn73, Today, 04:18 PM
    0 responses
    2 views
    0 likes
    Last Post martyn73  
    Started by aprendiz, Today, 03:42 PM
    0 responses
    2 views
    0 likes
    Last Post aprendiz  
    Started by 1001111, Today, 09:10 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by usero86, Today, 06:02 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X