Maybe try this version.simon_n3z wrote: Wed Jun 27, 2018 4:52 am Hi traders
To keep all previous simple EAs at single one place here.
---------------------------------------------------------------------------------
Hello prof.MntiWana
this EA runs on 1D chart...use real spreads.
No TP...let it trail.
2010-2017 is a charm
I am stuck on the if operator (from line 119) initiating the ordersend,.... i cant get the next ordersend to send.
Please can you see if you can make a fix
-simon
Re: Simple Expert Advisors (EA's) for MT4
212Wow thanks appsoluxions!!! I completly overlooked that ... x(appsoluxions wrote: Wed Jun 27, 2018 7:02 am
Hi Simon,
Try this as per on the pic...
Note that on the pic I formatted your code so that I can read it. You can simply remove OrdersTotal() < 1, or increase the number to any number of trades you want to allow open concurrently.
Check out my Intraday Swinging Setup - Updated Q4 2022... viewtopic.php?p=1295496595#p1295496595
Re: Simple Expert Advisors (EA's) for MT4
213Wow mr Tools....you are handy ;D
The problem is still that it does not trade both ways, instead its either buy or sell.
I hope I explained ok...
The problem is still that it does not trade both ways, instead its either buy or sell.
I hope I explained ok...
Check out my Intraday Swinging Setup - Updated Q4 2022... viewtopic.php?p=1295496595#p1295496595
Re: Simple Expert Advisors (EA's) for MT4
214Maybe try commenting out lines 135 and line 143.simon_n3z wrote: Wed Jun 27, 2018 10:12 am Wow mr Tools....you are handy ;D
The problem is still that it does not trade both ways, instead its either buy or sell.
I hope I explained ok...
Re: Simple Expert Advisors (EA's) for MT4
215Hi Simon,simon_n3z wrote: Wed Jun 27, 2018 10:12 am Wow mr Tools....you are handy ;D
The problem is still that it does not trade both ways, instead its either buy or sell.
I hope I explained ok...
Just out of interest(my interest) and new ideas :idea: , will there ever be a case where you have to do both(Buy and Sell) at the same time?
Re: Simple Expert Advisors (EA's) for MT4
216simon_n3z wrote: Wed Jun 27, 2018 10:12 am Wow mr Tools....you are handy ;D
The problem is still that it does not trade both ways, instead its either buy or sell.
I hope I explained ok...
appsoluxions wrote: Wed Jun 27, 2018 8:20 pm
Hi Simon,
Just out of interest(my interest) and new ideas :idea: , will there ever be a case where you have to do both(Buy and Sell) at the same time?
Hey what did you think of the EA ... lol amirite
Check out my Intraday Swinging Setup - Updated Q4 2022... viewtopic.php?p=1295496595#p1295496595
Re: Simple Expert Advisors (EA's) for MT4
217appsoluxions dude that OrdersTotal() hack is exactly what kind of MM I was looking for.
anyway... the thing with the EA still is... once it starts with a B or S ... if contrary signal conditions are met ... it dont trade
pleez helpz
Thank you very much
anyway... the thing with the EA still is... once it starts with a B or S ... if contrary signal conditions are met ... it dont trade
pleez helpz
Thank you very much
Check out my Intraday Swinging Setup - Updated Q4 2022... viewtopic.php?p=1295496595#p1295496595
Re: Simple Expert Advisors (EA's) for MT4
218I take it you want to allow opening buy and sell at the same type as well? If so, try this...simon_n3z wrote: Thu Jun 28, 2018 7:43 am appsoluxions dude that OrdersTotal() hack is exactly what kind of MM I was looking for.
anyway... the thing with the EA still is... once it starts with a B or S ... if contrary signal conditions are met ... it dont trade
pleez helpz
Thank you very much
I am not sure what your EA looks like after you made changes, but from the one you posted earlier, with OrdersTotal() removed, it would be something like this:
Code: Select all
if(Close[0]==High[0]&&Ask>fast_ma &&MaxTrades==false &&Ask-Bid<=MaxSpread*Point &&!OnlyShort) {
SignalBuy = true;
}
if(Close[0]==Low[0]&&Bid<fast_ma &&MaxTrades==false &&Ask-Bid<=MaxSpread*Point &&!OnlyShort) {
SignalSell = true;
}
I removed else{} to make the conditions independent of each other.
Re: Simple Expert Advisors (EA's) for MT4
219[quote=appsoluxions post_id=1295375990 time=1530138286 user_id=4930633]
I take it you want to allow opening buy and sell at the same type as well? If so, try this...
I am not sure what your EA looks like after you made changes, but from the one you posted earlier, with OrdersTotal() removed, it would be something like this:
Nobody posted one with OT() removed.
Also maaan the if is not fixed.....only once Buy is closed it Sells
I hope Mr.Tools is around to take a look at it
I take it you want to allow opening buy and sell at the same type as well? If so, try this...
I am not sure what your EA looks like after you made changes, but from the one you posted earlier, with OrdersTotal() removed, it would be something like this:
Nobody posted one with OT() removed.
Also maaan the if is not fixed.....only once Buy is closed it Sells
I hope Mr.Tools is around to take a look at it
Check out my Intraday Swinging Setup - Updated Q4 2022... viewtopic.php?p=1295496595#p1295496595
Re: Simple Expert Advisors (EA's) for MT4
220[quote=simon_n3z post_id=1295375991 time=1530138764 user_id=4930346]
I am totally lost on what exactly are your requirements. My solution was:
1 - if you want to open more than 1 trade at the same time, then remove OrdersTotal() check.
2 - if you want to allow both buy and sell at the same time, then replace 'if-else' (only 1 block will execute) with 'if-if'(both blocks will execute)
I am sorry I couldn't help - experts will take it from here.
I am totally lost on what exactly are your requirements. My solution was:
1 - if you want to open more than 1 trade at the same time, then remove OrdersTotal() check.
2 - if you want to allow both buy and sell at the same time, then replace 'if-else' (only 1 block will execute) with 'if-if'(both blocks will execute)
I am sorry I couldn't help - experts will take it from here.