Pages:
Actions
  • #1 by armarni on 30 Jan 2015
  • Hi

    (I posted about this yesterday in the triggered betting forum, but the lack of replies makes me think it's not currently possible, hence I thought it might make a good suggestion for an upcoming release.)

    I have some triggers that historically don't perform well at certain times of the year.  At the moment I avoid those parts of the year by using the trigger expression:

    Global Current Time is Outside 01/10/2014 and 31/01/2015

    While this works fine, I need to remember to adjust it annually for each affected trigger, as obviously the year changes each 12 months.  Could the Current time variable be made to address individual months, rather than just days of the week or times of the day?
  • #2 by 1oser on 30 Jan 2015
  • You should be able to use a trigger. but this is a small pain to suffer once a year.

    stop date and start date in constant in MF time format.

    Condition
    if start date and stop date < now_time

    Action
    start date + (8760/mf_hour)
    Action 2
    stop date +  + (8760/mf_hour)

    this should add a year .. setting the pause period forward.

    check it .. test.

  • #3 by armarni on 30 Jan 2015
  • Thanks 1oser

    I'll try that

    I appreciate that it seems a trivial thing, but when you have different strategies running in various overlapping seasons, it's easy to miss one and then have it firing during the wrong part of the year, with a resulting bad effect on the bank balance!
  • #4 by barniani on 13 Feb 2015
  • I thin that might work. Trying this out as well.
Pages:
Actions