Dear All I have some problem in getting the Datetime of the lastbar, when I want to memorize the static variable as in iNewBar function, in running backtest it runs ok, so we can avoid over trade, and just only one entry, but when I check using debugging, I found that the date save in static