NinjaTrader Support Forum  

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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06-21-2012, 11:42 AM   #1
RodS7
Member
 
Join Date: Mar 2012
Location: DFW, TX
Posts: 40
Thanks: 3
Thanked 7 times in 4 posts
Default Strategy constantly cancelling and replacing order

I have a strategy that enters the market via Limit Order at a moving average.

As the strategy is set to calculate on each tick, it appears the strategy is constantly canceling an order then reentering it - even though the limit price has not changed

Is this normal? Is there a way to stop this from happening?


if (Signal[1] > 0 && Close[0] >= KeltnerEMAChannelTrend(4, 1.5, 21).Midline[0] )
if(Position.MarketPosition == MarketPosition.Flat) // allows only 1 trade per direction
EnterLongLimit(1,KeltnerEMAChannelTrend(4, 1.5, 21).Midline[0], "ZLRe1");
RodS7 is offline  
Reply With Quote
 

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
Strategy with ATM and cancelling non-filled order at bar close Baseheadz Strategy Development 4 08-11-2011 01:37 PM
Order not cancelling kaywai Strategy Development 2 05-08-2011 03:03 AM
Strategy - Limit Order Not Cancelling JayJoshi Strategy Development 7 03-17-2011 05:41 AM
Order Cancelling occam General Programming 5 12-08-2010 08:30 AM
Error canceling and replacing a stop limit order ppperkins Strategy Development 1 01-22-2010 02:43 PM


All times are GMT -6. The time now is 04:13 AM.