NexusFi: Find Your Edge


Home Menu

 





Is NT fast enough to autotrade small timeframes?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one David with 9 posts (1 thanks)
    2. looks_two Zoethecus with 3 posts (4 thanks)
    3. looks_3 traderwerks with 3 posts (5 thanks)
    4. looks_4 zeller4 with 2 posts (5 thanks)
      Best Posters
    1. looks_one zeller4 with 2.5 thanks per post
    2. looks_two traderwerks with 1.7 thanks per post
    3. looks_3 Crow with 1.5 thanks per post
    4. looks_4 Zoethecus with 1.3 thanks per post
    1. trending_up 8,177 views
    2. thumb_up 18 thanks given
    3. group 7 followers
    1. forum 22 posts
    2. attach_file 0 attachments




 
Search this Thread

Is NT fast enough to autotrade small timeframes?

  #11 (permalink)
 traderwerks   is a Vendor
 
Posts: 692 since Jun 2009
Thanks Given: 436
Thanks Received: 465


David View Post

So far today, the strat has twice encountered the dreaded "sell or stop limit orders can't be placed above the market" condition. That triggers a rejected order and shuts the strat down, as I've not yet coded in rejection handling routines.

Don't use stop limit orders with the Ninja API.

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Futures True Range Report
The Elite Circle
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
  #12 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009


David View Post
Have you traded Aardvark in a live or papertrade environment yet?

David

I'm trading Aardvark in SIM for now.

I can relate to your problem because I ran into it on a strat that had limit orders placed a bit in advance and got that ugly error message when price moved fast in thin markets shutting the strat down. But since my profit targets were larger than yours, I didn't mind taking a couple of buffer ticks to get a fill. Two ticks wasn't going to be the difference in whether it was profitable or not, since it traded about twice a day.

Check out Steadfast.
Steadfast Networks :: Chicago Web Hosting, Dedicated Servers, and Colocation

Reply With Quote
  #13 (permalink)
 
gulabv's Avatar
 gulabv 
Dallas, TX
 
Experience: Beginner
Platform: Ninjatrader
Broker: Zen-Fire
Trading: ZN, 6E
Posts: 286 since May 2010
Thanks Given: 161
Thanks Received: 169



traderwerks View Post
Don't use stop limit orders with the Ninja API.

Can you elaborate why not?

Reply With Quote
  #14 (permalink)
 David 
UK
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Futures
Posts: 88 since Jun 2009
Thanks Given: 35
Thanks Received: 84



They look good - thanks for the suggestion. Have you used them?

David

Started this thread Reply With Quote
  #15 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009


David View Post
They look good - thanks for the suggestion. Have you used them?

David

No, but they come highly recommended.

Reply With Quote
  #16 (permalink)
 traderwerks   is a Vendor
 
Posts: 692 since Jun 2009
Thanks Given: 436
Thanks Received: 465


gulabv View Post
Can you elaborate why not?

If you write the stop in your code and just send the limit order, you will never get that error message. The end result is the same.

Reply With Quote
Thanked by:
  #17 (permalink)
 
gulabv's Avatar
 gulabv 
Dallas, TX
 
Experience: Beginner
Platform: Ninjatrader
Broker: Zen-Fire
Trading: ZN, 6E
Posts: 286 since May 2010
Thanks Given: 161
Thanks Received: 169


traderwerks View Post
If you write the stop in your code and just send the limit order, you will never get that error message. The end result is the same.

traderwerks - do you mean call setstoploss() function and then enterlimitlong() function for example at a price above the current ask? Could you share a code sample if you don't mind so I understand your statement better. Thanks!

gulabv

Reply With Quote
  #18 (permalink)
 traderwerks   is a Vendor
 
Posts: 692 since Jun 2009
Thanks Given: 436
Thanks Received: 465


gulabv View Post
traderwerks - do you mean call setstoploss() function and then enterlimitlong() function for example at a price above the current ask? Could you share a code sample if you don't mind so I understand your statement better. Thanks!

gulabv

Use the OnMarketData call to get the incoming price and then send the order. Also help ful if you want to trigger off the bid/ask instead of last. There is code on the web if you Google for it.

Reply With Quote
Thanked by:
  #19 (permalink)
 Crow 
Las Vegas, Nevada
 
Experience: None
Platform: MultiCharts
Posts: 52 since Apr 2010
Thanks Given: 20
Thanks Received: 19


David View Post
Interesting idea, thanks Crow. I didn't want to reinvent any wheels, hence using NT for its mtf and inbuilt connectivity and order handling capabilities but I'm starting to wonder if it is just adding another layer of latencies.

I see that you use Java. A friend builds HFT systems in Java with direct connectivity to the exchange APIs running on Linux boxes, and gets stunning performance. Have you got any recommendations for Java libraries?

My broker is Interactive Brokers so they have a great API to exploit.

Thanks

David

I am still in the strategy development phase and I have not yet found a strategy that I feel comfortable enough automating and letting it run on its own. However, I don't use NinjaTrader and built some of my own charting tools based on JFreeChart (java library for graphics, MyDoggy (Java Window Manager), and everything runs inside RapidMiner (#1 open source datamining platform by KDNuggets). It handles real-time data, but I'm mostly using it to look at historical data in search for a profitable strategy. Main reason that I went with a completely custom solution is because I didn't want to be limited with visualization. Secondary is because and I don't know how Ninja handles the data. It makes some great candlestick charts and pretty indicators, but I also use Linux and Ninja doesn't run too well in WINE. That said, I am surprised your friend built an HFT system on Java. I have not had any performance issues with Java, but the garbage collector / virtual machine do add some performance overhead. I really like Java and it's my favorite programming language, haven't really used C# too much (again, Linux), but it's probably very similar.

Reply With Quote
Thanked by:
  #20 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184



David View Post
Interesting idea, thanks Crow. I didn't want to reinvent any wheels, hence using NT for its mtf and inbuilt connectivity and order handling capabilities but I'm starting to wonder if it is just adding another layer of latencies....
My broker is Interactive Brokers so they have a great API to exploit.

Thanks

David

Since IB data is 'filtered data', I would recommend an unfiltered data provider before you proceed much further in your systems development.

TJ

Reply With Quote




Last Updated on October 5, 2010


© 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