phipho:
Why don't you use your old code https://www.mql5.com/en/forum/142274 and please don't double post.
//+------------------------------------------------------------------+ //| Start function | //+------------------------------------------------------------------+ void start() { //---- check for history and trading if(Bars<100 || IsTradeAllowed()==false) return; //---- calculate open orders by current symbol if(CalculateCurrentOrders(Symbol())==0) CheckForOpen(); //---- } //+------------------------------------------------------------------+ when i put start it not run . I can't find mistake
phi.nuts:
Tại sao bạn không sử dụng mã cũ của bạn https://www.mql5.com/en/forum/142274 và xin vui lòng không bài đôi.
Tại sao bạn không sử dụng mã cũ của bạn https://www.mql5.com/en/forum/142274 và xin vui lòng không bài đôi.
i old code can't use takeprofit and stop loss. and i must write new code
phipho:
when i put start it not run . I can't find mistake
when i put start it not run . I can't find mistake
Add some debugging Print(); messages/statements so you can tell what parts of your code are being executed . . . for example print your MA values

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