Author Topic: Countdown  (Read 508 times)

Tags:
  • All members
  • Posts: 525
  • Karma: +17/-5
  • Gender: Male
Countdown
« on: Thu, 21 December, 2017, 08:45 »
I desire a trigger that will countdown from 20 to 0 however the intervals will vary based on (event_start - now_time)

So if there is 5 minutes to go until event_off the intervals will be 15s (300s/20) whereas if there was 1 minute to go the intervals would be 3s (60s/20).

I am not mathematically savvy to work this one out.
Improvise Adapt Overcome

  • Trigger developers
  • Posts: 2797
  • Karma: +230/-0
*
Re: Countdown
« Reply #1 on: Thu, 21 December, 2017, 10:44 »
Hi londolozi
This does the intervals, you could, for example, set the market refresh rate to this?
((event_start-now_time)/mf_second)/20
pop it into variable viewer and see what you think

hope the weather there is better than here, today's shortest day, tomorrow's summer 8) 
season's greetings 
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 525
  • Karma: +17/-5
  • Gender: Male
Re: Countdown
« Reply #2 on: Thu, 21 December, 2017, 10:48 »
What a confidence MarkV, my phone just told me 'its the longest day of the year' ....weather is perfect.
Thanks for your help.
Merry Xmas. 
Improvise Adapt Overcome

  • Administrator
  • Posts: 6360
  • Karma: +212/-2
  • Gender: Female
*
Re: Countdown
« Reply #3 on: Tue, 26 December, 2017, 20:44 »
londolozi, if I recall it right, you are on the other side of the globe, so cheers to the great weather over there and best wishes in the New Year! :)
Always try your triggers in Test Mode before switching to real money!

You can get a faster response from us if you contact us via FaceBook Messenger.

Присоединяйтесь к нашей официальной группе ВКонтакте!