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,394 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?
Daytrading to swingtrading
Traders Hideout
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
Ninjatrader users - good CONNECTIONs post and article fr …
NinjaTrader
Thanks Mike. Godspeed.
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
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