Hello All,
I have been working on this EA that is to send alerts when at certain time of the day. It works on tester and will keep up with the days of rise and fall and send alerts based of what price had done previously.
basically when I run this EA on multiple pairs it doesn't keep up with the days for that any of the pairs and I am not sure why its not.
if someone would be so kind and look over the code and give some direction as to how I can write it to do what I am looking to do.
Going to try to add this topic one more time, not sure why it stay listed in the forum
Hello,
I make a quickly check in code and I found an issue.
In WeeklyBias function the input parameter called 'input1' not 'DoW' as you write.
And is better to move 'Comment()' operation end of 'OnTick()' function, because some parameters got prices after calling comments (like WeeklyTrend, Dow, ..... and more).
string WeeklyBias(int input1) { if (input1==1 && wFirstTick) { wFirstTick=false; double fiveEMA = iMA(Symbol(),PERIOD_W1,5,0,MODE_EMA,0,0); double thirteenEMA = iMA(Symbol(),PERIOD_W1,13,0,MODE_EMA,0,0); if(fiveEMA > thirteenEMA) { Trend="Buy"; } if(fiveEMA < thirteenEMA) { Trend="Sell"; } Alert("The Weekly Bias for ",Symbol()," is: ",Trend); } else if (input1!=1 ) wFirstTick = true; return Trend; }
- www.mql5.com
Hello,
I make a quickly check in code and I found an issue.
In WeeklyBias function the input parameter called 'input1' not 'DoW' as you write.
And is better to move 'Comment()' operation end of 'OnTick()' function, because some parameters got prices after calling comments (like WeeklyTrend, Dow, ..... and more).
Thanks I originally had this in separate EA files that I called in case I wanted to use the pieces of the code in a different ea.
Not sure if the is
the reason it wont work on multiple pairs when running live, the code works as intended when running in tester on 1 pair. But I will adjust and
see if it works as intended on live.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello All,
I have been working on this EA that is to send alerts when at certain time of the day. It works on tester and will keep up with the days of rise and fall and send alerts based of what price had done previously.
basically when I run this EA on multiple pairs it doesn't keep up with the days for that any of the pairs and I am not sure why its not.
if someone would be so kind and look over the code and give some direction as to how I can write it to do what I am looking to do.
Going to try to add this topic one more time, not sure why it stay listed in the forum