Trade script

how to code

buy when slow stochastic is below 30 , bollinger band at lower band , candle is green

short sell when slow stochastic above 70 bollinger band at top band , candle red

Buy Script 

SOPK(9, 3, 9, SIMPLE)<30 AND BBB(CLOSE, 20, 2, EXPONENTIAL)

Sell Script

SOPK(9, 3, 9, SIMPLE)>70 AND BBT(CLOSE, 20, 2, EXPONENTIAL)
1 Like

Does the script above take into consideration the Requirement of Green candle for Buy order and Red candle for Sell order