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?
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
 
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