i have a code in mql4 language and i want to convert the lines to pine script language.
i=rates_total dist = 24 hhb = iHighest(NULL,0,MODE_HIGH,dist,i-dist/