[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 74

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
Where again more is mixed up with less, I give up.
For what purpose? Wouldn't it have been easier to give a hint?
Replace OP_SELLSTOP with OP_SELLLIMIT, OP_BUYSTOP with OP_BUYLIMIT.
Also, there is no point in using it twice:
OrderSelect(a, SELECT_BY_POS, MODE_TRADES)
You have an order already selected and you select it again.
sergeev:
Constant error 129. Help me find the error.
How do you find out the error code? Your Alert can give you such abra-cadabra! :D
How do you find out the error code? Your Alert can give such an abra-cadabra! :D
It used to work without fail. But it is not working now. The signal is checked, an attempt is made to send an order, but nothing happens. I have added alerts for control.
This design used to work without fail. But now it doesn't work. The signal is checked, an attempt is made to send an order, but nothing happens. I added alerts to control it.
This design used to work flawlessly. But now it doesn't. The signal is verified and an attempt is made to send an order but nothing happens. I have added alerts to control it.
Why look for a black cat in the night? Print all the numbers and work it out.
Maybe the stops are confused with the open pricemaybe refrashrates should be done more often in the loop
sergeev:
maybe Refrashrates should be done more often in a loop
You turned out to be right, Refrashrates() helped, after compiling here opened the pose, let's observe. Thanks.
o.O
Where was RefreshRates() needed?
Or did you write your own Refrashrates() function? :DD