Hey!
So I have been running P/L backtesting a bit with some strategies. I want to make a script that essentially outputs whether their are squeezes on the weekly, daily, and 4h time frames. I have been trying to convert some multi-time frame indicators into it with no luck. I am wondering if one can combine a study (ttm_squeeze) with an aggregation period. Essentially something like
"def wsqz = for aggregation.week !TTM_Squeeze().SqueezeAlert; "
so that I can throw that on for the different time frames and then put that into a buy order to see how it would have performed. Is this possible? or do I need to go through one of the recreations of the squeeze on this site? and that still kinda leaves me with the same logical problem. I feel like I have missed a reserved word or operator.
Any help would be great!
So I have been running P/L backtesting a bit with some strategies. I want to make a script that essentially outputs whether their are squeezes on the weekly, daily, and 4h time frames. I have been trying to convert some multi-time frame indicators into it with no luck. I am wondering if one can combine a study (ttm_squeeze) with an aggregation period. Essentially something like
"def wsqz = for aggregation.week !TTM_Squeeze().SqueezeAlert; "
so that I can throw that on for the different time frames and then put that into a buy order to see how it would have performed. Is this possible? or do I need to go through one of the recreations of the squeeze on this site? and that still kinda leaves me with the same logical problem. I feel like I have missed a reserved word or operator.
Any help would be great!