Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
In NinjaTrader syntax this is just GetCurrentBid() and GetCurrentAsk(). This will give you the current bid / ask price that is transacting.
If you have a limit order you submitted on the DOM that is k ticks out and over time as the market moves, if you want to know how far away your resting order is from the current best bid / best ask, all you would do is something like.
MyAskOrder -GetCurrentAsk()
or GetCurrentBid() - MyBidOrder
The difference will be the total number of ticks.
Ian
In the analytical world there is no such thing as art, there is only the science you know and the science you don't know. Characterizing the science you don't know as "art" is a fools game.
ya this is actually quite easy in NT8 even in the Strategy analyzer. just build it your self. you would want to set up a condition the first checks if there are any active orders or open positions which ever limit order your talking about. then set an action to take the absolute value of the difference of current price - that limit order. this will give you the distance in points. then you could divide by the tick value to get ticks.