NexusFi: Find Your Edge


Home Menu

 





Maximum of 1 ATM strategy at a time


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 andreibara 
Montreal
 
Experience: Intermediate
Platform: Ninjatrader & Tradingview
Trading: ES, Stocks & Crypto
Posts: 4 since Oct 2020
Thanks Given: 0
Thanks Received: 0

I would like to limit the number of ATM orders to a maximum of 1 at a time (per chart and/or instrument). So if I have an active ATM in play, my system cannot trigger a second one. If there's a no code solution that would be great. If not, I would love to hear your take on it.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Five Days Until the Gap Dies -- CME Goes 24/7 on All Dig …
Traders Hideout
Cboe Launches BITVX Bitcoin Volatility Index and Unveils …
Prediction Markets & Event Contracts
White House Drops First Alien Files Today -- Market Says …
Prediction Markets & Event Contracts
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Topstep Acquires The Futures Desk -- Prop Firm Consolida …
Funded Trading Evaluation Firms
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060

I haven't done too much coding with strats... but if I understand, you only want a trade to be taken if you are currently flat?

If that is the case... you could do something like:
 
Code
if (Position.MarketPosition == MarketPosition.Flat){
  //Then take a trade
}
REFERENCE


Reply With Quote
Thanked by:




Last Updated on December 23, 2020


© 2026 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 - Downloads - Top
no new posts