Re: MT4 Indicator requests and ideas

14706
Dear Mrtools,

hope you are healty,

here is an ea which using sup-dem areas and getting in and out positions according to indicator..

but!.

it's only opening sell position and only for once (waiting to close position for open a new one even if there are lots of signals to open sell positions).. is it possible to edit it be able to get in multiple positions for sell??

Re: MT4 Indicator requests and ideas

14709
tildenkatz wrote: Sun Jan 16, 2022 12:44 am Dear Mrtools,

hope you are healty,

here is an ea which using sup-dem areas and getting in and out positions according to indicator..

but!.

it's only opening sell position and only for once (waiting to close position for open a new one even if there are lots of signals to open sell positions).. is it possible to edit it be able to get in multiple positions for sell??
Not sure maybe on lines 47 and 54 you can try changing

Code: Select all

if(OrdersTotalT(OP_SELL)==0 && Ask>current_res && current_res!=last_res)

Code: Select all

if(OrdersTotalT(OP_BUY)==0 && Bid<_sup && _sup!=0 && last_sup!=_sup)
to something like

Code: Select all

input int maxSellOrders = 3;
input int maxBuyOrders = 3;

Code: Select all

if(OrdersTotalT(OP_SELL)==maxSellOrders && Ask>current_res && current_res!=last_res)

Code: Select all

if(OrdersTotalT(OP_BUY)==maxBuyOrders&& Bid<_sup && _sup!=0 && last_sup!=_sup)
might work.


Who is online

Users browsing this forum: Amazon [Bot], Facebook [Crawler], Jimmy, kvak, Mojeek [Bot], TransparentTrader, Tur005, vvFish and 81 guests