Announcement

Collapse
No announcement yet.

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.
        DierkNinjaTrader Customer Service

        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.
            DierkNinjaTrader Customer Service

            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 einstein, Today, 06:20 PM
                      0 responses
                      1 view
                      0 likes
                      Last Post einstein  
                      Started by op1031, Today, 05:51 PM
                      0 responses
                      3 views
                      0 likes
                      Last Post op1031
                      by op1031
                       
                      Started by nighttrader99, Today, 04:34 PM
                      1 response
                      8 views
                      0 likes
                      Last Post NinjaTrader_ShawnB  
                      Started by Simon Investimens, Today, 02:51 PM
                      1 response
                      15 views
                      0 likes
                      Last Post NinjaTrader_ChrisL  
                      Started by Unsuitable, Today, 02:49 PM
                      0 responses
                      14 views
                      0 likes
                      Last Post Unsuitable  
                      Working...
                      X