Re: MTF timeframe scan output (Scanning Timeframe not Pattern with single timeframe)
so 1 second time interval means "in1Minute/60"
its all there in the help file - so read the help file minutely again and again till u grasp the answer.
When you do type TimeframeSet(i * in___
it also shows 1second, you can see it in formula editor.
TimeframeSet(i * in1Second);
what would you use in case of second, like we use in minute database below
formula. Just /60 or in another way.
x= StrFormat("%02g-min", i);
x= StrFormat("%02g-min", i/60); or ?
Code:
TimeFrameSet( interval)
RETURNS NOTHING
FUNCTION The TimeFrameSet replaces current price/volume arrays: open, high, low, close, volume, openint, avg 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.
[U][B][COLOR="Blue"]interval defines time frame interval in seconds[/COLOR][/B][/U]. [B][U]So 60 means 1-minute[/U][/B]. For the convenience the following interval constants are pre-defined:
in1Minute = 60
in5Minute = 5 * 60
in15Minute = 15 * 60
inHourly = 3600
inDaily = 24 * 3600
inWeekly = 5 * 24 * 3600 + 1 = 432001
inMonthly = 25 * 24 * 3600 + 1 = 2160001
inQuarterly (new in 5.20)
inYearly (new in 5.20)
its all there in the help file - so read the help file minutely again and again till u grasp the answer.
it also shows 1second, you can see it in formula editor.
TimeframeSet(i * in1Second);
what would you use in case of second, like we use in minute database below
formula. Just /60 or in another way.
x= StrFormat("%02g-min", i);
x= StrFormat("%02g-min", i/60); or ?
Last edited: