if 冇倉係手 {
if RSI >=0 and RSI <=20, then long (set埋止賺止蝕)
if RSI >=80 and RSI <=100, then short(set埋止賺止蝕)
}
if 冇倉係手{
if RSI >=0 and RSI <=20 and 上一個倉唔係long, then long (set埋止賺止蝕)
if RSI >=80 and RSI <=100 and 上一個倉唔係short, then short(set埋止賺止蝕)
}