Did you enable live trading ? do you have a smiley face in the top right hand corner of the chart with the EA name ?
yes off course, .. thanks for remind me, i had trading forex pass 3 years ago, until now.., i just do some analyze the technical, but maybe i have bad IQ in metatrader language..,
the "macd sample" that give from metatrader is works fine.. but i want to modify it to enable is some different chart, different pair.
so i hope in that case study i can have some several order (several open position, several buy or sell). so, i can averaging what will happen in the end of my analyze in the next two or three months, will i have profit or no? 10,20,or 30 %...
yes off course, .. thanks for remind me, i had trading forex pass 3 years ago, until now.., i just do some analyze the technical, but maybe i have bad IQ in metatrader language..,
the "macd sample" that give from metatrader is works fine.. but i want to modify it to enable is some different chart, different pair.
so i hope in that case study i can have some several order (several open position, several buy or sell). so, i can averaging what will happen in the end of my analyze in the next two or three months, will i have profit or no? 10,20,or 30 %...
OK, need to check all the basics . . . .
If no order is being placed then logically these conditions are not true . . .
if(MacdCurrent<0 && MacdCurrent>SignalCurrent && MacdPrevious<SignalPrevious &&
MathAbs(MacdCurrent)>(MACDOpenLevel*Point) && MaCurrent>MaPrevious)
// check for short position (SELL) possibilityif(MacdCurrent>0 && MacdCurrent<SignalCurrent && MacdPrevious>SignalPrevious &&
MacdCurrent>(MACDOpenLevel*Point) && MaCurrent<MaPrevious)
I suggest you add Print() statements to print all these variables to the log so you can investigate further . . . . I could do this for you but then you miss out on all the fun ;-)
If no order is being placed then logically these conditions are not true . . .
I suggest you add Print() statements to print all these variables to the log so you can investigate further . . . . I could do this for you but then you miss out on all the fun ;-)
hahaha...., aha... can you help me for just once again?
total=OrdersTotal(); \============================================>>>> inthis line, its only open just 1 position right?
if(total<1) /============================================>>>> what sould i do then? if i want several order in total order..??
if you have any Orders open they will count, even manually placed ones, this will stop the EA opening any orders . . . if you want to allow more than one Order then increase the number after if (total <
The loop you have modified looks OK. just make sure the braces { } are correct.
if you have any Orders open they will count, even manually placed ones, this will stop the EA opening any orders . . . if you want to allow more than one Order then increase the number after if (total <
The loop you have modified looks OK. just make sure the braces { } are correct.
still dont make any open order...,.... i still dont get it... :(
Hi Raptor.. im having the same problem :) if I do testing it open and close the position. But when i do live trade it just desnt open any position. I have read som articles about this and some people says that it doesnt work on live trading as its just sample. That MACD sample shows to users how to create an EA. Do you use this EA?
peterv: Hi Raptor.. im having the same problem :) if I do testing it open and close the position. But when i do live trade it just desnt open any position. I have read som articles about this and some people says that it doesnt work on live trading as its just sample. That MACD sample shows to users how to create an EA. Do you use this EA?
Are you running this in the Strategy Tester or a Demo or Live account ?
i mean little live account, in little money not a big cash... :)
Did you enable live trading ? do you have a smiley face in the top right hand corner of the chart with the EA name ?
Did you enable live trading ? do you have a smiley face in the top right hand corner of the chart with the EA name ?
yes off course, .. thanks for remind me, i had trading forex pass 3 years ago, until now.., i just do some analyze the technical, but maybe i have bad IQ in metatrader language..,
the "macd sample" that give from metatrader is works fine.. but i want to modify it to enable is some different chart, different pair.
so i hope in that case study i can have some several order (several open position, several buy or sell). so, i can averaging what will happen in the end of my analyze in the next two or three months, will i have profit or no? 10,20,or 30 %...
yes off course, .. thanks for remind me, i had trading forex pass 3 years ago, until now.., i just do some analyze the technical, but maybe i have bad IQ in metatrader language..,
the "macd sample" that give from metatrader is works fine.. but i want to modify it to enable is some different chart, different pair.
so i hope in that case study i can have some several order (several open position, several buy or sell). so, i can averaging what will happen in the end of my analyze in the next two or three months, will i have profit or no? 10,20,or 30 %...
OK, need to check all the basics . . . .
If no order is being placed then logically these conditions are not true . . .
I suggest you add Print() statements to print all these variables to the log so you can investigate further . . . . I could do this for you but then you miss out on all the fun ;-)
OK, need to check all the basics . . . .
If no order is being placed then logically these conditions are not true . . .
I suggest you add Print() statements to print all these variables to the log so you can investigate further . . . . I could do this for you but then you miss out on all the fun ;-)
hahaha...., aha... can you help me for just once again?
Re:
if you have any Orders open they will count, even manually placed ones, this will stop the EA opening any orders . . . if you want to allow more than one Order then increase the number after if (total <
The loop you have modified looks OK. just make sure the braces { } are correct.
Re:
if you have any Orders open they will count, even manually placed ones, this will stop the EA opening any orders . . . if you want to allow more than one Order then increase the number after if (total <
The loop you have modified looks OK. just make sure the braces { } are correct.
still dont make any open order...,.... i still dont get it... :(
Hi Raptor.. im having the same problem :) if I do testing it open and close the position. But when i do live trade it just desnt open any position. I have read som articles about this and some people says that it doesnt work on live trading as its just sample. That MACD sample shows to users how to create an EA. Do you use this EA?
Do this test and report back here: https://www.mql5.com/en/forum/143043/page2#746319
If the result is ECN follow this ECN link and read . . . then fix your code.