NexusFi: Find Your Edge


Home Menu

 





Multicharts.Net access footprint bar data elements via api


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one shark505 with 9 posts (1 thanks)
    2. looks_two ABCTG with 6 posts (2 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 fjgaspar with 1 posts (0 thanks)
    1. trending_up 5,476 views
    2. thumb_up 3 thanks given
    3. group 4 followers
    1. forum 16 posts
    2. attach_file 0 attachments




 
Search this Thread

Multicharts.Net access footprint bar data elements via api

  #1 (permalink)
shark505
Chicago + IL/USA
 
Posts: 23 since Aug 2012
Thanks Given: 3
Thanks Received: 3

Dear Readers

I'm using Multicharts.Net special edition and am trying to access the footprint information. MC has a Volumedelta chart type which shows the volume at bid/ask information but I haven't found a way to access this information via indicator code. I'm trying to figure out which data structure to use.

It's surprising, to me at least, that this isn't available easily. Any help would be appreciated, code snippet would be great. I can understand VB and C# so either would be helpful.

Thanks in advance.

S

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Exit Strategy
NinjaTrader
The choice of instruments to trade
Psychology and Money Management
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
20 thanks
My NQ Trading Journal
19 thanks
Just another trading journal: PA, Wyckoff & Trends
17 thanks
Tao te Trade: way of the WLD
13 thanks
HumbleTraders next chapter
9 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627


shark505,

you might want to check the Programming Guide, it shows information on how to access the Volume Profile information. This should get you going as it provides the data you are looking for.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #4 (permalink)
shark505
Chicago + IL/USA
 
Posts: 23 since Aug 2012
Thanks Given: 3
Thanks Received: 3

ABCTG,

I have looked at the guide and haven't been able to figure it out, I'll go through it again. And I'm looking for footprint information that I see on the volume delta bar chart not the volume profile. Do you know where I can find a working example?

Thanks

S

Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

shark505,

I understand that. The name Volume Profile might be confusing in this term, too, but the IProfilesCollection interface provides you with all the values that you are looking for. You will just have to enable the volume profile on the particular chart (otherwise the interface is not accessible) and set it 1 bar resolution.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #6 (permalink)
shark505
Chicago + IL/USA
 
Posts: 23 since Aug 2012
Thanks Given: 3
Thanks Received: 3

ABCDTG,

I used VolumeProfile as you suggested and was able to access the data, thank you for your help

S

// Code
int bn = Bars.FullSymbolData.Current-1;
var vp = VolumeProfile.ItemForBar(bn);
if (vp != null)
{
var levels = vp.Values;
for (int i=0; i<levels.Count; i++) {
var level = levels.ElementAt(i);
double p = level.Price.Dbl;
decimal vAsk = level.AskTradedValue;
decimal vBid = level.BidTradedValue;
Output.WriteLine("{0} : {1} | {2}", p, vBid, vAsk);
}
}

Reply With Quote
Thanked by:
  #7 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

Shark505,

you are welcome, I am glad that it works for you.
By the way you can show your appreciation for a post here on Futures.io using the "Thanks" button under it.

Regards,

ABCTG


shark505 View Post
ABCDTG,

I used VolumeProfile as you suggested and was able to access the data, thank you for your help

S

// Code
int bn = Bars.FullSymbolData.Current-1;
var vp = VolumeProfile.ItemForBar(bn);
if (vp != null)
{
var levels = vp.Values;
for (int i=0; i<levels.Count; i++) {
var level = levels.ElementAt(i);
double p = level.Price.Dbl;
decimal vAsk = level.AskTradedValue;
decimal vBid = level.BidTradedValue;
Output.WriteLine("{0} : {1} | {2}", p, vBid, vAsk);
}
}


Follow me on Twitter Reply With Quote
Thanked by:
  #8 (permalink)
shark505
Chicago + IL/USA
 
Posts: 23 since Aug 2012
Thanks Given: 3
Thanks Received: 3

Hi,

VP code works in real time but when I add an indicator, the historical VP calculation seems to happen at intervals. Whats happening is, the profile gets populated every say 10ticks, then I get those 10 ticks individually in the CalcBar function but the VP remains fixed until all are processed and so on. And its not 10 ticks but some random value.

I tried to build the profile by myself using the tick data, but if i match (say) bidprice with last tick price for sell, it doesnt match with the VP (im using StatusLine for bid/ask, it could be that the Status line doesn't update on time and throws off my calculation).

So I'm not sure if there is any real way to access VP or build indicators on it. Any suggestions?

Reply With Quote
  #9 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

shark505,

how do you do historical intrabar (i.e. tick by tick) calculations on an indicator?

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #10 (permalink)
shark505
Chicago + IL/USA
 
Posts: 23 since Aug 2012
Thanks Given: 3
Thanks Received: 3


On each call to CalcBar, I use the Status Line BidPx, AsxPx and last price.

This last price is used to get side, buy or sell, last>=Ask means Buy for the trade

I use Bars.TickValue for the total bar volume upto current tick, subtract from previous total volume, so that's the volume traded on this tick

This is then TradePrice/Volume key/value pair.

Reply With Quote




Last Updated on October 9, 2016


© 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