NexusFi: Find Your Edge


Home Menu

 





Maximum of 1 ATM strategy at a time


Discussion in NinjaTrader

Updated
    1. trending_up 1,448 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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Quantum physics & Trading dynamics
The Elite Circle
MC PL editor upgrade
MultiCharts
 
  #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,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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