For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
highest/lowest function, get date of trigger candle
-
Hello, i was wondering if there is a way to detect the date of the highest / lowest candle in a range of candles.
So that if backtrader detects a new high / low it will store not only the high / low value, it will also store the date to a variable.
-
Try to use indicators
FindFirstIndexLowest
,FindLastIndexLowest
,FindFirstIndexHighest
andFindLastIndexHighest
, -
@ab_trader said in highest/lowest function, get date of trigger candle:
FindFirstIndexLowest
Thank you verymuch. That was exactly what I was looking for. Where in the docs is this located?
-