Etherist![]() Member ![]() Posts: 27 Joined: 6/9/2024 Location: South Australia ![]() | Hello again there Lou I had a closer look at your question, specifically the "calculate the 100 day high and 100 day low of the calculated result" aspect and suggest the following change to the Indicator, so that you are using the calculated Gann result and not the Price: ############################################## #Indicator #PARAM "NormPeriod",100,1,1000 #PARAM "HLPeriod",100,1,1000 Dim GannValue As Double Dim GannMax As Double Dim GannMin As Double Dim GannNorm As Double Dim High100 As Double Dim Low100 As Double ' Example Gann calculation (replace with your actual formula) GannValue = (H + L + C) / 3 ' Normalize Gann result over NormPeriod bars GannMax = HHV(GannValue, NormPeriod) GannMin = LLV(GannValue, NormPeriod) If (GannMax > GannMin) Then GannNorm = 2 * ((GannValue - GannMin) / (GannMax - GannMin)) - 1 Else GannNorm = 0 End If ' Now calculate the 100-bar high and low of the Gann result (not price) High100 = HHV(GannValue, HLPeriod) Low100 = LLV(GannValue, HLPeriod) Plot("NormGann", GannNorm) Plot("High100", High100) Plot("Low100", Low100) Return GannNorm ########################################## Hope this more closely matches your needs ... Cheers again :-) |