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

Spotting particular dates.

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

    Spotting particular dates.

    Hi,
    I was experimenting to spot some particular dates...say pre-defined expiry dates on daily chart. Here is what i coded with help of a array to hold 5 fix dates for expiry and tried to spot on the chart...but i cant get why it plots only one oldest expiry date....




    Devdas
    NinjaTrader Ecosystem Vendor - Devdas

    #2
    Ok, it worked with some alteration and new variable...

    but still i cant get why it failed if its tried with 'else' route.....

    Devdas
    NinjaTrader Ecosystem Vendor - Devdas

    Comment


      #3
      you should exit the loop when the date has been found.

      Comment


        #4
        Originally posted by bukkan View Post
        you should exit the loop when the date has been found.
        thanx, even now original code worked...no need of extra variable..

        Devdas
        NinjaTrader Ecosystem Vendor - Devdas

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by PhillT, Today, 02:16 PM
        2 responses
        3 views
        0 likes
        Last Post PhillT
        by PhillT
         
        Started by Kaledus, Today, 01:29 PM
        3 responses
        9 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by frankthearm, Yesterday, 09:08 AM
        14 responses
        47 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by gentlebenthebear, Today, 01:30 AM
        2 responses
        14 views
        0 likes
        Last Post gentlebenthebear  
        Started by PaulMohn, Today, 12:36 PM
        2 responses
        17 views
        0 likes
        Last Post PaulMohn  
        Working...
        X