NexusFi: Find Your Edge


Home Menu

 





how to store/save data from Depth of Market Indicator


Discussion in MultiCharts

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




 
Search this Thread
  #1 (permalink)
honoluluhustler
Honolulu + Hawaii / USA
 
Posts: 18 since Jul 2014
Thanks Given: 16
Thanks Received: 1

i can't find a data provider who provides (milli)second by (milli)second historical depth of market book, so i figure i could write a code that and build my own.

below is the Market Depth of Chart by Multicharts

[RecoverDrawings = false];

if not LastBarOnChart_s then #return;

Inputs: UpdateSpeed_seconds(0.1);

RecalcLastBarAfter(UpdateSpeed_seconds);

repeat

if not dom_isconnected then
break;

value11 = 0;
value12 = 0;
for value1 = 0 to dom_askscount - 1 begin
value12 = dom_asksize(value1);
if value12 > value11 then value11 = value12;
end;

for value1 = 0 to dom_bidscount - 1 begin
value12 = dom_bidsize(value1);
if value12 > value11 then value11 = value12;
end;

if 0 >= value11 then
break;

for value1 = 0 to dom_askscount - 1 begin
draw_DOM_level(
dom_askprice(value1), dom_asksize(value1), value1, value11,
gradientcolor( value1, 0, 10, RGB(255,0,0), RGB(80,0,0) ),
dom_askscount - 1 = value1
);
end;

for value1 = 0 to dom_bidscount - 1 begin
draw_DOM_level(
dom_bidprice(value1), dom_bidsize(value1), value1, value11,
gradientcolor( value1, 0, 10, RGB(0,0,255), RGB(0,0,80) ),
dom_bidscount - 1 = value1
);
end;

plot1("OK", "Status", white);

#return;

until(False);

plot1("Level2 data is not avaliable", "Status", red);

is there a way, i can store,save that data to be used at another time for time backtesting?

thanks!


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Expiration Day: Wall Street Rallies on Peace Hopes While …
Prediction Markets & Event Contracts
Victory Day Delivers: Russia-Ukraine Ceasefire Market Cl …
Prediction Markets & Event Contracts
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
Prop Firms Are Banning Gold Trading as Record Prices Mak …
Funded Trading Evaluation Firms
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
 
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)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

honoluluhustler,

yes, but you would need your own database or create huge text files storing this data.

Regards,
ABCTG


Follow me on X Reply With Quote
  #3 (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,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557


IQFeed provides millisecond resolution and historical bid/ask. There is also a discount for Elite Members.

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 X Visit my NexusFi Trade Journal Reply With Quote




Last Updated on August 13, 2014


© 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