NexusFi: Find Your Edge


Home Menu

 





how to store/save data from Depth of Market Indicator


Discussion in MultiCharts

Updated
    1. trending_up 3,578 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?
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
The June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Iran Talks Final Stages -- Two VLCCs Exit Hormuz, Record …
Traders Hideout
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
1 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

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,577


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