NexusFi: Find Your Edge


Home Menu

 





Orders and trades indicator


Discussion in Platforms and Indicators

Updated
    1. trending_up 1,008 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 1 attachments




 
Search this Thread

Orders and trades indicator

  #1 (permalink)
acdman
St.Petersburg Russia
 
Posts: 4 since Mar 2020
Thanks Given: 0
Thanks Received: 4

I have come up with an idea to combine open orders and trades at the market price to create a leading indicator for forecasting market movement.

Open orders are represented in a table called “market depth”. The table contains bid, ask, volume of buy and sell open orders in lots. Trades at market price are represented in a table called “anonymous trades”. The table contains time of the trade, security tag, volume of the trade in lots, direction of the trade (buy or sell). This table may also contain other data, for example, bid and ask, but we do not need them.

The program accesses the market depth table and calculates the total volume separately of all buy and sell open orders at the end of each minute during the trading day. These volumes are displayed as a blue and red line under the 1-minute price chart in Figure 1 for buyers and sellers respectively. If the blue line lies above the red, then there are more buy orders, and vice versa. In some cases, the indicator correctly warns of a price reversal: buy (sell) orders prevail before the market rises (falls). As can be seen in Figure 1, usually soon after an increase in the volume of buy orders, the price rises, and after an increase in the volume of sell orders the price drops.

The program also refers to the table of anonymous trades and calculates the total volume separately of all buy and sell trades for every minute during the trading day (the sum of these volumes is the volume displayed by the standard volume indicator). These volumes are displayed as blue and red dots in Figure 1. A large volume of buy or sell trades often leads to a large candle.

Now we can evaluate the strength of the bulls and bears S as:
S=BO+BT-SO-ST
where
BO - volume of buy open orders
BT- volume of buy trades
SO - volume of sell open orders
ST - volume of sell trades

Bulls dominate when S>0, and bears dominate if S<0. Blue and red triangles in Figure 1 correspond to the dominance of bulls and bears, respectively.

Now let's decide when the bulls and bears lose their strength. To do this, we register every minute when the volume of buy and sell orders at the end of the current minute drops compared to the end of the previous minute during the trading day. If this drop is greater than the volume of trades of the opposite sign for the current minute, then some orders were canceled during this minute. Canceled buy (sell) orders mean that buyers (sellers) are leaving, and the price often changes after some time in favor of those who remain. I call this phenomenon the pessimism of bulls and bears, which can be defined as:
PBi = BOi - BOi-1 + STi
PSi = SOi -SOi-1 + BTi
where
PBi - bull pessimism measure
PSi - bear pessimism measure
BOi and BOi-1 - volume of buy open orders at minute i and i-1
SOi and SOi-1 - volume of sell open orders at minute i and i-1
BTi - volume of buy trades at minute i
STi - volume of sell trades at minute i

Bulls are pessimistic when PBi<0, and bears if PSi<0. The measure of pessimism of bulls and bears PBi and PSi is represented as a histogram below the zero line in Figure 1. The blue and red bars of the histogram appear when the bulls and bears are pessimistic, respectively.

But what if some bulls (bears) cancelled their orders and immediately bought (sold) at the market price? In this case, we are not talking about pessimism. Such an outcome cannot be ascertained for sure. We can only guess about it if trading at a market price of the same direction with a large volume occurs at the same or the next minute after a negative bar.

You can find a more detailed description of this and some other indicators on my website https://www.acds.info (it is mainly devoted to backtesting of Mark Fisher’s ACD trading system).


Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
How to apply profiles
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
Quant vue
Trading Reviews and Vendors
 
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,661

@acdman,

Welcome to the site.

Our rules do not permitting you to link to your website again. You cannot post here to drive traffic to your website.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
acdman
St.Petersburg Russia
 
Posts: 4 since Mar 2020
Thanks Given: 0
Thanks Received: 4



Big Mike View Post
@acdman,

Welcome to the site.

Our rules do not permitting you to link to your website again. You cannot post here to drive traffic to your website.

Mike

Hello Big Mike,

Thank you for the publication of my post “orders and trades indicator”.
Please excuse for repeated link to my site. I tried to cancel the two other links to my site that I inserted in my messages on March 3 and 4, 2020, but editing was not possible (by the way, those links are without www and inactive).
Can you cancel these two old links yourself, but leave the last new link in this thread?
You are afraid that I will drive traffic to my site. My site is visited by an average of 3-5 people daily. Perhaps this will reassure you.
In fact, linking is not my main goal. When I posted my orders and trades indicator, I thought that this post would somehow protect my authorship. In addition, I hope that this indicator can help other traders, and they will thank me.
For my part, I promise not to post more links to my site in future posts.

Reply With Quote




Last Updated on May 6, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts