hello, i have a very simple indicator i made in easylanguage and now i would like to translate it to mt4. the easylanguage goes like this:
vars: mmoment(0);
mmoment=maxlist(pos(momentum(h,2)),pos(momentum(l,2)),
pos(momentum(l,6)),pos(momentum(l,5)),
pos(momentum(l,3)),pos(momentum(h,6)),
pos(momentum(h,5)),pos(momentum(h,3)));
if mmoment<percentile(0.05,mmoment,100) then plot1(l,"xxx")
it plots a signal when all those momentums are in the lowest 5% of the momentums in a 100 period.
can anybody help me with this?
vars: mmoment(0);
mmoment=maxlist(pos(momentum(h,2)),pos(momentum(l,2)),
pos(momentum(l,6)),pos(momentum(l,5)),
pos(momentum(l,3)),pos(momentum(h,6)),
pos(momentum(h,5)),pos(momentum(h,3)));
if mmoment<percentile(0.05,mmoment,100) then plot1(l,"xxx")
it plots a signal when all those momentums are in the lowest 5% of the momentums in a 100 period.
can anybody help me with this?