The TimeFrameSet replaces current price/volume arrays: open, high, low, close, volume with time-compressed bars of specified interval once you switched to a different time frame all calculations and built-in indicators operate on selected time frame. To get back to original interval call TimeFrameRestore() function. Before calling TimeFrameSet again in the same formula with different interval you have to restore original time frame first using TimeFrameRestore.
Is there any posibility to do it with Ninja Script ?
Svata
Comment