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,341 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?
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
Hormuz Completely Closed: US Strikes Day 2, Iran Shoots …
Traders Hideout
Peace Deal Forward Curve: May 22%, June 51%, December 81 …
Prediction Markets & Event Contracts
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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