NexusFi: Find Your Edge


Home Menu

 





Maximum of 1 ATM strategy at a time


Discussion in NinjaTrader

Updated
    1. trending_up 1,887 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?
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
Daytrading to swingtrading
Traders Hideout
No book, only a stair: journaling fills where price move …
Cryptocurrency
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 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,059

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