Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 454

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
Are you testing on AUDUSD ?
The calculated price values in your trade order should be normalized to Digits. Not only that, but it should meet the StopLevel requirements (didn't do it here)
OrderMagicNumber() is the magic number of a pre-selected order. You should either set it as a specific value, or calculate it in the EA, so that it would be unique for it.
Prior to that check unprint all values of all conditions that are checked here. Then it will be clear to you where to look.
Yes, testing on AUDUSD
OrderSend("AUDUSD",OP_BUY,Lot,Ask,slippage,Ask-SL*Point,0,NULL,OrderMagicNumber(),0,Green);-this line worked in the tester without any problems, until we added the conditions
like
iOpen("AUDJPY",PERIOD_M1,1)>iClose("AUDJPY",PERIOD_M1,1)...
I repeat that everything works on the account... not in the tester...
OrderSend("AUDUSD",OP_BUY,Lot,Ask,slippage,Ask-SL*Point,0,NULL,OrderMagicNumber(),0,Green);-this line worked in the tester without problems, until the conditions were added
I have already written to you about this line. Then when error 130 comes up, don't ask me what the problem is.
Soerror 130 may not occur for a long time and then it will happen?
If anyone has encountered a code to calculate equity drawdown (absolute and relative), please give me a link.
Already written.
Great, thank you very much for this material, it will now be much more effective in limiting losses and increasing profits.
i.e. error 130 may not happen for a long time, but then it will?
There is such a function code. In MT4 beta, when compiling it, I get "expression not boolean" warning in lines marked with an arrow. Can you suggest how to fix it?
There is such a function code. In MT4 beta, when compiling it, I get "expression not boolean" warning in lines marked with an arrow. Can you suggest how to fix it?
No, we won't.