Ich habe dazu folgendes gefunden:
Code:
count=1
i=0
j=i+1
tot=0
while count<4 do
tot=tot+1
if (low[j]>=low[i]) and (high[j]<=high[i]) then
//inside bar
j=j+1
else
count=count+1
i=i+1
J=i+1
endif
wend
basso=lowest[tot](low)
alto=highest[tot](high)
if close>alto[1] then
ref=basso
endif
if close<basso[1] then
ref=alto
endif
return ref
Kann das Jemand in mql4 übersetzen?