- EA trade only once day
- Newbie EA design help
- Open orders once a day or more...
For one trade per day, use below options:
1. Trade on daily chart and open & close trade only at new bar.
2. Get day from any of day functions and ifs different then previously saved then opne & close trades..
I would appreciate if you could guide me through the code I have to add to make this EA trade only once every day
You do realize that without seeing the code of EA no responsible coder will tell you what to change and where to place the condition required by you. They can write a coupe code lines but where will you stick them in and will you be confident enough to use that EA on a real account?
Here is the EA, I am sure that the EA does not need to be altered to its function in placing an order, yet and added code is needed to establish if a trade has already been executed or not, so that the EA can only perform 1 trade for the day. I hope I make sense
Here is the EA, I am sure that the EA does not need to be altered to its function in placing an order, yet and added code is needed to establish if a trade has already been executed or not, so that the EA can only perform 1 trade for the day. I hope I make sense
Not sure what you have attached but it isn't mql4 it looks like HTML
i had my computer guy check that html, he says that it is a webpage from some company called 4xproject.com
**spam**
edit: i smile every time that i see your little helmet! it looks exactly like my youngest son has for his motorbike!
i had my computer guy check that html, he says that it is a webpage from some company called 4xproject.com
**spam**
edit: i smile every time that i see your little helmet! it looks exactly like my ten year old has for his dirt bicycle!
I'm glad my Avatar brings a smile to your face . . . it brought a smile to my face too at the time, I was in a Formula 1 car about to drive a few laps round a track, it was for my 40th Birthday. :-)
My F1 experience
Hi there, I have no idea of the programming of EA's yet
Please can someone help me with the necessary changes I have to make to have this EA trading only once every day, and closing the open orders at the end of each day.
- Since there are no slaves here, there are only two choices: learn to code or pay someone. We're not going to code it FOR you. We are willing to HELP you.
#define HR2400 86400 // 24 * 3600 datetime TimeOfDay(datetime when){ return( when % HR2400 ); } datetime DateOfDay(datetime when){ return( when - TimeOfDay(when) ); } int start(){ static datetime lastTradeOpen; datetime now = TimeCurrent(), BOD = DateOfDay(now); bool isTradingAllowed = BOD != lastTradeOpen; : if (isTradingAllowed){ CloseAllOrders(); : if (openCondition){ int ticket = OrderSend(...); if (ticket < 0) Alert(... else lastTradeOpen = BOD; } } :
see my code
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use