MaxN/Highest
-
How should I use bt.ind.MaxN to get both max value and the date on which it has happened? For example I would like to know last 100 days high price and the date on which it has happened.
-
-
@ab_trader Thanks for the reply... but I need the date on which highest/lowest has happened?
-
@teja Look these up in the indicator reference page:
FindFirstIndex FindFirstIndexHighest FindFirstIndexLowest FindLastIndex FindLastIndexHighest FindLastIndexLowest
-
@teja said in MaxN/Highest:
I need the date on which highest/lowest has happened?
Then you need to carefully look thru the documentation by that link and find out that there is a bunch of indicators, which not only define the max/min, but the bar at which this happened. Then you need to apply the effort and put together the script which returns you the date you are looking for.
Another way is to pay to somebody to make it for you.