The trade is not being placed correctly.ionone wrote: Fri Jun 13, 2025 3:17 am this is not right.
correct syntax is :Code: Select all
iCustom(_Symbol, _Period, "Alpha trend bands (mtf +arrows + candles + alerts",0,0,"alp b1",inp_length, inp_atr_multiplier, inpPrice, 15,BarToUse);
also I think there will be an error reaching buffer 15 because it's not been defined correctly in the indi (only 14 buffers available)
EDIT : oh well it works now....
Re: Simple Expert Advisors (EA's) for MT4
432it seems to work on my side.
you need to change all the iCustom instances in the code
here is my code
Scalping the Century TimeFrame since 1999
Re: Simple Expert Advisors (EA's) for MT4
433hello coders,
I have a request please. found this ea on the net, hopefully it is not decompiled one.
can anyone please make it like once it opens an order as per the logic (fast ma crosses below slow ma opens sell and vise versa) to close on the same candle when it expiries, let's say it opened sell on 15 mins candle, to close the postion once the same 15 min candle is finished regardless of the outcome.
thank u very much
Green
I have a request please. found this ea on the net, hopefully it is not decompiled one.
can anyone please make it like once it opens an order as per the logic (fast ma crosses below slow ma opens sell and vise versa) to close on the same candle when it expiries, let's say it opened sell on 15 mins candle, to close the postion once the same 15 min candle is finished regardless of the outcome.
thank u very much
Green
Re: Simple Expert Advisors (EA's) for MT4
434Now I understand why you don't like to talk about experts.
Re: Simple Expert Advisors (EA's) for MT4
435hello mladen,mladen wrote: Wed Feb 15, 2017 7:20 pm As simple as it gets simple moving averages cross expert advisor : simple ma cross ea.mq4 __________________It opens an order on a cross of two averages. If an order of opposite direction exists, it is first closes that order. If it fails to close the opposite order it will attempt the same thing (if the signal still exists) on the next tick (new order opening is prevented if the opposite direction order close fails). Some extra built in (like current profit for opened order display - just for the sake of simpler usage and providing a bit more information - that will probably be extended in the future versions of any of the experts posted here).It is an easy to use frame that can be used for similar tasks and, as all can see, the code is as simple as it gets. There is no need for anything more complicated for this kind of tests
thanks very much for sharing the ea. could u please kindly do some additional changes whenever u get a time?
when the crossing happens and a trade opened, let the ea close the same trade once the same candle closes. what I mean is when buy opened on 15 mins candle and once the same candle closes after 15 mins then trade to be closed too regardless of the outcome.
also, can u please add the option to execute trades whenever two MAs touch each other? what I mean is the ea doesnt have to wait till candle close so it will execute trades in mid candle formation as well. in some cases MAs just touch each other and move away. even in this situation the ea must open the trade.
what am I aiming here is, there is single candle trade strategy based on MAs only and have been trading for a while so I think it should work on EA too.
it is 6 & 14 SMA cross strategy. it is better to stay away in choppy market.
thanks very much again!