I am stucking on a basic coding…how to code below? Buy 1 contract after Bullcondition appear BullCandleStyle. Thanks Bin //Buy condition Bullcondition=low crosses over Average[20](close) //Candle style BC1 = Close[1] < Close[2] BC2 = Close > Close[1] BullCandleStyle=BC1 and BC2 //Long Entry IF after Bullcondition appear BullCandleStyle then BUY 1 CONTRACT AT market Endif