Hi guys, I can’t attach this indicator to my chart. I double click and also right click and choose attach but nothing is happening
Any ideas?
Hi guys, I can’t attach this indicator to my chart. I double click and also right click and choose attach but nothing is happening
Any ideas?
very nice, I’m trying today. Thanks. For further information I need your help in details.
Hi everybody,
I know this thread is old, but I’ve tried to use the expert advisor with MT4 but it’s not working. Tried backtesting with the strategy tester, but the expert adviser doesn’t open positions…
I tried to compile it with the Meta Editor but there I’m getting some warning, f.e. return value of OrderSelect should be checked or return value of OrderClose should be checked…
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()<=OP_SELL && // check for opened position
OrderSymbol()==Symbol()) // check for symbol
{
if(ShortEmaCurrent < LongEmaCurrent && ShortEmaPrevious > LongEmaPrevious)
{
OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet); // close position
return(0); // exit
}
I think thats the problem why it’s not open positions.
Would be nice if someone could help.
Have a nice day!
Best regards
Marcel
If you post in the MT4 forums you might get help faster!
I would though, like it if you will be posting your backtesting results with us, in this thread when you succeed. Will you do that please ?
Do you perse wait until the line cross eachother