• 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

Enter trade based off opening price of current daily price bar in relation to SMA

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

    Enter trade based off opening price of current daily price bar in relation to SMA

    I am trying to create a strategy where I enter a position either long or short on the opening of the stock market using the opening price and the daily chart. However, the issue I am having is that the logic that controls whether to go long or short is using the previous daily candles opening price to make a decision for today's trade. How do I configure the strategy to look at today's opening price? FYI, previous bars is set to 0.

    #2
    Hello magnolia318,

    Thank you for the post.

    Here is a post on the same subject where our colleague Chelsea demonstrates adding an additional 1 tick series to your script so you can access the opening value without needing to run the Strategy on each tick:

    https://ninjatrader.com/support/foru...ar-s-open-data

    Please let me know if you have any additional questions.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by saltminer, Today, 10:14 PM
    0 responses
    4 views
    0 likes
    Last Post saltminer  
    Started by Mykro, Today, 10:03 PM
    0 responses
    4 views
    0 likes
    Last Post Mykro
    by Mykro
     
    Started by coolTrade, Today, 09:37 PM
    0 responses
    7 views
    0 likes
    Last Post coolTrade  
    Started by PatrickM, Today, 08:43 PM
    0 responses
    8 views
    0 likes
    Last Post PatrickM  
    Started by horace chow, Today, 04:00 PM
    3 responses
    18 views
    0 likes
    Last Post bltdavid  
    Working...
    X