automatic exploration to best suitable time frame using volatility to trade

#1
hi,
i not really too much expert to make afl but i have one idea to make good time frame selection in real time trading to make decision easy using volatility is the basic indicator.like if we use to calculate 9/21/50/100 last bars volatility .......and on that numbers we make decision which time frame is good to trade and make profit.
plz do help to make exploration like that....thanks in advance........and plz share our opinion about the idea.