When I try to drag this EA to EURUSD M5 chart or choose "Attach to a chart" command, MT4 just gave me no response.
I'm sorry to say but I have to say There is nothing inside this coding where the EA has to do giving some kind of output
The only output it might can give is a smile face and EAname load successful
It looks like you still have to learn how to program
for example
if( signal_up > 0 && a > 50*Point ) { signal_up = 0; } if( signal_up > 0 && a < 50*Point ) { signal_up = 0; }
i can tell you that 'a' will never be < 50*Point it is always > 50*Point
it has no sense to compare 4 following Bid prices the way you do
and why do you not use TimeCurrent() instead of iTime(NULL,1,0);
if someone has to guide you step by step then it will take lot of time
this moment i am teaching that way at Jobs a client
with help of teamviewer and skype you can communicate directly
maybe you need someone to guide you the same way....
and if you ask me to do it that way then i wanna be paid like other client is doing
and your english has to be good enough to communicate So that has to be the first to be checked
before i start with you a job
otherwise take a easie short program that is working and try to understand every line inside of the code
check all commands what it is doing
Make use of
Print, Alert and Comment to see what happens
Dear all
When I try to drag this EA to EURUSD M5 chart or choose "Attach to a chart" command, MT4 just gave me no response.
Does anybody know why?
Thanks for your kind help!
wing
hi' can you add the full header of the script?
Dear all
When I try to drag this EA to EURUSD M5 chart or choose "Attach to a chart" command, MT4 just gave me no response.
Does anybody know why?
but it will load like an EA giving a smiling face if you do attach it on your chart
deVries,
logic is not relevant in this case, but thanks for your advice.
RaptorUK,
by luck, I finally find out the solution. It is because of a line which I missed when I posted my code here last time:
#property indicator_chart_window
After I deleted this line, I can add the EA to the chart.
Thanks for your advice.
cubye,
Thanks for your kind help too!
@ wing
We all replied on your code first message
in that code you showed there was no line attached
#property indicator_chart_window
It is this function IndicatorCounted I think RaptorUK was talking about
int counted_bars=IndicatorCounted();
that doesn't belong inside your EA
@ wing
We all replied on your code first message
in that code you showed there was no line attached
It is this function IndicatorCounted I think RaptorUK was talking about
that doesn't belong inside your EA
Yes, that's why I said I "miss" it.
and if I was not lucky (and continue to did try and error), I will never know the solution.
anyway, thanks again for your advice.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Dear all
When I try to drag this EA to EURUSD M5 chart or choose "Attach to a chart" command, MT4 just gave me no response.
Does anybody know why?
Thanks for your kind help!
wing