global const Per: [Per:120\fix,15|30|45|60|75|80|110|120|160|240|460|920];
global calc PerHigh: Komp(#High#, #Per#);
global calc PerLow: Komp(#Low#, #Per#);
global calc InsidePer: If( PerHigh < Ref( PerHigh, -1) AND PerLow > Ref( PerLow, -1), 1, 0);
global calc OutsidePer: If( PerHigh > Ref( PerHigh, -1) AND PerLow < Ref( PerLow, -1), 1, 0);
Perhigh und Perlow sollten das von Dir gewünschte Ergebniss enthalten.
Allerdings greift ref(perhigh,-1) auf die letzte Periode der Grundkompression zurück und das sind in deinem Fall halt "nur" die 5 Minuten.
Um deine Abfragen muß also zwingend jeweils ein "unlustiges" KOMP drumrum, sonst wird das nichts.
If you think it´s expensive to hire a professional, wait until you hire an amateur.