Launch sub account strategy in ninjascript - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

Launch sub account strategy in ninjascript
Started:June 10th, 2015 (01:03 PM) by talka Views / Replies:338 / 2
Last Reply:June 11th, 2015 (03:56 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Launch sub account strategy in ninjascript

Old June 10th, 2015, 01:03 PM   #1 (permalink)
Trading Apprentice
israel tel aviv
Futures Experience: Advanced
Platform: NT
Favorite Futures: ES/FDAX/YM/NQ/TF
Posts: 7 since Jan 2015
Thanks: 8 given, 1 received

Launch sub account strategy in ninjascript

Hello everyone,
I have this issue where my orders are colliding each other (I need to separate my long entry so it won't be used as an exit for my short but as a new entry), therefore I was thinking to use sub accounts.
I was wondering if anyone could help me understand how can I launch a strategy under a sub account.
I have this ninjascript code where you can see that I launch my strategy under my existing account, but I need to enter the sub account information.

MyStrategy childStrategy= new MyStrategy ();
childStrategy.Account = Account;
Period minutePeriod = new Period(PeriodType.Minute,1,MarketDataType.Last);
if (!childStrategy.Enabled)
childStrategy.Enabled = true;

the line marked in red is the line where i want to replace - instead of using "Account" object i want to use something like "Sub Account".


Reply With Quote

Old June 10th, 2015, 01:03 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old June 11th, 2015, 03:56 PM   #3 (permalink)
Trading Apprentice
Charlottesville, VA
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Futures
Posts: 21 since Apr 2014
Thanks: 0 given, 13 received

Being long and short at the same time is virtually the same as being flat. I don't understand what you are trying to do. If you are trading calendar spreads, then you should set the proper instrument. Wanting to go long and short the same instrument is utterly useless and a waste a time. It is no different than going flat.

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Launch sub account strategy in ninjascript

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webinar Sept 28th, 4:30pm Eastern: Advanced Ninjascript Strategy Programming @shodson shodson The Elite Circle 66 December 5th, 2014 11:28 AM
Strategy to monitor ALL account orders? SetFreeByTruth NinjaTrader Programming 18 November 14th, 2014 08:14 AM
NinjaScript risk % of account equity per trade GgMc NinjaTrader 2 August 27th, 2014 07:11 AM
Can I use a Ninja demo account to trade with a live web-based account? budfox NinjaTrader 23 July 16th, 2013 07:49 AM
Highlight Account, Qty and ATM Strategy jsengxx2 NinjaTrader Programming 1 March 24th, 2013 06:38 PM

All times are GMT -4. The time now is 12:17 PM.

Copyright © 2016 by 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 2016-10-22 in 0.07 seconds with 19 queries on phoenix via your IP