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
Take your time to read the thread!
I am writing there about the option
even if the BROKER gives a requote ...
error code 138 and a real account.
If you mean this option and it refers to OrderModify
YuraZ писал(а) >>
допустим
получен сигнал -
на тике бъем на вход раз 5
не пробили! вышли
на втором тике после сигнала входим и долбим далше!
..then I haven't grown to the ticks yet))) How to account for them 1st tick, 2nd tick?
Sleep(2000); // it's a 2 second wait after an error
And wait for a new tick for how long?
Try it like this.
I now have the task of setting a stop via OrderModify immediately after OpenSend and checking if this stop exists.
If it didn't work, don't trace it anymore, if not, what's the error and try to put... put... and put...)
replace with this:
here:
1. why define variable type unnecessarily - this is an error that should pop up during compilation
2. instead of continue - to transition to a new iteration (i.e. to a new attempt to modify), use break - exit from the loop (and infinite, which is not good)
1. why define the type of variable unnecessarily - this is an error that should pop up at compile time
fixed)
2. Instead of continue - iteration jumping to a new iteration (i.e. a new modification attempt), use break - exit from the loop
>> Thank you!
...and it's endless, which is not good...
infinite because it is necessary to stop it...
And if I make a couple of attempts and it is rejected for some reason and the price goes far against the position during this time... What to do then?
Errors in the log:
open #1 sell 0.01 EURUSD ok
modify #1 sell 0.01 EURUSD ok
Error trying to set a stop for SEL, error code =0
stop loss #1
open #2 sell 0.01 EURUSD ok
modify #2 sell 0.01 EURUSD ok
Error trying to set a stop for SEL, error code =0
stop loss #2
open #3 sell 0.01 EURUSD ok
modify #3 sell 0.01 EURUSD ok
Error trying to set a stop for SEL, error code =0
enter SELL
modify SELL
If you mean this option and it refers to OrderModify
..then I haven't grown to the ticks yet))) How to account for them 1st tick, 2nd tick?
Sleep(2000); // this is a 2 second wait after an error
And how long to wait for a new tick?
at every tick
is called
START()
{
}
---
note that if you're in the START function for a long time
you might miss one or more ticks
e.g. you enter a START function and sit there for 10 minutes, it is logical that ticks will come but you won't catch them
although you may not get a tick for quite a long time at night
---
so sitting in START function for a long time is bad for ticks capturing (if they are important for you)
write economy programs with a minimum of cycles and delays
---
...bear in mind that if you're in the START function for a long time
you may well miss one or more ticks
e.g. you have entered the START function and have been there for 10 minutes, it is logical that ticks will come but you will not catch them
although you may not get a tick at night for a long time
---
so sitting in START function for a long time is bad for ticks capturing (if they are important for you)
Write economy programs with a minimum of cycles and delays.
---
If you use the RefreshRates() function before modifying or setting an order, it just updates the state outside of Start(), i.e. ticks?
Do I understand it correctly?
Here is the final version of the opening and modification of the pose for critique.
The "+" and "-" of this option?
opening sell
stop modification