Understanding & Converting ThinkScripts CompoundValue Function
问题 I'm currently converting a ThinkScript indicator to C#, however, I've run into this CompoundValue function and I'm unsure how to covert it. The documents reads : Calculates a compound value according to following rule: if a bar number is greater than length then the visible data value is returned, otherwise the historical data value is returned. This function is used to initialize studies with recursion. Example Use: declare lower; def x = CompoundValue(2, x[1] + x[2], 1); plot