My EA only open BUY traders
Please edit your post and use code tags, see the </> symbol in the editor panel.
Thanks lippmaje.
Is that correct now?
If anyone could help me , i appreciate.
The EA does NOT open SELL trades.
There's an operator precedence issue on this line:
if((ha1>ha2&&ha3>ha4&&ha5>ha6) || (ha1<ha2&&ha3<ha4&&ha5<ha6) && z==0 && ordem==0)
I suggest to change it to:
if(((ha1>ha2&&ha3>ha4&&ha5>ha6) || (ha1<ha2&&ha3<ha4&&ha5<ha6)) && z==0 && ordem==0)
There's an operator precedence issue on this line:
I suggest to change it to:
Thank you a lot!
If possible, can you help me to imput a simple "hour trading period" filter on this code ( "extern int" ) ?
Add this to the top:
extern int TradingFrom=00; extern int TradingTill=24;
And replace this line:
if(OrdersTotal()==0 && sl==0)
with:
MqlDateTime currtime; TimeCurrent(currtime); if(OrdersTotal()==0 && sl==0 && currtime.hour>=TradingFrom && currtime.hour<TradingTill)
Hi my name is Syed! may I firstly thank you for your time and effort go read my message. I have been proactively researching your articles which I thoroughly enjoy reading. I was wondering if any of you could please guide me with regards to the steps one should take when evaluating as to whether or not to enter a trade... so this is how I do it..
May anyone please help me to fix this little issue?