Could you please, check this code, I tested it its working but when I Auto it doesn’t DEFPARAM CumulateOrders = False TIMEFRAME(2 Minute) //VWAP calculation // NoSunday = 0 //1=skip Sunday's IF (BarIndex = 0) OR (OpenDay <> OpenDay[1]) THEN SumVolPrice = 0 SumVol = 0 ENDIF IF Volume > 0 THEN IF (OpenDayOfWeek <> 0) OR (OpenDayOfWeek = 0 AND Not NoSunday) THEN SumVolPrice = SumVolPrice + (Volume * close) SumVol = SumVol + Volume VWAP = SumVolPrice / SumVol ENDIF ENDIF // VWAP Lower Band 2 (Stronger Deviation) VWAPMAIN = VWAP VWAPLOWER2 = VWAPMAIN - (3 * STD[20](close)) // Buy condition: Price touches VWAP Lower Band 2 IF Low <= VWAPLOWER2 THEN BUY 10 CONTRACT AT MARKET SET TARGET PROFIT 10 ENDIF work?!