NexusFi: Find Your Edge


Home Menu

 





Maximum of 1 ATM strategy at a time


Discussion in NinjaTrader

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




 
Search this Thread

Maximum of 1 ATM strategy at a time

  #1 (permalink)
 andreibara 
Montreal
 
Experience: Intermediate
Platform: Ninjatrader & Tradingview
Trading: ES, Stocks & Crypto
Posts: 3 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?
What broker to use for trading palladium futures
Commodities
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
46 thanks
Spoo-nalysis ES e-mini futures S&P 500
16 thanks
GFIs1 1 DAX trade per day journal
15 thanks
The Trading Pit "Futures VIP" Account Journal
15 thanks
Trading with Intuition
14 thanks
  #2 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,335 since Jun 2010
Thanks Given: 354
Thanks Received: 1,049

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


© 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