Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

program exit verus refresh (f5)

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

    program exit verus refresh (f5)

    Hello,

    How can I determine from within an indicator if the redraw being done was caused by a refresh versus the new-start of the program?

    Ideally I would like to know what method I can overwrite/append upon program exit.

    I have an indicator that relies on live data and when I press F5 it wipes out the history. My plan is to write the data to a file and read it in on an F5 refresh. But if I exit the program or start the program new I will not use the data file values.

    Thus is there a way to determine if I exit the program versus if an F5 refresh was pressed? Example code to review would be ideal...

    If this is too detailed of a question for this form could you at least point me in the direction to search? I know sometimes these things are MSN related and have no problems digging there...

    #2
    Hello,

    Thank you for your note.

    Unfortunately this is not supported.

    Let me know if I can be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by helpwanted, Today, 03:06 AM
    1 response
    10 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    9 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    386 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X