NexusFi: Find Your Edge


Home Menu

 





Out of the last x bars mark bars with the same high/low


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
skiguy
sydney + nsw australia
 
Posts: 16 since Jul 2013
Thanks Given: 8
Thanks Received: 6

I was unable to find an existing indicator for the above.

Look back period = x

examples below are based on a look back period of 10

mark the high of the bars that had the same high in the last 10 bars

mark the low of the bars that had the same high in the last 10 bars


ideally


if 4 of the highs during the look back period had the same high then mark each of those bars with the number 4.

if 4 of the lows during the look back period had the same low then mark each of those bars with the number 4

if 3 of the highs during the look back period had the same high then mark each of those bars with the number 3

and so on.

or even mark the most recent bar that had an equal high if that is so much easier

minimum number with same h/l would of course be 2.

So far I have been able to either find everything I needed or written the code myself. In some cases I have made my own versions of complex stuff and worked out what to change.

I am open to custom development also.

Just thought it would be a pretty easy thing to code for an experienced NT dev.

Especially if it was just to mark the bar highs and lows with a dot e.g. not do the numbering.

Open to any ideas.

This would be an extremely good tool to have.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Five Days Until the Gap Dies -- CME Goes 24/7 on All Dig …
Traders Hideout
OneChronos Launches First Combinatorial Auction FX Venue …
Currencies
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
Hormuz Normalization Collapses to 19.5% -- Iran Regime F …
Prediction Markets & Event Contracts
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks




Last Updated on April 6, 2015


© 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