NexusFi: Find Your Edge


Home Menu

 





Question about VolumeProfile indicator


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
UMLer
Toronto Canada
 
Posts: 1 since Feb 2022
Thanks Given: 0
Thanks Received: 0

Hi
I read source code of VolumeProfile indicator and i show a piece of code below:
if (price >= e.Ask)
volumeInfoItem.up += volume;
else if (price <= e.Bid)
volumeInfoItem.down += volume;
else
volumeInfoItem.neutral += volume;

what i can not understand is the last line code. is it possible price could be between e.Ask and e.Bid? if so then is there anyone could describe the scenario that cause price is between e.Ask and e.Bid ?

thanks


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
The June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
Four New E-mini Futures Launch June 29 -- Russell 3000, …
Emini and Emicro Index
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 Apollo11 
KualaLumpur + Malaysia
 
Experience: Intermediate
Platform: TradeStation
Trading: ES, Forex, Futures, Stocks
Posts: 5 since Sep 2015
Thanks Given: 0
Thanks Received: 5

Say
Ask is 13.68
Bid is 13.62

Price is at 13.70 - will trigger the up
Price is at 13.65 - will trigger the neutral
Price is at 13.60 - will trigger the down


Reply With Quote
  #3 (permalink)
 patrick88 
Hong Kong
 
Experience: Intermediate
Platform: Interactive Brokers
Trading: Futures, Stocks
Posts: 10 since Feb 2023
Thanks Given: 7
Thanks Received: 1


Hi,

How many bars should you look back to on Volume Profile? I use the 30min and 2min mainly.

I often feel that levels beyond 1000 bars are still relevant. How many bars do you look back to?

Many thanks,
Patrick


Reply With Quote




Last Updated on February 17, 2023


© 2026 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 - Downloads - Top
no new posts