
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
I saw d name of d e a at the top right corner with an x in front of it not a smiley after attaching the e a . I did input the time in gmt.
Hi diamstar,
First of all you need to understand that the code you get here is for learning purposes.
That means that you test, modify or use the code in any way you like at your own risk.
Back to your problem, if you don't get a smiley face, check the Expert Advisers button.
If it's red, press it.
Also, you may need to check the settings on MT4 .
Go to Tools and select Options (last one on the bottom).
If it doesn't look like this :
make it look like this.
It should work now. Remember, if you want to stop the EA, just press the Expert Adviser button.
Did you run any back testing yet?
The time should be in server time.
Thank you. I am now seeing the smiley. I will update you after testing it this week. Thanks once again.
Do you know how to run a back test in strategy tester, visual or not, and the optimization feature ?
Or are you just happy to test on demo ? Finding the best settings may be faster an easier with the strategy tester.
Good luck
I am seeing the smiley but the order is still not activated. I checked the journal of the strategy tester and I am seeing ordersend error 130
Can you please post your settings and chart time frame that you're using?
If you need clarifications for settings, just ask, no problem.
Here is a slightly improved version, again for learning purposes as usual.
I've added the PeriodForSgnal parameter since the previous was taking signals only of 1 minute time frame, now you can set it to 5, 15, 60 minute, whatever you want if trading news.
When StopLoss=0 it will calculate a stop loss for you. If SetDistance=0, it will calculate a distance for pending orders.
It worked!!! I am able to run some back testing today, I made a mistake in one of the inputs. I will still try out some testing on a demo account. Thanks a million times.
You're welcome.
Glad to here you're learning.
And you're welcome to ask if you have any other questions.
hello the e a is working fine in back testing but not working on demo. The articles I have seen online are showing something like the order send and the order modify wouldhave to be sent differently. I do not really understand this. Thanks
Hi diamstar,
Glad to hear that you're learning . Now, are you sure you are talking about demo and not live account ?
I'm aware that some brokers don't allow EA's to place orders with stop loss and take profit on live accounts so
the work around is to modify the EA to send the orders with zero stop loss and zero take profit and then use another function to modify
the stop loss and take profit to whatever value you want, but again, that is for live accounts not demo.
If what you say happens on demo, you need to press Terminal button and check the Experts tab and the Journal tab and see if you get any errors in there.
If you do get any error messages, let me know what they are.
It's hard to guess on such little details what you're trying to do and what goes wrong. Let me know how you use it, what your stop is, take profit, etc.
I'm working on improving this EA as it shows potential for good results with the right parameters and the right time for the orders.
I will keep you updated as long as you're interested.