Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy lagging with used indicator

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

    Strategy lagging with used indicator

    Hi,

    I'm having an issue with my strategy. It draws an arrow_up far from when it is supposed to draw it (Check pic 1, It should draw it where I put the blue arrow not on the rectangle).
    So I investigated further with some prints and the script output I found something strange or at least I don't get it. My strategy prints values for bars even before the indicator (pic2)
    For example i was expecting at 3:20 AM the Integer sentiment to be 1 but instead the strategy shows value = 2. And then The indicator shows the right value 1.
    Since the strategy showed the value 1 at 4:40 that is why the arrow showed up late.

    It has to do with the way a call the indicator or the whay I calculate (On each tick vs end of bar)?

    here is the code where a call my indicator


    if (State == State.SetDefaults)
    {
    Description = @"Enter the description for your new custom Strategy here.";
    Name = "VV";
    Calculate = Calculate.OnBarClose;
    EntriesPerDirection = 1;
    EntryHandling = EntryHandling.AllEntries;
    IsExitOnSessionCloseStrategy = true;
    ExitOnSessionCloseSeconds = 30;
    IsFillLimitOnTouch = false;
    MaximumBarsLookBack = MaximumBarsLookBack.TwoHundredFiftySix;
    OrderFillResolution = OrderFillResolution.Standard;
    Slippage = 0;
    StartBehavior = StartBehavior.WaitUntilFlat;
    TimeInForce = TimeInForce.Gtc;
    TraceOrders = false;
    RealtimeErrorHandling = RealtimeErrorHandling.StopCancelClose;
    StopTargetHandling = StopTargetHandling.PerEntryExecution;
    BarsRequiredToTrade = 20;
    // Disable this property for performance gains in Strategy Analyzer optimizations
    // See the Help Guide for additional information
    IsInstantiatedOnEachOptimizationIteration = true;
    Ratio = 1;
    Surface = 1;
    Hight = 1;
    VolumeUp = 0;
    VolumeDown = 0;
    LongIn = false;
    ShortIn = false;
    }
    else if (State == State.Configure)
    {
    }
    else if (State == State.DataLoaded)
    {
    VolumeUpDown1 = VolumeUpDown(Close);
    MAX1 = MAX(VolumeUpDown1.DownVolume, Convert.ToInt32(Surface));
    MAX2 = MAX(VolumeUpDown1.UpVolume, Convert.ToInt32(Surface));
    INPULSOR1 = INPULSOR(Close);
    VolumeUpDown1.Plots[0].Brush = Brushes.DarkCyan;
    VolumeUpDown1.Plots[1].Brush = Brushes.Crimson;
    INPULSOR1.Plots[0].Brush = Brushes.Purple;
    AddChartIndicator(VolumeUpDown1);
    AddChartIndicator(INPULSOR1);
    }
    }


    And then I use it like this.


    protected override void OnBarUpdate()
    {
    if (BarsInProgress != 0)
    return;

    if (CurrentBars[0] < 1)
    return;

    // Set 1
    if ((Close[0] > Open[0])
    && (Volume[0] >= Hight)
    && (Volume[0] >= (MAX1[1] * Ratio) )
    && (Volume[0] >= (MAX2[1] * Ratio) )
    && (Times[0][0].TimeOfDay >= new TimeSpan(2, 0, 0))
    && (Times[0][0].TimeOfDay <= new TimeSpan(11, 0, 0))
    && (Close[0] > INPULSOR1[0])
    && (LongIn == false)
    && INPULSOR1.Sentiment == 1
    )
    {

    Draw.ArrowUp(this, @"VV_Arrow up_1 " + Convert.ToString(CurrentBars[0]), false, 0, (Low[0] + (-4 * TickSize)) , Brushes.Blue);
    VolumeUp = Convert.ToInt32(Volume[0]);
    LongIn = true;
    }

    if (LongIn == true)
    if (INPULSOR1.Sentiment == 2 || (VolumeUp * 1.5 <= Convert.ToInt32(Volume[0]) && Close[0] < Open[0] ) )
    {

    Draw.ArrowDown(this, @"VV_Arrow down_1 " + Convert.ToString(CurrentBars[0]), false, 0, (High[0] + (4 * TickSize)) , Brushes.Blue);
    LongIn = false;
    }



    #2
    Hello altij,

    If you print the Time[0] in the action block of the condition set that calls the Draw method, this will have the same time of the bar as shown on the chart.

    If you would like to trigger actions before the bar is closed, you can add a 1 tick series or use Calculate OnPriceClose or OnEachTick (with TickReplay enabled in historical).
    https://ninjatrader.com/support/foru...377#post773377

    If you want to know why the conditions are true or not true on each bar, print all values used in the condition above (and outside) of the condition set.
    Below is a link to a forum post that demonstrates using prints to understand behavior.
    https://ninjatrader.com/support/foru...121#post791121

    I am happy to assist you with adding prints or analyzing the output.

    Please save the output to a text file and include with this your next post.

    If you inquiry is about INPULSOR1.Sentiment, then the prints should be added to the INPULSOR1 that sets the Sentiment property. If this property is set from a data driven method, Update() must be called in the getter.
    https://ninjatrader.com/support/help...nt8/update.htm


    As a tip, to export a NinjaTrader 8 NinjaScript so this can be shared and imported by the recipient do the following:
    1. Click Tools -> Export -> NinjaScript...
    2. Click the 'add' link -> check the box(es) for the script(s) and reference(s) you want to include
    3. Click the 'Export' button
    4. Enter a unique name for the file in the value for 'File name:'
    5. Choose a save location -> click Save
    6. Click OK to clear the export location message
    By default your exported file will be in the following location:
    • (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>
    Below is a link to the help guide on Exporting NinjaScripts.
    http://ninjatrader.com/support/helpG...-us/export.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi,
      Can I send the whole script via email?

      Thanks

      Comment


        #4
        Hello altij,

        As a heads up, in the support department at NinjaTrader it is against our policy to create, debug, or modify, code or logic for our clients. Further, we do not provide C# programming education services in our support. This is so that we can maintain a high level of service for all of our clients as well as our partners.

        Yes, you may send a send a script to our email platformsupport [at] ninjatrader [dot] com, but bear in mind that we are not able debug your code on your behalf, but we are able to walk you through the process of you using prints to debug your logic.
        If you have specific conditions you would like assistance writing a print for, please let us know the condition, we can assist with that through email or on the forums on writing a print for that condition.
        If you would like to create a new reduced test script with only a few lines of code with a specific inquiry we happy to answer any questions about using NinjaScript tools you may have.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi,
          I simplified the code and i uploaded it.
          It is simple. trade from entre between 6 and 10 AM (sentiment is 0 when it is white 1 when it is green and 2 when it is red).
          So arrow up when it is green (sentiment = 1) and arrow down when it is 2 (red).
          but sentiment it is always 0. tried it on few days 11-11 to 15-11
          Thanks
          Attached Files

          Comment


            #6
            Hello altij,

            I am happy to assist you with creating a print that prints all values used in the condition.

            Which condition are you attempting to make a print for?

            Is it the first condition?
            if (
            Times[0][0].TimeOfDay >= new TimeSpan(6, 0, 0)
            && Times[0][0].TimeOfDay <= new TimeSpan(10, 0, 0)
            && INPULSOR1.Sentiment == 1
            )
            We can make a print for this.
            I'll help you get started. The first part of the condition is that the time of day is greater than 6.

            Print(string.Format("{0} | Times[0][0].TimeOfDay: {1} >= new TimeSpan(6, 0, 0)", Time[0], Times[0][0].TimeOfDay, new TimeSpan(6, 0, 0)));

            Try adding this print. The observe the output and compare this with the condition. Save the output from the output window by right-click the output window and selecting Save As. Attach the output text file with your reply.


            After, try adding the next part of this condition to the print.
            && Times[0][0].TimeOfDay <= new TimeSpan(10, 0, 0)
            Let me know if you get stuck and I will be happy to assist.

            Below is a link to a forum post that demonstrates how to print all values used in the condition with labels so that you will know how the condition will evaluate on any bar. This includes videos.
            https://ninjatrader.com/support/foru...121#post791121
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Click image for larger version Name: pic2.png Views: 22 Size: 460.4 KB ID: 1128278 Hi here is the print for few days.
              Sentiment should be 0 when it is white 1 when it is green and 2 when it is red.
              but it stays 0 all the time check the print. for example 19:00 16th of november it should turn to 1.

              Strategy VV2 condition: 11/15/2020 8:00:00 PM Time of day: 20:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/15/2020 9:00:00 PM Time of day: 21:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/15/2020 10:00:00 PM Time of day: 22:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/15/2020 11:00:00 PM Time of day: 23:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 12:00:00 AM Time of day: 00:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 1:00:00 AM Time of day: 01:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 2:00:00 AM Time of day: 02:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 3:00:00 AM Time of day: 03:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 4:00:00 AM Time of day: 04:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 5:00:00 AM Time of day: 05:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 6:00:00 AM Time of day: 06:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 7:00:00 AM Time of day: 07:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 8:00:00 AM Time of day: 08:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 9:00:00 AM Time of day: 09:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 10:00:00 AM Time of day: 10:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 11:00:00 AM Time of day: 11:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 12:00:00 PM Time of day: 12:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 1:00:00 PM Time of day: 13:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 2:00:00 PM Time of day: 14:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 3:00:00 PM Time of day: 15:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 4:00:00 PM Time of day: 16:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 5:00:00 PM Time of day: 17:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 7:00:00 PM Time of day: 19:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 8:00:00 PM Time of day: 20:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 9:00:00 PM Time of day: 21:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 10:00:00 PM Time of day: 22:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/16/2020 11:00:00 PM Time of day: 23:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 12:00:00 AM Time of day: 00:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 1:00:00 AM Time of day: 01:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 2:00:00 AM Time of day: 02:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 3:00:00 AM Time of day: 03:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 4:00:00 AM Time of day: 04:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 5:00:00 AM Time of day: 05:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 6:00:00 AM Time of day: 06:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 7:00:00 AM Time of day: 07:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 8:00:00 AM Time of day: 08:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 9:00:00 AM Time of day: 09:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 10:00:00 AM Time of day: 10:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 11:00:00 AM Time of day: 11:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 12:00:00 PM Time of day: 12:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 1:00:00 PM Time of day: 13:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 2:00:00 PM Time of day: 14:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 3:00:00 PM Time of day: 15:00:00 Sentiment: 0 LongIn: False ShortIn: False
              Strategy VV2 condition: 11/17/2020 4:00:00 PM Time of day: 16:00:00 Sentiment: 0 LongIn: False ShortIn: False

              Thanks
              Attached Files

              Comment


                #8
                Sorry i mean it shoul turn to 2

                Comment


                  #9
                  Hello altij,

                  So the issue is that the Sentiment variable has a value of 0?

                  Print all of the values used in the condition set that changes the Sentiment variable to 2.

                  This will let us know why the Sentiment has a value of 0 and not a value of 2.

                  If you need assistance writing a print with variable labels and comparison operator variables, please post the condition set so we may assist.
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    Hi,
                    thanks for your time.
                    I put a pic with the print from inside the indicator since sentiment is inside the indicator IMPULSOR with the condition and it is print (basically the color of the brush is the condition).
                    and I added the output (2 pictures the whole output) of the indicator and the stragegy. I find it weird that the indicator is printing after the strategy and not before.
                    Thanks
                    Attached Files

                    Comment


                      #11
                      Hello altij,

                      Is this real-time or historical?

                      If this is historical, the strategy and indicator run through the historical data all at once. This is normal and expected.

                      With the output, are we still looking at 11/16/2020 at 7:00 PM?

                      Instead of providing a screenshot of the output, please save the output to a text file and attach the text file. This is discussed in the forum post that demonstrates using prints.

                      Be sure that print matches the condition exactly and prints all values used in the condition. Include labels such as the operator.
                      We should be able to tell what the condition is by looking at the print. The forum post has an example.

                      Unfortunately, with the screenshot you have I don't know what is being compared or what value you are expecting.
                      Chelsea B.NinjaTrader Customer Service

                      Comment


                        #12
                        Hi,
                        Here is the output of the strategy vv2 and the indicator IMPULSOR.
                        As you can see at 7pm the 16th the indicator says 2 but the strategy sees 0 (I put the 2 rows in red).


                        Strategy VV2 condition: 11/15/2020 8:00:00 PM Time of day: 20:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/15/2020 9:00:00 PM Time of day: 21:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/15/2020 10:00:00 PM Time of day: 22:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/15/2020 11:00:00 PM Time of day: 23:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 12:00:00 AM Time of day: 00:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 1:00:00 AM Time of day: 01:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 2:00:00 AM Time of day: 02:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 3:00:00 AM Time of day: 03:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 4:00:00 AM Time of day: 04:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 5:00:00 AM Time of day: 05:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 6:00:00 AM Time of day: 06:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 7:00:00 AM Time of day: 07:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 8:00:00 AM Time of day: 08:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 9:00:00 AM Time of day: 09:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 10:00:00 AM Time of day: 10:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 11:00:00 AM Time of day: 11:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 12:00:00 PM Time of day: 12:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 1:00:00 PM Time of day: 13:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 2:00:00 PM Time of day: 14:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 3:00:00 PM Time of day: 15:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 4:00:00 PM Time of day: 16:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 5:00:00 PM Time of day: 17:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 7:00:00 PM Time of day: 19:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 8:00:00 PM Time of day: 20:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 9:00:00 PM Time of day: 21:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 10:00:00 PM Time of day: 22:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/16/2020 11:00:00 PM Time of day: 23:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 12:00:00 AM Time of day: 00:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 1:00:00 AM Time of day: 01:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 2:00:00 AM Time of day: 02:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 3:00:00 AM Time of day: 03:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 4:00:00 AM Time of day: 04:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 5:00:00 AM Time of day: 05:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 6:00:00 AM Time of day: 06:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 7:00:00 AM Time of day: 07:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 8:00:00 AM Time of day: 08:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 9:00:00 AM Time of day: 09:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 10:00:00 AM Time of day: 10:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 11:00:00 AM Time of day: 11:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 12:00:00 PM Time of day: 12:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 1:00:00 PM Time of day: 13:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 2:00:00 PM Time of day: 14:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 3:00:00 PM Time of day: 15:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Strategy VV2 condition: 11/17/2020 4:00:00 PM Time of day: 16:00:00 Sentiment: 0 LongIn: False ShortIn: False
                        Inpulsor 11/15/2020 8:00:00 PM Brush: #FF00FF00 sentiment 1
                        Inpulsor 11/15/2020 9:00:00 PM Brush: #FF00FF00 sentiment 1
                        Inpulsor 11/15/2020 10:00:00 PM Brush: #FF00FF00 sentiment 1
                        Inpulsor 11/15/2020 11:00:00 PM Brush: #FF00FF00 sentiment 1
                        Inpulsor 11/16/2020 12:00:00 AM Brush: #FF00FF00 sentiment 1
                        Inpulsor 11/16/2020 1:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/16/2020 2:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/16/2020 3:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/16/2020 4:00:00 AM Brush: #FF00FF00 sentiment 1
                        Inpulsor 11/16/2020 5:00:00 AM Brush: #FF00FF00 sentiment 1
                        Inpulsor 11/16/2020 6:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/16/2020 7:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/16/2020 8:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/16/2020 9:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/16/2020 10:00:00 AM Brush: #FFFFFFFF sentiment 0
                        Inpulsor 11/16/2020 11:00:00 AM Brush: #FF00FF00 sentiment 1
                        Inpulsor 11/16/2020 12:00:00 PM Brush: #FF00FF00 sentiment 1
                        Inpulsor 11/16/2020 1:00:00 PM Brush: #FFFFFFFF sentiment 0
                        Inpulsor 11/16/2020 2:00:00 PM Brush: #FFFFFFFF sentiment 0
                        Inpulsor 11/16/2020 3:00:00 PM Brush: #FFFFFFFF sentiment 0
                        Inpulsor 11/16/2020 4:00:00 PM Brush: #FFFFFFFF sentiment 0
                        Inpulsor 11/16/2020 5:00:00 PM Brush: #FFFFFFFF sentiment 0
                        Inpulsor 11/16/2020 7:00:00 PM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/16/2020 8:00:00 PM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/16/2020 9:00:00 PM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/16/2020 10:00:00 PM Brush: #FFFFFFFF sentiment 0
                        Inpulsor 11/16/2020 11:00:00 PM Brush: #FFFFFFFF sentiment 0
                        Inpulsor 11/17/2020 12:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/17/2020 1:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/17/2020 2:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/17/2020 3:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/17/2020 4:00:00 AM Brush: #FFFFFFFF sentiment 0
                        Inpulsor 11/17/2020 5:00:00 AM Brush: #FF00FF00 sentiment 1
                        Inpulsor 11/17/2020 6:00:00 AM Brush: #FFFFFFFF sentiment 0
                        Inpulsor 11/17/2020 7:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/17/2020 8:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/17/2020 9:00:00 AM Brush: #FF00FF00 sentiment 1
                        Inpulsor 11/17/2020 10:00:00 AM Brush: #FFFFFFFF sentiment 0
                        Inpulsor 11/17/2020 11:00:00 AM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/17/2020 12:00:00 PM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/17/2020 1:00:00 PM Brush: #FFFFFFFF sentiment 0
                        Inpulsor 11/17/2020 2:00:00 PM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/17/2020 3:00:00 PM Brush: #FFFF0000 sentiment 2
                        Inpulsor 11/17/2020 4:00:00 PM Brush: #FFFF0000 sentiment 2

                        Thanks

                        Comment


                          #13
                          Hello altij,

                          This is Jim responding on behalf of Chelsea who is out of the office at this time.

                          Chelsea will be following up after he returns to the office and has been able to review.

                          We look forward to assisting.
                          JimNinjaTrader Customer Service

                          Comment


                            #14
                            Hello altij,

                            I see that Sentiment is a public integer and is not a plot. Please be sure to include Update(); in the getter of this public property. When I add Update() to the getter, I am seeing non 0 values for Sentiment.

                            Update() - https://ninjatrader.com/support/help...t8/?update.htm

                            Exposing variables that are not plots - https://ninjatrader.com/support/help...alues_that.htm

                            We look forward to assisting.
                            JimNinjaTrader Customer Service

                            Comment


                              #15
                              It is working.
                              My hat is off guys.

                              Thanks

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by rufat, Yesterday, 09:24 PM
                              1 response
                              16 views
                              0 likes
                              Last Post NinjaTrader_Jason  
                              Started by TRADEONECLIC, Yesterday, 10:05 PM
                              0 responses
                              24 views
                              0 likes
                              Last Post TRADEONECLIC  
                              Started by BrennanSalibrici, 12-17-2020, 11:55 PM
                              3 responses
                              45 views
                              0 likes
                              Last Post StealthM93  
                              Started by coopgrafik, Yesterday, 07:56 PM
                              0 responses
                              10 views
                              0 likes
                              Last Post coopgrafik  
                              Started by MisterGee, Yesterday, 07:55 PM
                              0 responses
                              11 views
                              0 likes
                              Last Post MisterGee  
                              Working...
                              X