Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need Text Message Alert For Block Orders on Time And Sale

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

    Need Text Message Alert For Block Orders on Time And Sale

    Hi,

    How can I get text message alert for Block Orders on Time and Sale? For example, I want to get a text message alert for any block order that is above 50 and it prints Above Ask.

    Thank you,
    Alex

    #2
    When I meet a max number of trades, my script will tell me I have reached the max number of trades and no longer enters new trades. I use a fixedtext string, and create that since I will not need to remove it right away, I place a remove fixedtext string at a certain point in the dy which will ensure that at one or another point it will be removed so that there is not always an alert on screen.
    So I assume you need to put a boolean or flag that will alert when you have reached the condition, then when that is met create a 'if ( (aboveX == true || 50oR > 50) ) { fixedtext(); } to alert on screen you have met that, you can use a X coordinate above the current last bid and try to anchor it near current price, then handle the rest will be rather simple.

    Comment


      #3
      Hi
      my answer will be without details.
      you will have to deal with the details yourself.
      short:
      1. to get the current ask.
      2. compare the event with the current price and volume.
      3. print to the data output window.

      Here are two links with examples:
      get ask:
      https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?getcurrentask.htm
      example book 2
      https://ninjatrader.com/support/foru...ta-book?t=3478
      Last edited by Danila; 08-31-2022, 12:28 AM.

      Comment


        #4
        Hi, thanks for posting. The T&S window does not support alerts (through the common alert system). You would need to run a script on the instrument you want the alert for, and that script will use OnMarketData to emulate the T&S window.



        For a full example, see the BuySellVolume indicator in the NinjaScript Editor>Indicators folder.

        Kind regards,
        -ChrisL

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        61 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        40 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        21 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        23 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        51 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X