Help with coding on Pi - RSI and Bollinger strategy

Buy= Close < Lower Bollinger AND RSI < 30
Exit Buy= RSI > 50 OR Touch Bolinger Avg.(Central MA)

Sell = Upper Bolinger and RSI > 70

Exit Sell= RSI < 50 OR Touch Bolinger Avg.(Central MA)

Stop Loss of 5%

1 Like

Here it is-

Buy- 
CLOSE < BBB(CLOSE, 20, 2, EXPONENTIAL) AND RSI (CLOSE, 14) < 30

Buy Exit-
RSI(CLOSE, 14) > 50 OR CLOSE > BBM(CLOSE, 20, 2, EXPONENTIAL) 

Sell-
CLOSE > BBT(CLOSE, 20, 2, EXPONENTIAL) AND RSI (CLOSE, 14) > 70

Sell Exit-
RSI(CLOSE, 14) < 50 OR CLOSE < BBM(CLOSE, 20, 2, EXPONENTIAL) 

Stop loss can't be fixed percentage-wise i guess

2 Likes

had put the same in PI and it says enter details in correct format