
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
And I'm just looking for the reason why positions don't close, in the position closing block, when it's correct. What would be the right one?
==================
Remove your closing block. What's the right one there....
Insert this code before the line :
if(total<1){ //if there are no open positions
When opening positions you call the GetLastError() error function, but there is no reference to it in the code for some reason!
Why did you remove it from my code? -
is tested, but does not close at 22 positions. I haven't thrown anything out, it's a new code, as the EA doesn't trade with yours, although it does test.
Try it this way. And check carefully the opening conditions for buy and sell.
( Close[1]>= Open[24] && ..... ......)
Oddly enough, I managed to rework the code of the base MT4 distribution Moving Average EA. In the tester the trades are tested, in 22 they are closed, whether the EA will trade itself I don't know. Here is the code if you need it.
Try it this way. And check carefully the opening conditions for buy and sell.
( Close[1]>= Open[24] && ..... ......)
Drop this one, thanks, all worked out with the Moving Avrage code. If he doesn't make the trades himself on Monday, let's continue our discussion. I hope my tehanalysis method was worth it, four GBPUSD, EURUSD, USDJPY, USDCHF EAs can, judging by one CHF, bring good profits.
Oddly enough, I managed to rework the code of the basic MT4 distribution Moving Aviagre EA. In the tester trades are tested, in 22 they are closed, whether the EA will trade itself I don't know. Here is the code if you need it.
Unfortunately, this advisor can only work correctly in the tester....
Online - more than half of the signals will be missed. This is because of this condition:
what to do, how to change it, maybe just delete it, because Movinga parameters aren't in the code anymore
how does Movinga with this code perform all deals?
you need to let all trades be executed, there won't be many of them, one a day. It needs the Expert Advisor to make 20-40 attempts and open a position within half an hour after the Open Price appears at 23 o'clock
it means that with your code the Expert Advisor could open a position on Tuesday and miss the ticks on Thursday and Friday
what to do, how to change it, maybe just delete it, because Movinga parameters aren't in the code anymore
how does Movinga with this code perform all deals?
you need to let all trades be executed, there won't be many of them, one a day. It needs the Expert Advisor to make 20-40 attempts and open a position within half an hour after the Open Price appears at 23 o'clock
it means that with your code the Expert Advisor could open a position on Tuesday and miss the ticks on Thursday and Friday