![]() |
|
|||||||
| Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Jan 2009
Posts: 55
Thanks: 0
Thanked 0 times in 0 posts
|
Hello,
I currently have a multitimeframe strategy setup on 4 range and 1 range bars. 4 range handle the entry conditions and initial entry order, while the 1 range series handles order cancellation if the close price moves 2 ticks away from entry order. The problem im having is that once an order has been placed, a cancellation preceeds it immediately. PHP Code:
I cannot use Indicator(BarsArray[1])[0] command as the indicator is custom 3rd party. CalculateonBar close is true. Any ideas on how to combat this? Thanks James |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
James,
I suggest you actually print what the Close[0] is and what your LimitPrice is being evaluated as. Then compare it to what you see on the chart to see how they can be evaluated together.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Jan 2009
Posts: 55
Thanks: 0
Thanked 0 times in 0 posts
|
Hey Josh,
Yeah i have done that. The problem still exists though. |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
jthom,
Can you please provide me with what kind of print outs you were receiving numerically? Thank you. Also, please turn on TraceOrders = true so you can see the exact reason an order was cancelled. Thanks.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multi time frame strategy? | Hanko | Strategy Analyzer | 4 | 11-09-2012 03:34 PM |
| # of bars are different in multi time frame strategy | binwang2 | General Programming | 3 | 04-01-2010 07:23 AM |
| Multi-Instrument Multi-Time frame strategy | Shansen | Strategy Development | 1 | 12-28-2009 06:09 AM |
| Multi-time frame strategy | laparker | Strategy Development | 4 | 05-24-2009 10:03 PM |
| Multi-time frame strategy - Longer-term real-time calculations | Shansen | Strategy Development | 1 | 04-19-2009 06:36 AM |