Hello Sir,
as you are doing a great job here, I'd like you to convert the following code from ProRealtime into an MQL 4 Expert Advisor
TIA
-----------------------------
// --- settings
//leftp = 4
//rightp = 2
// --- end of settings
period=max(4,2) //Please add this as a variable
hh = highest[period](high)
ll = lowest[period](low)
if hh<>hh[1] then
hhprice=high
top=hhprice
endif
if ll<>ll[1] then
llprice=low
bottom=llprice
endif
if high crosses over top and lastsig<=0 then
buy 1 shares at market
lastsig=1
endif
if low crosses under bottom and lastsig>=0 then
sellshort 1 shares at market
lastsig=-1
endif