For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Compound value
-
I am translating Thinkorswim strategy into to backtrader need help translating TOS built in function in backtrader
https://github.com/sureshja/ThinkOrSwim/blob/master/HeikinAshiSuperTrendStrategy.ts
input aggrPd1 = AggregationPeriod.FOUR_HOURS;
def haop1 = CompoundValue(1, (haop1[1] + hacl1[1]) / 2, (open(period = aggrPd1)[1] + close(period = aggrPd1)[1]) / 2);compound value reference
https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Others/CompoundValue