NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 09-21-2009, 07:46 AM   #1
atrader
Member
 
Join Date: Mar 2009
Posts: 66
Thanks: 0
Thanked 0 times in 0 posts
Question Why does my strategy send orders by itself?

I made a stategy to handle all my orders by my self. It ran very good in similation mode. However, when I run it in real time mode, the strategy send close position orders by itself? This makes my losing control to my strategy. I noticed that there is some items in strategy default, such as exit on close.
My questions are:
1. how can I access those default settings in code and change it?
2. where can I find the meanings of those default stuff?
3. why do the simulation and real time run have so much difference(from running pretty good to basically not run at all)?
atrader is offline  
Reply With Quote
Old 09-21-2009, 08:13 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Please see these articles:

1. http://www.ninjatrader-support.com/v...06&postcount=5
2. http://www.ninjatrader-support.com/H...romAChart.html
3. http://www.ninjatrader-support.com/H...TimeVsBacktest
NinjaTrader_Josh is offline  
Reply With Quote
Old 09-24-2009, 01:55 PM   #3
atrader
Member
 
Join Date: Mar 2009
Posts: 66
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks, Josh! Can you give me a full list of the defaults so that I can re-initialize them? Also, can I make a strategy purelly coded by myself without those hidden defaults? Thanks again!
atrader is offline  
Reply With Quote
Old 09-24-2009, 02:12 PM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Not sure what you mean by "re-initialize" and "hidden defaults". Please clarify.
NinjaTrader_Josh is offline  
Reply With Quote
Old 09-24-2009, 02:23 PM   #5
atrader
Member
 
Join Date: Mar 2009
Posts: 66
Thanks: 0
Thanked 0 times in 0 posts
Default

The link http://www.ninjatrader-support2.com/...06&postcount=5 you provided is using override to re-initialize the hidden defaults. However, it is only part of them. Can you provide a full list of those defaults? Also, can I make a strategy without those hidden stuff? And how? Thanks!
atrader is offline  
Reply With Quote
Old 09-24-2009, 02:33 PM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

What is on the list is what is provided. Even some of the things on that list are not supported properties.
NinjaTrader_Josh is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ninjatrader does not send the orders to tws cesas Automated Trading 13 06-08-2009 09:42 AM
Send orders from Super Dom nachig ATM Strategies (Discretionary Trading) 3 03-23-2009 03:51 PM
Send confirmation orders by e-mail andrgm General Programming 2 10-16-2008 11:37 AM
Is it possible to send out OCO orders using NT DLL? clearpicks Automated Trading 8 05-24-2008 07:28 PM
send many orders in one instrument dantes Strategy Development 6 04-23-2008 10:16 AM


All times are GMT -6. The time now is 11:26 AM.