using different formula for different timeframe

[Deleted]  

Hi every body.

Is it possible to condition calculation of indicator formula for different TIMEFRAM ?

For example, if the TIMEFRAME is WEEKLY – compare average 5 to 13, if the TIMEFRAME is DAILY compare average 5 to 26 and so on ?

Thank you,

 
yada0206:

Hi every body.

Is it possible to condition calculation of indicator formula for different TIMEFRAM ?

For example, if the TIMEFRAME is WEEKLY – compare average 5 to 13, if the TIMEFRAME is DAILY compare average 5 to 26 and so on ?

Thank you,


yes, ....
[Deleted]  
deVries:

yes, ....


Thank you,

But I dont think this article deals with different calculation for different time frame.

 
yada0206:


Thank you,

But I dont think this article deals with different calculation for different time frame.

What article ?
 
yada0206:

Hi every body.

Is it possible to condition calculation of indicator formula for different TIMEFRAM ?

For example, if the TIMEFRAME is WEEKLY – compare average 5 to 13, if the TIMEFRAME is DAILY compare average 5 to 26 and so on ?

Thank you,

Yes, its possible. Get current chart timeframe by period() function and do your specific check in if/else conditions.