Вы упускаете торговые возможности:
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Регистрация
Вход
Вы принимаете политику сайта и условия использования
Если у вас нет учетной записи, зарегистрируйтесь
Can you please help me? Why happend this?
"2011.10.06 13:28:56 Zero divide in 'tf_V1_00.mq5' (199,90)
double percent = 0;
if( AccountInfoDouble( ACCOUNT_EQUITY ) != 0 ) {
percent = maxProfit / AccountInfoDouble( ACCOUNT_EQUITY );
}
"
How can be my ACCOUNT_EQUITY 0 ???
Between the condition and Dividing was a Connection Error??? Or how?
Can you please help me? Why happend this?
"2011.10.06 13:28:56 Zero divide in 'tf_V1_00.mq5' (199,90)
double percent = 0;
if( AccountInfoDouble( ACCOUNT_EQUITY ) != 0 ) {
percent = maxProfit / AccountInfoDouble( ACCOUNT_EQUITY );
}
"
How can be my ACCOUNT_EQUITY 0 ???
Between the condition and Dividing was a Connection Error??? Or how?
Can you please help me? Why happend this?
You had to do something like this:
You had to do something like this:
I´m realy sad...
The next function would be dangerous to use?
double getAccountInfoDouble( ENUM_ACCOUNT_INFO_DOUBLE propertyId ) {
double result = AccountInfoDouble( propertyId );
while( result == 0 ) {
result = AccountInfoDouble( propertyId );
}
return result;
}
...
double percent = maxProfit / getAccountInfoDouble( ACCOUNT_EQUITY );
...
I´m realy sad...
The next function would be dangerous to use?
...смените браузер и будет все в норме.
Проблема-то в том, что именно с IE8 не работает. Хотя предполагается корректная работа. Или хотите сказать, что у всех остальных пользователей IE8 такой проблемы нет?
Как вариант наращивания там наверное Мартин? Все им лавры Manov-а (Dimitar Manov) спокойно жить мешают..
Фразу дополнить нужно думаю так: "А те кто очень сильно рискуют уже ничего не пьют". :)))
Как вариант наращивания там наверное Мартин? Все им лавры Manov-а (Dimitar Manov) спокойно жить мешают..
Фразу дополнить нужно думаю так: "А те кто очень сильно рискуют уже ничего не пьют". :)))