NexusFi: Find Your Edge


Home Menu

 





how to store/save data from Depth of Market Indicator


Discussion in MultiCharts

Updated
    1. trending_up 3,001 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?
is there a better Trade Performance tool for NinjaTrader?
NinjaTrader
Help re translation of ninjascript to EL
NinjaTrader
Elite Trader Funding, Avoid?
Funded Trading Evaluation Firms
How to plot a custom icon for crossover
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
65 thanks
What is Markets Chat (markets.chat) real-time trading ro …
54 thanks
Tao te Trade: way of the WLD
43 thanks
HumbleTraders next chapter
21 thanks
1 Minute Man
21 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,439 since Apr 2013
Thanks Given: 486
Thanks Received: 1,629

honoluluhustler,

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

Regards,
ABCTG

Follow me on Twitter 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,620 since Jun 2009
Thanks Given: 33,354
Thanks Received: 101,986


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

Mike



Join the free Markets Chat beta: Real-time Trading Insights

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




Last Updated on August 13, 2014


© 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 - Sitemap - Downloads - Top
no new posts