Basic EMA and RSI Stratergy #408
-
Hi there, I have started having a read through the documentation and I would like to implement my own stratergy using EMA and RSI values. I would like to do similar to the following: fast_ema = period=tbc Logic to be: Entry = fast_ema crosses_above(slow_ema) and RSI_value < Threshold OR Entry = fast_ema >= slow_ema and RSI_value < Threshold I wanted to use the ta-lib intergration for getting the EMA values, but I can not find how I can use the equivilent "MA_crossed_above()" functions for these custom indicators. Any help would be greatly appreciated! Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You need to check what are the output names for the indicators you want to use. |
Beta Was this translation helpful? Give feedback.
You need to check what are the output names for the indicators you want to use.
print(fast_ema.output_names)
Then you pick the output you want to use and add the attribute of your desire. I use pandas_ta so in my case it would be:
fast_ema.ema_crossed_above
In which 'ema' is the output...