Pages:
Actions
  • #1 by LarpHager on 08 Sep 2016
  • hi,

    I want to use a number on a selections .txt file as a condition of a trigger.

    The .txt file looks like this

    "Larps Millions" T44

    So I want to say
    Selections Name is in file etcetc
    AND Selections trigger expression  ???????????????? is equal to T44

    But I am stuck, any suggestions welcome.

    • LarpHager
  • #2 by MarkV on 08 Sep 2016
  • Hi Larp
    To do that you need to import the text file. See help file auto-trading > import selections for auto-trading
    The variable for the imported data will be imported_1
  • #3 by LarpHager on 08 Sep 2016
  • That will do so.

    Thanks Marco

    Larp
    • LarpHager
  • #4 by LarpHager on 09 Sep 2016
  • Hi,

    some selections will need to backed more than once i.e. some selections will be in the .txt import list more than once. But the program only reads as far as its first entry.

    eg Larps Millions 41
         Larps Millions 97

    the program only fires one bet, being the first trigger using the 41 imported_1 condition.

    I need it to read further down the list as well and fire with a second (or third) trigger using the 97 imported_1 condition.

    I suppose I could use imported_2, but that may involve a lot of trigger conditions writing where I might have imported_3, imported_4 etc etc

    How many imported_values can I have ?
    • LarpHager
  • #5 by MarkV on 09 Sep 2016
  • Hi
    You can specify [the market name] in square brackets before the selection name in the text file, but I think it would be better just to add your imported_ values for each selection. I'm not aware of any limit to the number of imported values.

    Larps Millions <tab>41<tab>97<tab>26<tab>58

    selections trigger expression imported_1 is equal to 41
    or selections trigger expression imported_2 is equal to 97
    or selections trigger expression imported_3 is equal to 26
    or selections trigger expression imported_4 is equal to 58
  • #6 by LarpHager on 09 Sep 2016
  • Thank you Mark. Excellent.
    • LarpHager
Pages:
Actions