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

Bid/Ask spread indicator updating even if no trades take place

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

    Bid/Ask spread indicator updating even if no trades take place


    I am trying to create an indicator that will display spread between bid and ask and display it on the chart. Method OnBarUpdate will only be triggered if there is an actual trade. But there are many instances when bid/ask spread will change many times between the trades for some instruments. Is there any method that will be triggered if anything changes in order book?



    Thanks,

    redduke

    #2
    imported post

    Hi RedDuke,

    Yes but this is outside of what we provide technical support for at this time. I can point you in a direction. Take a look at the VolumeProfile indicator source code to get an idea of what can be done.

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Hi Ray,

      I took a look at volume profile, and it also seems to be only updated when the price ticks, and not when info changes in DOM. I realize that you do not provide support for custom development, but I would really appreciate if you just point me to an indicator or method which is being trigerred whenever something changes in DOM.

      Thanks,

      redduke

      Comment


        #4
        imported post

        Sorry, this is not supported at that time.

        Comment


          #5
          Hi Dierk,

          Could you please clarify on Not Supported?

          Is it possible to access MarketAnyliser data through an indicator?

          Thanks,

          nVladik

          Comment


            #6
            >> Is it possible to access MarketAnyliser data through an indicator?
            Sorry, not supported at this time.

            Comment


              #7
              "Not supported" in this case means that we do not provide support for the functionality discussed.
              RayNinjaTrader Customer Service

              Comment


                #8
                Thanks. Will try to figure it out.

                Comment


                  #9
                  So basically we cannot trigger any code from changes in the bid price(or size) or changes in the ask price(or size)?

                  We can only trigger code from trade prices?

                  I would like to set up some type of alert that will sound if the bidask spread exceeds a certain amount. So is the best we can do here is measure the spread at each trade price event?

                  Comment


                    #10
                    This will be supported by fall time frame.
                    RayNinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by RedDuke View Post
                      I am trying to create an indicator that will display spread between bid and ask and display it on the chart. Method OnBarUpdate will only be triggered if there is an actual trade. But there are many instances when bid/ask spread will change many times between the trades for some instruments. Is there any method that will be triggered if anything changes in order book?


                      Thanks,

                      redduke
                      Please find attached an indicator that displays the current best bid/ask prices whenever it changes in the order book.
                      Attached Files

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by jclose, Today, 09:37 PM
                      0 responses
                      3 views
                      0 likes
                      Last Post jclose
                      by jclose
                       
                      Started by WeyldFalcon, 08-07-2020, 06:13 AM
                      10 responses
                      1,413 views
                      0 likes
                      Last Post Traderontheroad  
                      Started by firefoxforum12, Today, 08:53 PM
                      0 responses
                      9 views
                      0 likes
                      Last Post firefoxforum12  
                      Started by stafe, Today, 08:34 PM
                      0 responses
                      10 views
                      0 likes
                      Last Post stafe
                      by stafe
                       
                      Started by sastrades, 01-31-2024, 10:19 PM
                      11 responses
                      169 views
                      0 likes
                      Last Post NinjaTrader_Manfred  
                      Working...
                      X