61
Русскоязычный форум / Re: Запомнить кеф перед голом
« Last post by Tim (WellDoneSoft) on 22 Jul 2024, 18:38 »Немного сложновато запомнить что-то перед событием
Но можно так:
back_price + pdiff_((now_time-last_suspend)*MF_MINUTE)
К текущему коэффициенту прибавляет разность к коэффициенту Х минут ранее, где Х - время с момента приостановки матча.
Естественно в условиях триггера нужно проверить, что счет изменился.
Но этот способ достаточно неточный.
Можно запоминать состояние рынка (действие "Запомнить") каждую минуту и выполнять нужное действие, если счет изменился, используя запомненное состояние.
Но можно так:
back_price + pdiff_((now_time-last_suspend)*MF_MINUTE)
К текущему коэффициенту прибавляет разность к коэффициенту Х минут ранее, где Х - время с момента приостановки матча.
Естественно в условиях триггера нужно проверить, что счет изменился.
Но этот способ достаточно неточный.
Можно запоминать состояние рынка (действие "Запомнить") каждую минуту и выполнять нужное действие, если счет изменился, используя запомненное состояние.