• Ask a question
  • Spaces
    • TT® Platform
    • Autospreader®
    • Autotrader™
    • Charting & Analytics
    • Options
    • ADL®
      • ADL Samples
    • RTD
    • APIs
      • TT .NET SDK
      • TT API & XT API
      • TT REST API
    • Cryptocurrencies
    • Topics
    • Questions
    • Articles
    • Ideas
    • Badges
  • Sign in
  • Home /
  • ADL® /
avatar image
0
Question by Paul · Sep 21, 2020 at 06:58 PM · ADL®ADL Samples

Reset ValueAccumulator block

Hello; im trying to create a module that accumulates trades within the same one millisecond; while i can extract a millisecond value and accumulate trade quantity, i cant figure out how to reset ValueAccumulator block when MsgInfoExtractor block "millisecond" value changes

photo-2020-09-21-22-10-10.jpg (26.1 kB)
Comment
Add comment
10 |1800 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by russelltromans-1 · Sep 22, 2020 at 12:00 PM

Below is an example of how you could approach this. I have used a branch block to check if the incoming trades ms time stamp is equal to that of the last trade. If it is then we route the trade message through the info extractor and to the accumulator. If not then we use a sequencer to reset the accumulator before routing the new trade message.




f1.png (41.4 kB)
f2.png (9.3 kB)
Comment
Add comment Show 1 · Share
10 |1800 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Paul · Sep 22, 2020 at 12:37 PM 0
Share

Thank you.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Community

Ask questions and share ideas about the TT® and X_TRADER® platforms.

First time here? See our Getting Started Guide and FAQs.

Follow

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Moving Average Crossing - Analytics Block or Moving Average Block? 1 Answer

How to reset time to false 3 Answers

How to create Swing High and Swing Low in ADL? 2 Answers

Backtest Resources 1 Answer

What is the correct way to show debug or trace messages on alert block? 2 Answers

Trading Technologies Home - Legal - Privacy - Contact

© 2017 Trading Technologies International, Inc. All rights reserved.

Powered by AnswerHub

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • TT® Platform
  • Autospreader®
  • Autotrader™
  • Charting & Analytics
  • Options
  • ADL®
    • ADL Samples
  • RTD
  • APIs
    • TT .NET SDK
    • TT API & XT API
    • TT REST API
  • Cryptocurrencies
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges