Pages:
Actions
  • #1 by smt on 30 Jun 2013
  • Hi at all,
    i have a little problem and hpe for your help :)
    When i set a user variable "profit_loss" for example in horse race with 5 selections, i will get 5 profit_losses. Now i want the sum of all the 5 variables.
    Example: This is the output i get now:
    10
    10
    -50
    10
    -20
    But i want this output:
    -40

    What can i do?
    Thanks!
    smt
  • #2 by mcbee on 30 Jun 2013
  • hi
    (profit1+profit2+profit3+profit4+profit5)
    where profit1 is you put your variable name etc


    mcbee
  • #3 by smt on 30 Jun 2013
  • I tried but it doesnt work. I think you missunderstood me. It's just one action and just one variable. For example:
    set user variable:
    name: xyz value: lay_unmatched
    all markets selections

    Now in the trigger log i will get in one action the several unmatched amount of all selections, but i want the sum of them.

    Thanks for your help!
  • #4 by mcbee on 30 Jun 2013
  • hi
    if you want to see the total value, then open the variable screen/window and type in as my prev post, you will then have the running total.
    if you want to see the value in the log, then you will have to set a new variable with all the profit variables added together, then the new variable will have the value that you want.


    mcbee
  • #5 by smt on 30 Jun 2013
  • I'm sorry mcbee, it doesn't work. Please tell me my mistake. For example i want the sum value of all profits. My solution for this looks like that you said:
    Horse race, 7 selections

    1.
    Set user variable
    Name: profit      value: profit_loss
    all markets selections

    2.
    Set user varibale
    name: all_profit        value: (profit1+profit2+profit3+profit4+profit5+profit6+profit7)
    all markets selections


    But this way doesn't work... :(
  • #6 by mcbee on 30 Jun 2013
  • hi
    it is easier for me to do a trigger for you.
    in the variable screen type
    all_profit
    profit1
    profit2
    profit3
    profit4
    profit5
    profit6
    profit7
    so you should see all the profit and loss, and all the separate profit and losses.

    mcbee

    download the trigger below
  • #7 by smt on 30 Jun 2013
  • Thanks mcbee, thats not what i need, but i recogniced thats not possible that easy what i need!
    I need the difference between the amount of unmatched bets when the get taken for their original price and the amount when the get taken for available price. And that for every selection in the market. And this selections will possible have more than one unmatched bet. And i need that for different numbers of selections because there a different runners in a race :)

    So in other words that mean, that I need the unmatched amount for every selection, the average price of the unmatched bet of every selection, the available price for every selection and that for a different number of selections! And it should be executed every 10 seconds.

    Is there any way for that?

    Thanks for your time mcbee!
  • #8 by mcbee on 30 Jun 2013
  • hi
    can you say what it is that you are trying to do with the information.
    or better still, say what exactly you are doing.

    mcbee
  • #9 by smt on 30 Jun 2013
  • I have a lot of unmatched lay bets on different selections. For example it is an amount of 80€ in the sum of all unmatched bets. But the amount is just 80€ when they get taken on their original price.
    Now I need the information, what the amount would be, when i would adjust the amount of all unmatched bets to their now available price.

    In average their will be 2-3 unmatched bets per selection. And that in maybe 10 markets per day.

    My big problem is, to build ONE trigger for an unequal number of selections because of different markets.

    Thanks
Pages:
Actions