server based auto strat - NinjaTrader | futures io social day trading
futures io futures trading


server based auto strat
Updated: Views / Replies:926 / 5
Created: by gparkis Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

server based auto strat

  #1 (permalink)
Elite Member
New York City, NY/USA
 
Futures Experience: Intermediate
Platform: NT
Favorite Futures: 6E, ZN, CL
 
Posts: 121 since Dec 2010
Thanks: 3 given, 74 received

server based auto strat

when employing a server based auto strategy with regards to NT7 and the server goes down then in all respects so does the auto strategy.

when server and NT7 are back up and on, does the auto strat pick up where it left off or does it start anew?

Reply With Quote
 
  #2 (permalink)
Membership Revoked
Szczecin
 
Futures Experience: Intermediate
Platform: Ninja, writing own now
 
Posts: 212 since Mar 2010
Thanks: 47 given, 102 received

Pretty irrelevant - firs, nInja is not terribly good at syncing, second if you check ninja you see the strats do not autostart.

Anyhow, in a server failure scenario you can have massive losses simply because you may be in a position without stop (execution not reported, ninja never puts the stop in as it is not running). Ninja syncing is your smallest problem - you should manually make sure your account and positions are in order.

Reply With Quote
 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,652 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary

Answer
This post has been selected as an answer to the original posters question Answer



NetTecture View Post
Pretty irrelevant - firs, nInja is not terribly good at syncing, second if you check ninja you see the strats do not autostart.

Anyhow, in a server failure scenario you can have massive losses simply because you may be in a position without stop (execution not reported, ninja never puts the stop in as it is not running). Ninja syncing is your smallest problem - you should manually make sure your account and positions are in order.

When running a strategy, it is possible to

-> let NinjaTrader manage the exits (OCO either profit, trailing stop or initial stop)
-> add a hard stop at the exchange which is far away from the stop managed by Ninjatrader

In case that the server goes down, you still have the hard stop at the exchange. With the hard stop you may suffer from larger losses than usual, but you are still covered against a major event. The hard stop would also protect you, if a larger move occurs intrabar (not applicable to range or Renko bars), when your strategy only executes at bar close.

Another way of protecting oneself against a major move would be an out-of-the money option, but this would rather apply to position trading than intraday trading.

Reply With Quote
 
  #4 (permalink)
Membership Revoked
Szczecin
 
Futures Experience: Intermediate
Platform: Ninja, writing own now
 
Posts: 212 since Mar 2010
Thanks: 47 given, 102 received


Fat Tails View Post
When running a strategy, it is possible to

-> let NinjaTrader manage the exits (OCO either profit, trailing stop or initial stop)
-> add a hard stop at the exchange which is far away from the stop managed by Ninjatrader

In case that the server goes down, you still have the hard stop at the exchange. With the hard stop you may suffer from larger losses than usual, but you are still covered against a major event. The hard stop would also protect you, if a larger move occurs intrabar (not applicable to range or Renko bars), when your strategy only executes at bar close.

Another way of protecting oneself against a major move would be an out-of-the money option, but this would rather apply to position trading than intraday trading.

No, you do not have a hard stop at the exchange - not under ALL conditions. This is the classical distributed transaction problem most people can not solve. Yes, you ahve the hard stop - IF it is at the exchange. But if the server dies EXACTLY at the right moment, then no, the stop is not in place yet. Because the entry order was sent, but Ninja diedd before getting the execution. Plus, you also may have targets in place, in which case - unless you run that at a broker that does broker side OCO (not sure ninja can do that) - you loose the OCO part even if the target + stop are in place, so you may end up getting hit at both, resulting in an unprotected market condition again.

The ONLY sensible solution is a dead man switch - a second server ,separate data center, taht gets regularly pinged by the Ninja instance (dummy strategy). If the ping is not received, then it connects to the broker, evaluates all orders and positions and flattens the account. Having 2 of them can be seen as sensible baseline security for any larger account, but even one is easy to do and QUITE cheap. I would put one home, one at amazon and one at Azure to be safe - tehy do not need a LOT of code, so the instances can be small.

This is a timing issue, but 10 years designing server software has teached me to look for worst case scenarios.

Reply With Quote
The following 2 users say Thank You to NetTecture for this post:
 
  #5 (permalink)
Elite Member
Austin, TX
 
Futures Experience: Master
Platform: ninjatrader, r-trader
Favorite Futures: CL, NG, TF, NQ, YM, GC, ES
 
liquidcci's Avatar
 
Posts: 862 since Jun 2011
Thanks: 609 given, 1,051 received


