• 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

Add user defined value to the open

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

    Add user defined value to the open

    Hi !

    I am not a coder but I need this very simple thing and I wonder if anyone can help me with this .

    I want to add and subtract values defined by me everyday premarket. These predefined values will be added and subtracted to the opening tick . Can it be that 2 lines will be plotted as soon as the market opens (indicator) OR AT LEAST...is there a way to set an alert wherein I set the value that whenever price goes to a price level which is "open + 'X'" or "open-'Y'" , give me an alert.

    Can this be done ? Can anyone help me with this please?

    #2
    Hello Debayan Sen,

    Thank you for your note.

    To trigger an action in real-time on the first tick of a new session, Calculate would need to be set to OnEachTick and both Bars.IsFirstBarOfSession and IsFirstTickOfBar must be true.
    https://ninjatrader.com/support/help...rofsession.htm
    https://ninjatrader.com/support/help...ttickofbar.htm

    For this to work historically, TickReplay must be enabled.
    https://ninjatrader.com/support/help...ick_replay.htm

    Also, below is a link to a forum post with helpful information about getting started with NinjaScript.
    https://ninjatrader.com/support/foru...040#post786040

    You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Newtrader101, Today, 03:40 PM
    2 responses
    5 views
    0 likes
    Last Post Newtrader101  
    Started by Branpo, Today, 02:58 PM
    2 responses
    4 views
    0 likes
    Last Post Branpo
    by Branpo
     
    Started by sdauteuil, Today, 02:09 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by AMATX, Today, 02:19 PM
    2 responses
    7 views
    0 likes
    Last Post AMATX
    by AMATX
     
    Started by dmking, Today, 01:28 PM
    2 responses
    10 views
    0 likes
    Last Post dmking
    by dmking
     
    Working...
    X