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

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
Hello, if an EA only sets pending orders, should it be able to handle errors?
Yes.
For example.
Yes.
For example.
Would a function like this be suitable for error handling?
Something's too short. Even this one isn't full-fledged either.
Accordingly, if the function returns 1, we should try to place an order again; if it returns 0, we will exit the function for opening orders.
Citizens, can you tell me why the Alpari terminal is unable to place an order?
The OrderSend function looks like this
There are no parameters equal to zero. I have checked it.
The minimum stop and profit distance according to the terminal conditions = 0.1.
The terminal generates error 130 and writes about an invalid profit or stop.
SL and TP parameters are 11 and 1 (after normalization), respectively.
On terminals Aforex, Diven FX, ForexClub, AlfaForex - no problems with the same code.
Citizens, can you tell me why the Alpari terminal is unable to place an order?
The OrderSend function looks like this
There are no parameters equal to zero. I have checked it.
The minimum stop and profit distance according to the terminal conditions = 0.1.
The terminal generates error 130 and writes about an invalid profit or stop.
SL and TP parameters are 11 and 1 (after normalization), respectively.
On terminals Aforex, Diven FX, ForexClub, AlfaForex - no problems with the same code.
buy/sell without stop and takeaway sl=0;tp=0, then modify-->sl=100;tp=300
Buy/sell without stop and takeoff sl=0;tp=0, then modify-->sl=100;tp=300
The thought has already occurred to me out of desperation...
However, the question is why with all the correct parameters the order is not placed.
Since this is a gold chart, the numbers 11 and 1 are quite correct. Translated it means 10 and 110 pips.
I checked prices and stop and profit parameters. There is exactly 120 pips between the profit and stop, and for some reason the opening price = 0.000.
Attempting to place a pending order brought nothing either....
It's getting more and more miraculous.
Good day all!
Could you please tell me the best way to code the following condition
If all candlesticks from 1 to 20 are bearish without exception (the number of points between the opening and closing of each candlestick does not matter)
To open an order.
I can't read anything else, just open an order.
Good day all!
Could you please tell me the best way to code the following condition
If all candlesticks from 1 to 20 are bearish without exception (the number of points between the opening and closing of each candlestick does not matter)
To open an order.
The only way to do this is to write a "make-work" order.
If I could just write it "by hand".