NetTecture View Post
No, you do not have a hard stop at the exchange - not under ALL conditions. This is the classical distributed transaction problem most people can not solve. Yes, you ahve the hard stop - IF it is at the exchange. But if the server dies EXACTLY at the right moment, then no, the stop is not in place yet. Because the entry order was sent, but Ninja diedd before getting the execution. Plus, you also may have targets in place, in which case - unless you run that at a broker that does broker side OCO (not sure ninja can do that) - you loose the OCO part even if the target + stop are in place, so you may end up getting hit at both, resulting in an unprotected market condition again.

The ONLY sensible solution is a dead man switch - a second server ,separate data center, taht gets regularly pinged by the Ninja instance (dummy strategy). If the ping is not received, then it connects to the broker, evaluates all orders and positions and flattens the account. Having 2 of them can be seen as sensible baseline security for any larger account, but even one is easy to do and QUITE cheap. I would put one home, one at amazon and one at Azure to be safe - tehy do not need a LOT of code, so the instances can be small.

This is a timing issue, but 10 years designing server software has teached me to look for worst case scenarios.

Interesting solution to a potential problem I never considered. Thanks

"The day I became a winning trader was the day it became boring. Daily losses no longer bother me and daily wins no longer excited me. Took years of pain and busting a few accounts before finally got my mind right. I survived the darkness within and now just chillax and let my black box do the work."
Reply With Quote
 
  #6 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,652 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


NetTecture View Post
No, you do not have a hard stop at the exchange - not under ALL conditions. This is the classical distributed transaction problem most people can not solve. Yes, you ahve the hard stop - IF it is at the exchange. But if the server dies EXACTLY at the right moment, then no, the stop is not in place yet. Because the entry order was sent, but Ninja diedd before getting the execution. Plus, you also may have targets in place, in which case - unless you run that at a broker that does broker side OCO (not sure ninja can do that) - you loose the OCO part even if the target + stop are in place, so you may end up getting hit at both, resulting in an unprotected market condition again.

@NetTecture: Thank you for your answer. I understand that there is a low probability scenario that NinjaTrader or the internet connection stalls just when you send the stop order, such that the position has been entered and the hard stop is not being sent. But if this is to happen, Ninjatrader must break down exactly during the few milliseconds that elapse between sending the entry order and sending the stop order.

Very unlikely. There are other higher probability scenarios (failure of the broker, failure of the connection exchange broker, etc.) which will induce a higher risk.

NinjaTrader does broker side OCO, depending on whether the broker API offers it. With NinjaTrader/Interactive Brokers the OCO functionality is not managed by NinjaTrader, but by Interactive Brokers. In case that NinjaTrader or the internet connection to the broker fails, the OCO will still be correctly executed. However, if the broker fails, it will not work, as OCO is not supported by most of the exchanges (there are exceptions, but then the broker will need to implement the interface with the exchange to transfer the OCO orders).



NetTecture View Post
The ONLY sensible solution is a dead man switch - a second server ,separate data center, taht gets regularly pinged by the Ninja instance (dummy strategy). If the ping is not received, then it connects to the broker, evaluates all orders and positions and flattens the account. Having 2 of them can be seen as sensible baseline security for any larger account, but even one is easy to do and QUITE cheap. I would put one home, one at amazon and one at Azure to be safe - tehy do not need a LOT of code, so the instances can be small.

This is a timing issue, but 10 years designing server software has teached me to look for worst case scenarios.

I would evaluate the probability that NinjaTrader fails during the few milliseconds when an entry order and a stop order is placed as negligable compared to other risks that can not be altered - such as a failure of the broker or the exchange. The protection in such a case can be

-> limited position sizing
-> a long options position

Operational risk can be reduced to a reasonable level, but it can never be excluded.

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:

Reply



futures io > > > > server based auto strat

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aardvark auto strategy - based on Hurley nanobiotech Elite Automated NinjaTrader Trading 175 February 17th, 2014 03:46 PM
Is MC able to backtest strategies based on multiple range-bar-based frames? theorist MultiCharts 5 December 5th, 2012 12:36 PM
Server based trading gparkis Emini Index Futures Trading 6 August 14th, 2012 10:14 AM
Pimp My Strat! MXASJ The Elite Circle 53 August 19th, 2011 02:44 PM
A new auto trading strat wanted PandaWarrior NinjaTrader Programming 1 February 4th, 2011 07:42 PM


All times are GMT -4. The time now is 06:56 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-13 in 0.15 seconds with 31 queries on phoenix via your IP 54.90.92.204