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.

        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 sjsj2732, Yesterday, 04:31 AM
                      0 responses
                      35 views
                      0 likes
                      Last Post sjsj2732  
                      Started by NullPointStrategies, 03-13-2026, 05:17 AM
                      0 responses
                      287 views
                      0 likes
                      Last Post NullPointStrategies  
                      Started by argusthome, 03-08-2026, 10:06 AM
                      0 responses
                      286 views
                      0 likes
                      Last Post argusthome  
                      Started by NabilKhattabi, 03-06-2026, 11:18 AM
                      0 responses
                      133 views
                      1 like
                      Last Post NabilKhattabi  
                      Started by Deep42, 03-06-2026, 12:28 AM
                      0 responses
                      95 views
                      0 likes
                      Last Post Deep42
                      by Deep42
                       
                      Working...
                      X