Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ShareServices.StockTwits.Sentiment.Bearish

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

    ShareServices.StockTwits.Sentiment.Bearish

    How would you create a enum for Stocktwits bullish or bearish
    ShareServices.StockTwits.Sentiment.Bullish
    ShareServices.StockTwits.Sentiment.Bearish

    #2
    Hello ballboy11,

    Are these two different stocktwits addresses?

    Below is a link to an example of using enums.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Yes those are 2 addresses for stocktwits for some reason I was getting compiling errors.
      I removed the object for the time being

      Comment


        #4
        Hello ballboy11,

        If you are getting errors, please let us know what the errors are.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          I cannot compile using this line of code

          if(bBearish == false)
          Share("StockTwits", "Test", Core.Globals.UserDataDir+ "MyScreenshot.png", new object[]{ ShareServices.StockTwits.Sentiment.Bearish });
          else
          Share("StockTwits", "Test, Core.Globals.UserDataDir+ "MyScreenshot.png", new object[]{ ShareServices.StockTwits.Sentiment.Bullish });

          BUT

          /if(bBearish== false)
          Share("StockTwits", sReportName, Core.Globals.UserDataDir+ "MyScreenshot.png");
          /else
          Share("StockTwits", sReportName, Core.Globals.UserDataDir+ "MyScreenshot.png");

          Will worked Compiled
          Attached Files

          Comment


            #6
            Hello ballboy11,

            Try opening the NinjaScript Editor from the New menu and compiling this script.

            Compile errors will appear in orange at the bottom of the window.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            44 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            54 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            34 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            95 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            57 views
            0 likes
            Last Post PaulMohn  
            Working...
            X