• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

Question add indicator to luai ea pls

marco85555

Member
Credit Hunter
Credits
0
Hello dear coders
can you add parabolic sar indicator to this attached ea ?
parabolic settings step: 0,005 and max step: 0,05

once 3 dots appeared for long the ea should open buy gradually for each bar.
once 3 dots appeared for short the ea should open sell gradually for each bar and should close all opened buy trades.

if this ea made, I will try to add a few more indicator to make more profitable.

hope some good coders can help us.
 

Attachments

Parabolic SAR is a good indicator but not all the time will work correctly
here still need to strict in use risk management plan
 
I can't test this now. But try this:

if(iSAR(Symbol(),0,0.02,0.2,0) > Close[0])
if(iSAR(Symbol(),0,0.02,0.2,1) > Close[1])
if(iSAR(Symbol(),0,0.02,0.2,2) > Close[2])
OpenSell()

if(iSAR(Symbol(),0,0.02,0.2,0) < Close[0])
if(iSAR(Symbol(),0,0.02,0.2,1) < Close[1])
if(iSAR(Symbol(),0,0.02,0.2,2) < Close[2])
OpenBuy()
 
I can't test this now. But try this:

if(iSAR(Symbol(),0,0.02,0.2,0) > Close[0])
if(iSAR(Symbol(),0,0.02,0.2,1) > Close[1])
if(iSAR(Symbol(),0,0.02,0.2,2) > Close[2])
OpenSell()

if(iSAR(Symbol(),0,0.02,0.2,0) < Close[0])
if(iSAR(Symbol(),0,0.02,0.2,1) < Close[1])
if(iSAR(Symbol(),0,0.02,0.2,2) < Close[2])
OpenBuy()

how can test this on metatrader, can you convert this to ex4 file pls ?
 
Back
Top