Thanks.

I had it working by multiplying timeperiod for each bars.

I have used plot function but the image I have got is very small thus I am not able to see where the signal has been for simple crossover systems and win-loss mark for each trades.

So I make a logfile and go to MT4 to check the signals.