NexusFi: Find Your Edge


Home Menu

 





Question about VolumeProfile indicator


Discussion in NinjaTrader

Updated
    1. trending_up 1,829 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?
TradingView Opens Volume Footprint Data to Pine Script - …
TradingView
Day 97: Israel-Lebanon Ceasefire Struck Overnight -- WTI …
Traders Hideout
The Confluence Meter: A Multi-Layered Signal Framework B …
The Elite Circle
Hungary Called for Magyar at 97pct, Ending 16-Year Orban …
Prediction Markets & Event Contracts
Bookmap Global Plus Lifetime + Lifetime Addons For Sale
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 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