For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

Ascending and descending Line



  • Hi
    is there any function or indicator in backtrader to recognize that current indicator line like stochastic %K is descending or ascending? I am trying to build a strategy that if stochastic %K in weekly TimeFarme is descending or ascending so I can trade!



  • The simplest one is rate of change, if it is positive, than the indicator is ascending, otherwise - descending.


Log in to reply
 

});