NexusFi: Find Your Edge


Home Menu

 





MultiCharts order flow information gathering


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Big Mike with 9 posts (8 thanks)
    2. looks_two SPMC with 2 posts (3 thanks)
    3. looks_3 Jura with 1 posts (1 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 8,826 views
    2. thumb_up 12 thanks given
    3. group 3 followers
    1. forum 13 posts
    2. attach_file 0 attachments




 
Search this Thread

MultiCharts order flow information gathering

  #1 (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,469 since Jun 2009
Thanks Given: 33,246
Thanks Received: 101,669

Now that MC 8 beta 2 supports Level II analysis from EasyLanguage, I am wondering if anyone has interest in creating a function that will dump data to Excel (csv) for further analysis or patterns, etc?


Quoting 
dom_askprice ( DOM)

Returns ask price for the certain depth level of a particular symbol.

Usage

dom_askprice(num) [data(N)]
where:

(num) is the number of depth level

(N) – number of the data series

Example

dom_askprice(4); will return the ask price for the 5th level of depth for the data1

dom_askprice(2) data2; will return the ask price for the 3rd level of depth for the data2

dom_askscount( DOM)

Returns the number of ask depth levels available for a particular symbol.

Usage

dom_askscount [data(N)]

where: (N) – number of the data series

Example

dom_askscount will return 10 if 10 ask levels of the market depth are available for the data1

dom_askscount data2 will return 6 if 6 ask levels of the market depth are available for the data2

dom_asksize( DOM)

Returns the ask size for the certain depth level of a particular symbol.

Usage

dom_asksize(num) [data(N)]
where:

(num) is the number of depth level

(N) – number of the data series

Example

dom_asksize(2) will return 1500 if the ask size for the 3rd level of depth on data1 is 1500

dom_asksize(0) data2 will return 750 if the ask size for the 1st level of depth on data2 is 750

dom_bidprice( DOM)

Returns bid price for the certain depth level of a particular symbol.

Usage

dom_bidprice(num) [data(N)]
where:

(num) is the number of depth level

(N) – number of the data series

Example

dom_bidprice (4); will return the bid price for the 5th level of depth for the data1

dom_bidprice (2) data2; will return the bid price for the 3rd level of depth for the data2

dom_bidscount( DOM)

Returns the number of bid depth levels available for a particular symbol.

Usage

dom_bidscount [data(N)]

where: (N) – number of the data series

Example

dom_bidscount will return 10 if 10 bid levels of the market depth are available for the data1

dom_bidscount data2 will return 6 if 6 bid levels of the market depth are available for the data2

dom_bidsize( DOM)

Returns the bid size for the certain depth level of a particular symbol.

Usage

dom_bidsize(num) [data(N)]
where:

(num) is the number of depth level

(N) – number of the data series

Example

dom_bidsize (2) will return 1500 if the bid size for the 3rd level of depth on data1 is 1500

dom_bidsize (0) data2 will return 750 if the bid size for the 1st level of depth on data2 is 750

dom_isconnected( DOM)

Returns a logical value indicating the availability of the market depth data; returns a value of True if the market depth data is available and a value of False if the market depth data is not available.

Usage

dom_isconnected

Example

Print the ask size for the 1st level of market depth if the market depth data is available

variables:

var0(0);

if dom_isconnected then

var0 = dom_askprice(0);

print(var0);

Any input on which columns and what order to present to Excel in the csv, for a useful analysis?

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

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 Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
ZombieSqueeze
Platforms and Indicators
About a successful futures trader who didnt know anythin …
Psychology and Money Management
 
  #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,469 since Jun 2009
Thanks Given: 33,246
Thanks Received: 101,669


Before I even look at this, can anyone confirm if EasyLanguage is processing these requests for every market depth move, or is it only on Last changes?

I mean lets say I run it on a 1-tick chart, that still has me missing the majority of market depth movements.

I looked at their documentation and didn't see it clarified as to how to access all market depth changes, even without a Last change.

@MultiCharts, could you clarify?

Thx,
Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

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 Started this thread Reply With Quote
  #4 (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,469 since Jun 2009
Thanks Given: 33,246
Thanks Received: 101,669

Played with this for a minute, first problem I ran into is that you have to have a DOM window open to the instrument being charted for it to work.

Hopefully it saves some time for someone else.

I can also confirm it is only updating on a Last change. No update on all the depth changes. Would be nice if this was improved to be able to monitor actual depth changes like NinjaTrader.

Will play some more soon.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

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 Started this thread Reply With Quote
Thanked by:
  #5 (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,469 since Jun 2009
Thanks Given: 33,246
Thanks Received: 101,669



Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

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 Started this thread Reply With Quote
  #6 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


Big Mike View Post
I can also confirm it is only updating on a Last change. No update on all the depth changes. Would be nice if this was improved to be able to monitor actual depth changes like NinjaTrader.

You could try to use RecalcLastBarAfter() to force a recalculation of the indicator/signal.

For what it's worth, I think it's a great idea to collect market depth. I'm planning to do the same, but I'm waiting for the Release version of MC8 before updating -- so no valuable input from me (yet).

Reply With Quote
Thanked by:
  #7 (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,469 since Jun 2009
Thanks Given: 33,246
Thanks Received: 101,669


Jura View Post
You could try to use RecalcLastBarAfter() to force a recalculation of the indicator/signal.

For what it's worth, I think it's a great idea to collect market depth. I'm planning to do the same, but I'm waiting for the Release version of MC8 before updating -- so no valuable input from me (yet).

Well in its current form, there is no depth to record really. I mean it's not real true L2 depth events, it only changes on every Last.

I was more interested in looking at patterns within the depth, as in changes in orders between the Last executions.

I still intend to play with it, but I think NinjaTrader is the better platform if you need event driven on-market-depth.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

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 Started this thread Reply With Quote
Thanked by:
  #8 (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,469 since Jun 2009
Thanks Given: 33,246
Thanks Received: 101,669


Jura View Post
You could try to use RecalcLastBarAfter() to force a recalculation of the indicator/signal.

Worth a shot, if it will accept double values so a value such as 0.01 seconds could be entered.

But it looks like it only accepts an int, meaning once per second.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

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 Started this thread Reply With Quote
Thanked by:
  #9 (permalink)
 SPMC 
GER
 
Experience: Advanced
Platform: MC
Trading: ES
Posts: 144 since May 2011
Thanks Given: 11
Thanks Received: 213

Mike, did you look at the included ---Market Depth on Chart--- indicator, it is the first at insert study.
The indicator update with
UpdateSpeed_seconds(0.1);
RecalcLastBarAfter(UpdateSpeed_seconds);

so it is not event driven.

It updates as similar as the DOM with Interactive, if you use TT Trader connection you could try to lower the update limit to 0.01. The only problem is that you can only use the broker data for the DOM data displayed, the indiactor cant receive Level 1 and Level 2 data from Iqfeed. So i need to run a IQFeed chart with a hidden IB chart in the background.

Reply With Quote
Thanked by:
  #10 (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,469 since Jun 2009
Thanks Given: 33,246
Thanks Received: 101,669



SPMC View Post
Mike, did you look at the included ---Market Depth on Chart--- indicator, it is the first at insert study.
The indicator update with
UpdateSpeed_seconds(0.1);
RecalcLastBarAfter(UpdateSpeed_seconds);

so it is not event driven.

It updates as similar as the DOM with Interactive, if you use TT Trader connection you could try to lower the update limit to 0.01. Not sure if a human eye could see differences that fast.
The only problem is that you can only use the broker data for the DOM data displayed, the indicator cant receive Level 1 and Level 2 data from Iqfeed. So i need to run a IQFeed chart with a hidden IB chart in the background.

Thanks, no I did not see it. I don't really look through that list every release, just look only at the stuff I have written.

So it seems Jura was right with his suggestion, and it does accept a double. Very nice.

I will test out your workaround with IQFeed.

Thx

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

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 Started this thread Reply With Quote
Thanked by:




Last Updated on May 29, 2015


© 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