input: BB_PERIOD (24) BB_DEVIATION (0.05) PrevBar (24) ATR: (24) SLmoltiplic: (2) TPmoltiplic: (10) risk/manual= true/false Fix LotSiz (manual)= risk%: (1%) magic numeber OCO= true/false only 1 open position per cross recalcolate every candle If Close this bar is > BB then buystop at highter PrevBar if Close this bar is< BB then sellstop at lower PrevBar ******************************* Lots calc= (BALANCE * RISK%) / (ATR*SL)* (PipsVal)