• 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
  • Home /
  • ADL® /

Uptick and Downtick Counter logic examples..

  • Export to PDF
Damon created · Apr 05, 2016 at 05:40 PM · Alvin edited · Dec 07, 2016 at 07:40 PM
4

This is a possible way to use ADL to take a specific Instrument and pull out the Bid Price for that instrument.... and then create a counter that uses a User Defined Uptick/Downtick variable and monitors the market data. Then when the User Defined number of Uptick or Downticks in the market is reached.... this then outputs a TRUE boolean value which can then be used as a trigger condition within an algos logic.
NOTE: The 2 different State Blocks #1 and #2 both use the same internal formulas as shown in the screen shots. But make sure to change the reference VE (Value Extractor block) to either VE block Bid Price 1 or VE block Bid Price 2 in order to make sure you are referencing the correct values. State Blocks #2 should reference VE block Bid Price 2 , and State Block #1 should reference VE block Bid Price 1.

Below you will see 2 screen shots of logic. They are very similar in construction, but they differ with the internal State Block conditional logic in order to perform UPTICK logic or DOWNTICK Logic

Internal conditional logic for State Blocks #1 and #2:

UPTICK Counter......
State Block 1.......Condition 1: Bid Price > VE Bid Prc 1 Condition 2: Bid Price < VE Bid Prc 1
State Block 2.......Condition 1: Bid Price > VE Bid Prc 2 Condition 2: Bid Price < VE Bid Prc 2


Downtick Counter......
State Block 1.......Condition 1: Bid Price < VE Bid Prc 1 Condition 2: Bid Price > VE Bid Prc 1
State Block 2.......Condition 1: Bid Price < VE Bid Prc 2 Condition 2: Bid Price > VE Bid Prc 2








thub.nodes.view.add-new-comment
ADL®TT® Platform
tt-uptick.jpg (185.1 kB)
tt-downtick.jpg (187.4 kB)
Add comment Show 1
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 koshinvisualcontact · Nov 03, 2020 at 08:21 AM 0
Share

Helpful post ! Just some questions, could you post the formula set in the VE uptick counter and in the uptick counter accumulator block please ?

I don't really understand how to extract the nb of uptick after extract the best bid price....

Thank a lot

Community

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

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

Article

Contributors

avatar image avatar image
Follow

Follow this article

14 People are following this .

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

Navigation

Uptick and Downtick Counter logic examples..

Related Articles

Ease of Testing Exchanges and Contract Market States with ADL

Easy way to test OMA algo logic from the design canvas..

Easy way to test OMA algo logic from the design canvas (updated)

Importing X_TRADER Pro ADL algos to web-based TT platform....

ASE Order Block and Quote / Hedge/ Fill messages and using Alert Blocks for recording

Simple 2 Sided Q Holder w Stack Increment Orders example......

The new MsgInfo Extractor block in TT ADL

Ignore Input after ADD functionality difference between 7.X and TT ADL

Creating a Test Algo

Clip Size-Reload and Reload Button logic.... Library Block Creation

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