Hello Quantopian Community,
I am new here and I am struggling to really find examples to learn from, especially using the Pipeline. I hate to ask for help this way, but could someone write up a basic code that I can use as a reference? The criteria I am interested in is:
Only trade stocks in the SP 500 on a daily time frame
Long Entry - Close Above 200sma, Close below 5sma, RSI(2) < 10, ADX(10) > 30
Long Exit - RSI(2) > 80
Short Entry - Close Below 200sma, Close above 5sma, RSI(2) > 90, ADX(10) > 30
Short Exit - RSI(2) < 20
I know this isn't anything special, but I wanted to see an example that would encompass all the basic techniques for filtering stocks, to the specific setup, to entry and exit.
and if possible, I would like to know see how to only place trades when these conditions are met at the close of the market
if you want to add anything extra that shows good practice feel free!
Thanks in advance for any help