NexusFi: Find Your Edge


Home Menu

 





Strategy creating to many orders with ATM


Discussion in NinjaTrader

Updated
    1. trending_up 1,464 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 2 attachments




 
Search this Thread

Strategy creating to many orders with ATM

  #1 (permalink)
 
ryangillespie's Avatar
 ryangillespie 
london, England
 
Experience: Intermediate
Platform: Ninjatrader
Trading: CL, ES
Posts: 41 since Nov 2011
Thanks Given: 10
Thanks Received: 2

I have tried to add ATM orders to a strategy but rather than submit one order per deirectiopn it submits as much as my account will allow straight after each other. Can someone please point out my error?

Thanks,

Attached Files
Elite Membership required to download: ZeroLagCrossShortATM.cs
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
22 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 MooreTech 
Orlando, Florida
 
Experience: Advanced
Platform: NinjaTrader, TradeStation, MultiCharts, eSignal, MetaTrader
Trading: ES
Posts: 57 since Aug 2010
Thanks Given: 6
Thanks Received: 73


You need to assign a value to the orderId variable to prevent this. Here is a sample (I have not tested this).

ZeroLagCrossShortATM1.cs

If you have any questions about our products or services please contact me via Private Message
Follow me on Twitter Reply With Quote
  #4 (permalink)
 
ryangillespie's Avatar
 ryangillespie 
london, England
 
Experience: Intermediate
Platform: Ninjatrader
Trading: CL, ES
Posts: 41 since Nov 2011
Thanks Given: 10
Thanks Received: 2


MooreTech View Post
You need to assign a value to the orderId variable to prevent this. Here is a sample (I have not tested this).

Attachment 60283

Thanks for you help, thats great. I can now use your example in future. The strategy will not place any positions , however it did before the ATM strategy was incorporated. I cant see the problem, can anyone else?

Started this thread Reply With Quote




Last Updated on January 22, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts