Author Topic: total_won  (Read 807 times)

Tags:
  • All members
  • Posts: 7
total_won
« on: 26 May 2020, 09:28 »
hi all

in real mode the total_won value is showing a negative value despite no bets today or yesterday or day before, is this value the overall statement or can it be reset each day ?


  • Moderator
  • Posts: 3597
*
Re: total_won
« Reply #1 on: 26 May 2020, 10:32 »
Hi
It will be reset according to your account statement settings: retrieve data that are no older than x days.

Also trigger action: reset win/lose history, you can run it at the start of your trading session or according to time of day
e.g. global current time is between 23:55 and 23:59.
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: 7
Re: total_won
« Reply #2 on: 27 May 2020, 11:48 »
great thanks MarkV

  • All members
  • Posts: 7
Re: total_won
« Reply #3 on: 27 May 2020, 18:07 »
ok so I've got the variables max_loss and profit which are set at the first run, how do I make them reset after 24 hours ?

reset win /loss history works and I can set what time to do it, bt how would I make that trigger run every 24 hours  ?

all the variables need refreshing after 24 in order for this stop loss  / stop profit reset to work 

  • Moderator
  • Posts: 3597
*
Re: total_won
« Reply #4 on: 27 May 2020, 20:04 »
you need to have one market refreshing to execute any trigger, could be the first market of the day or even a long-term tournament type of market that is always in my markets refreshing at a slow rate.

also you need to determine the best time slot for reset (not an exact time) for the example lets say 23:44 to 23:56

trigger will be something like this:

set user variable: name: max_loss value: 0 globally
set user variable: name: profit value: 0 globally
reset win/lose history globally
first matching selection
all markets
execute: no more often than 600 sec
condition: global current time is between 23:44 and 23:56

this trigger will fire once every twenty four hours in that time slot  
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: 7
Re: total_won
« Reply #5 on: 27 May 2020, 20:44 »
Perfect 👌🏼 thank you I will try that and let you know how I get on

 

Please note, BetFair is seems to be currently OFFLINE