NexusFi: Find Your Edge


Home Menu

 





how to code an intrabar indicator based on price offset from open that fires once/bar


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 vickisb 
Sarasota FL
 
Experience: Intermediate
Platform: Ninja Trader
Trading: ES
Posts: 83 since Feb 2017
Thanks Given: 45
Thanks Received: 27

I want to perform an action (e.g., draw an arrow, play a sound or enter a trade) intrabar (only once) when price crosses X number of ticks below/above the current bar's open. How would I code that condition in an indicator or strategy?

For instance, on a UniRenko bar chart configured for a reversal bar at 30 ticks, if the bars are trending up and price pulls back 20 ticks below the open, I want to play a wav to alert me.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Ceasefire Surges to 19.5% on US 15-Point Plan -- 82 …
Prediction Markets & Event Contracts
El Clasico Draws $9.2M in Prediction Market Action -- Bi …
Prediction Markets & Event Contracts
TradingView Opens Volume Footprint Data to Pine Script - …
TradingView
Cboe Files for Near 24x5 Equities Trading -- December 20 …
Traders Hideout
Kraken Becomes First US Digital Asset Bank With Direct F …
Cryptocurrency
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
22 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
5 thanks
  #2 (permalink)
 
DavidHP's Avatar
 DavidHP 
Isla Mujeres, MX
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Ninjatrader / Optimus Futures / AmpFutures
Trading: NQ / ES / 6E / 6B / CL
Frequency: Every few days
Duration: Minutes
Posts: 1,801 since Aug 2009
Thanks Given: 11,742
Thanks Received: 3,018


vickisb View Post
I want to perform an action (e.g., draw an arrow, play a sound or enter a trade) intrabar (only once) when price crosses X number of ticks below/above the current bar's open. How would I code that condition in an indicator or strategy?

For instance, on a UniRenko bar chart configured for a reversal bar at 30 ticks, if the bars are trending up and price pulls back 20 ticks below the open, I want to play a wav to alert me.

Can you post the code you are using?
Also, you may get better results if you post on this thread.


Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Follow me on X Reply With Quote
  #3 (permalink)
 vickisb 
Sarasota FL
 
Experience: Intermediate
Platform: Ninja Trader
Trading: ES
Posts: 83 since Feb 2017
Thanks Given: 45
Thanks Received: 27



DavidHP View Post
Can you post the code you are using?
Also, you may get better results if you post on this thread.

Thanks. Here's the post in the thread you suggest, with more details:


Started this thread Reply With Quote




Last Updated on January 15, 2026


© 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