Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EasyLanguage to NinjaScript

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

    #76
    In case I am not being clear:

    Tradestation does it:

    ChartingHost.ScrollTo (dtObj);

    where dtObj is a DateTime.

    and Multicharts:

    scrolltobar ( BarNumber ) ;

    where barnumber is a number of bars ago (same as GetBar (dtObj) )

    Comment


      #77
      Do you know how I can automate data import. If I provide a txt file with the updated historical data, how can I automate historical data import.

      Comment


        #78
        Hello RobinT,

        There is no function or method to scroll to or move to a set point on the chart in NinjaScript. An automated import of the historical data would not be supported within NinjaScript.

        Comment


          #79
          I just want to make sure my data is up to date before i start processing.

          Comment


            #80
            Is there a recommended place to put output files generated by the indicator.

            Comment


              #81
              Environment.GetFolderPath(Environment.SpecialFolde r.MyDocuments);

              Comment


                #82
                RobinT,

                There are no recommendations on where to place the files.

                You can use our reference samples as a guide for StreamWriter and System.IO functions: http://ninjatrader.com/support/forum...splay.php?f=30

                Comment


                  #83
                  Right click in your chart > select Data Series > select Custom Range under Load Data Based On > set the desired Start and End Date > OK.

                  Can the amount of data loaded be controlled by Ninjascript and can I find out the screen resolution or bar spacing?

                  Comment


                    #84
                    Hello RobinT,

                    The amount of data would be controlled by the chart. Screen resolution and bar spacing would require unsupported code.

                    Comment


                      #85
                      where would I find this unsupported code.

                      Comment


                        #86
                        Can you suggest a way of doing this:

                        value61 = LowestBar(Low, 4);

                        but if bar 0 is the lowest I want the next lowest. TS has a nthlowestbar function and I wondered if NT has an equivalent. How can I use indexing or how can I find the lowestbar of [1], [2], [3].

                        Comment


                          #87
                          wrote my own.

                          Comment


                            #88
                            I dont seem to be able to display ES 03-16 before 12/11/15 even thogh I have 1 minute historical data going back to 12-30-14. I have SPX data for the same period and it displays ok. What am I doing wrong?

                            Comment


                              #89
                              if I import the same data as SPY it works ok. Is there some restriction for futures?

                              Comment


                                #90
                                Originally posted by RobinT View Post
                                where would I find this unsupported code.
                                I would not have this code on hand.
                                Originally posted by RobinT View Post
                                Can you suggest a way of doing this:

                                value61 = LowestBar(Low, 4);

                                but if bar 0 is the lowest I want the next lowest. TS has a nthlowestbar function and I wondered if NT has an equivalent. How can I use indexing or how can I find the lowestbar of [1], [2], [3].
                                You could use two loops in the following fashion:
                                Code:
                                			int first = 0;
                                			int second = 0;
                                			int period = 20;
                                			double low = Low[0];
                                			
                                            for (int i = period; i >= 0; i--)
                                			{
                                				if (Low[i] < low)
                                				{
                                					low = Low[i];
                                					first = i;
                                				}
                                			}
                                			low = Low[first+1];
                                			for (int i = period + first; i >= first; i--)
                                			{
                                				if (Low[i] < low)
                                				{
                                					low = Low[i];
                                					second = i;
                                				}
                                			}
                                Originally posted by RobinT View Post
                                I dont seem to be able to display ES 03-16 before 12/11/15 even thogh I have 1 minute historical data going back to 12-30-14. I have SPX data for the same period and it displays ok. What am I doing wrong?
                                Originally posted by RobinT View Post
                                if I import the same data as SPY it works ok. Is there some restriction for futures?
                                Who are you connected to when you attempt to load the futures data? How far back does the data go?

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                605 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                351 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                105 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                560 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                561 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X