Page 1 of 1

FFT (Fractal Forex Trader)

PostPosted: Mon Nov 04, 2019 11:19 am
by EZB-Schmarotzer
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

Re: FFT (Fractal Forex Trader)

PostPosted: Mon Nov 04, 2019 1:15 pm
by Apprentice
Your request is added to the development list.
Development reference 277.

Re: FFT (Fractal Forex Trader)

PostPosted: Wed Nov 06, 2019 9:13 am
by Apprentice