OK, so rather than doing what I did above, I would do something like
if(Asset == "GER30" && between(hour(),6,19)) {
if(falling(MMI_Smooth)) {
if(valley(Trend))
reverseLong(1, myTMF);
else if(peak(Trend))
reverseShort(1, myTMF);
}
}
How to handle the stop in TMF?
Can I just check time as above, and return 4 if outside market hours, otherwise 0?