Hi,
I’m brand new to mt4, I’ve coded a EA without warning or error and I go to test it but I don’t see any input tab in Expert properties.
What could be the problem??
Thanks for any help!
Files:
19385CAA-82FA-45D7-8EEA-53C238864ED4.jpeg
4478 kb
- Enable/disable EA properties
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- Invoking the Only Long & Only Short positions in EA Properties
Mehrdad Jeddi:
Hi thanks for the response!Hi,
So maybe you have not set any "input" or "extern" literal at the beginning of each variables you want,
So could you provide the full code to be checked,
I copied it off a you tube video, there is no input code there.
Would you know the right code to use just to test profit of a moving average cross over EA?
Its most likely, what you copied from the yutube source was the final ex4 file in which the author had not made the input settings external. You must obtain the source code from the author and make the input variables external by putting "extern" at the beginning of each line where the variable was declared...good luck!
David Binka Kumatse:
Its most likely, what you copied from the yutube source was the final ex4 file in which the author had not made the input settings external. You must obtain the source code from the author and make the input variables external by putting "extern" at the beginning of each line where the variable was declared...good luck!
Its most likely, what you copied from the yutube source was the final ex4 file in which the author had not made the input settings external. You must obtain the source code from the author and make the input variables external by putting "extern" at the beginning of each line where the variable was declared...good luck!
Yes,I think so.
MillsbergN9:
Hi,
Hi,
I’m brand new to mt4, I’ve coded a EA without warning or error
and I go to test it but I don’t see any input tab in Expert
properties.
What could be the problem??
Thanks for any help!
If you want help, post the code, don't post a youtube video (I have deleted it).
Copy and paste the code using the code button. Don't post an image.
Post the code showing externs or inputs. Probably there aren't any so you will not have inputs.
Keith Watford:
Hi, Copy and paste the code using the code button. Don't post an image.
Post the code showing externs or inputs. Probably there aren't any so you will not have inputs.
yes there is none. What should I use to test??
void OnTick(void)
{
// Current chart, current period,20 candles, no shift, simple, close price
double slowmovingaverage = iMA(NULL,0,20,0,MODE_SMA,PRICE_CLOSE,0);
// Current chart, current period,20 candles, no shift, simple, close price
double lastslowmovingaverage = iMA(NULL,0,20,0,MODE_SMA,PRICE_CLOSE,1);
// Current chart, current period,20 candles, no shift, simple, close price
double fastmovingaverage = iMA(NULL,0,10,0,MODE_SMA,PRICE_CLOSE,0);
// Current chart, current period,20 candles, no shift, simple, close price
double lastfastmovingaverage = iMA(NULL,0,10,0,MODE_SMA,PRICE_CLOSE,1);
//if the fast SMA is now above
if ((lastfastmovingaverage > lastslowmovingaverage)
&&(fastmovingaverage < slowmovingaverage))
// Chart output for buy signal
Comment ("SELL");
}
You have your answer, why do you expect to see anything in the inputs when you haven't put them in the code?????
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register