NexusFi: Find Your Edge


Home Menu

 





Enter after X bars Ninjatrader 8


Discussion in Feedback and Announcements

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




 
Search this Thread
  #1 (permalink)
jan1980
Rotterdam, the Netherlands
 
Posts: 1 since Feb 2024
Thanks Given: 2
Thanks Received: 0

Hi, I would like to enter X bars after my trigger signal which I can choose by a user input in Strategy Builder in Ninjatrader 8. How can I do this ?


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
I Have a Thing Called Iran -- Trump Stays in DC as Airsp …
Prediction Markets & Event Contracts
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Powell in 48 Hours: Word Markets Give 78% on Inflation, …
Prediction Markets & Event Contracts
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
Al Arabiya: US-Iran Draft Deal Within Hours Contains Hor …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
BERN ALGOS algo trading journal
8 thanks
  #2 (permalink)
 LanceElCamino 
Phoenix, AZ
 
Experience: Beginner
Platform: Ninjatrader, TradingView
Trading: Futures
Posts: 26 since Aug 2022
Thanks Given: 7
Thanks Received: 4

Create a variable to hold the number of bars since your signal: int BarsSinceSignal = MRO(()=> TriggerSignal, 1, Count);
If BarsSinceSignal == X then enter.
https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?most_recent_occurence_mro.htm


Reply With Quote
Thanked by:
  #3 (permalink)
 jmont1 
New York, NY
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader8
Broker: Data = Rithmic -- Gives 70 Level II Data
Trading: 6C (Low Margin,) 6E, CL, GC, ES and Maybe DX for smaller tick value
Posts: 1,418 since May 2011
Thanks Given: 1,728
Thanks Received: 1,024



jan1980 View Post
Hi, I would like to enter X bars after my trigger signal which I can choose by a user input in Strategy Builder in Ninjatrader 8. How can I do this ?

@jan1980 I would suggest using the bars ago set to 7


Reply With Quote
Thanked by:




Last Updated on February 17, 2024


© 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