to get the perfect strategy for all time frames is challenging - every FX pair has a certain 'shape' unique to it - some traders only trade EURGBP - some USDJPY etc etc......yesterday i posted a strategy that only seems to be profitable for EURUSD 1H charts - when i tried it on a few others, it zero'd my balance....
some adaptive code would be long and complicated - even using neural networks which is multiple charts and indicators used in combination - but even that is not 'perfect'.....:)
almost all ( if all) indicators are lagging - this is the big problem for scalping methods like how u explained - but if this helps, using the RSI (4) can indicate when a strong move is about to occur - (but even still, nothing is perfect).
The trick to all this is having as many indicators as possible stacked in yr favour before you jump in on a trade - so i think patience is more the challenge to traders if anything - like a fisherman waiting for his catch.
hope this help!