The ToS app does not allow for the use of MTF scripts in the scan hacker.
When setting up a scan, the first criteria is the timeframe.
It then filters your conditions on that timeframe.
If it encounters other timeframes in the script, it will throw an error:
Secondary timeframes not allowed.
added this lines for scanning purposes to the initial non-MTF version:
def trendo = if iTrend == 1 then 1 else if iTrend == -1 then -1 else trendo[1];
plot trend = trendo;
but was not able to make it work. maybe some sort of initialization is missing but I wouldn't know.
Could you please help?