Hey guys!
I am new here and I have a question,
is there a way to code whenever a certian candlestick is touching the upper bollinger band he will go short and buy back when he has 30c of downtrend?
Hey guys!
I am new here and I have a question,
is there a way to code whenever a certian candlestick is touching the upper bollinger band he will go short and buy back when he has 30c of downtrend?
Roman,
I think the answer is yes. You are just talking about a high value (out of the OHLC minutely bars) reaching a level. You'd need to then buy short, record the price, and then buy back when the price drops by 30 cents. There's an example on the help page of how to use the built in Bollinger bands (https://www.quantopian.com/help#bollinger-bands) or you could write your own code from scratch.
Generally, you can pretty much do anything on Quantopian, so long as it can be done in less than 50 seconds of computation during the trading day.
I'd say jump in and give it a try.
Grant