hello Apprentice,
I find out a very interested indicator in other software, it is:
VAR1=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,m);/m is the paremeter of candles
VAR3:=HHV(HIGH,m);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13);
VAR5:=EMA(0.667*REF(VAR12,1)+0.333*VAR4,2);
UP:STICKLINE(VAR4>VAR5,VAR4,VAR5,7,0),COLORGREEN;
DOWN:STICKLINE(VAR4<VAR5,VAR4,VAR5,7,0),COLORRED;
SINGE:EMA(VAR5,5), COLORYELLOW;
that is all. I do not know how to translate this into ".lua",could you please help? In that software this Indecator is called FXBS, and you can find what it is looks like in attachment