#property script_show_inputsseems that this is a script, not an EA
Hi GumRai,
first I was quite sceptical. But you are absolutely right! Thanks man!
I've took that out. Now it runs! But now I've got a lot of open order errors and order closing errors. Do you know what I can do against this?
Hi GumRai,
first I was quite sceptical. But you are absolutely right! Thanks man!
I've took that out. Now it runs! But now I've got a lot of open order errors and order closing errors. Do you know what I can do against this?
Buy orders are opened at Ask and closed at Bid
MAs can cross and recross many times in a single bar, often it is best to only check on a new bar.
ticket1 is a local variable, so will not hold the ticket number on the next tick.
Buy orders are opened at Ask and closed at Bid
MAs can cross and recross many times in a single bar, often it is best to only check on a new bar.
ticket1 is a local variable, so will not hold the ticket number on the next tick.
Alright 1. and 3. are done now. But how can 2. be a factor? MA are set to close prices. What I have done wrong? Do you know it?
alright guys I have found my mistake.
My question now is: How can I bring my ticket variable (at least the ticketnumber which was generated in the first if-condition) into the 2nd if-condition? See at the picture below.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi Guys,
I've got a Problem on running EAs. You can see my code below. It's a simple moving average strategy. But it does not work. I have tried this after a different strategie does not work either. I have run this on EURUSD with data I downloaded from the Internet (since 2001) on a intraday timeframes (before i used period converter) and on a daily timeframe with data my broker is providing me.
If I run my EA he is not making any trades. But he is sending me Errors in the journal: "unmatched data error [...]"
Thanks!
TheOneWhoKnocks