@bhartesh (although being old post of last year and seemingly not having been here since)
As for the code... it is rubbish. That's why it does not work.
Read about proper use of TimeFrame functionality as well as
Why TimeFrameExpand is essential (Warning 509)
Why is it so difficult for you guys to follow software documentation??
Next you set rotational mode two times. Why? Just use SetBacktestMode( backtestRotational );
at top and that's it.
And SetOptions belong to top. It makes no sense to mix them with other code.
etc.