Author Topic: Set user variable to record sel-id?  (Read 3039 times)

Tags:
  • All members
  • Posts: 149
Set user variable to record sel-id?
« on: 26 May 2014, 09:11 »
Hello,
I've attached an image of part of a trigger to set a user variable 'BackedSelection' to record a selections ID(sel_id) when a bet is placed if conditions are met. I want to compare that variable after the race to pw_1_sel_id to ensure the selections won to update a counter.

I've done this before but didn't seem to work.

Would this work please?

Any help much appreciated
Regards
foxmor

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Set user variable to record sel-id?
« Reply #1 on: 26 May 2014, 10:48 »
hi
you have set the variable to individually for each market, so it will not work in the next market.
you need to set it to global, then have your recording trigger set the variable to 0 after the counter variable.


mcbee
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: 149
Re: Set user variable to record sel-id?
« Reply #2 on: 26 May 2014, 11:14 »
Hi mcbee,

Thanks for your help.
The one thing I'm not quite clear on is when you say I need to set it to set it to global.
Do you mean I need to set the recording trigger to global?

foxmor

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Set user variable to record sel-id?
« Reply #3 on: 26 May 2014, 11:29 »
hi
the action,    set user     variable     BackedSelection     sel_id     global


mcbee
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: 149
Re: Set user variable to record sel-id?
« Reply #4 on: 26 May 2014, 11:33 »
Brilliant, see how that goes today.
Thanks mcbee
foxmor

  • All members
  • Posts: 149
Re: Set user variable to record sel-id?
« Reply #5 on: 26 May 2014, 11:46 »
Sorry mcbee...

you said in your first reply...
'you have set the variable to individually for each market, so it will not work in the next market'

Then you said...
'the action,    set user     variable     BackedSelection     sel_id     global'

I'm confused to be honest, dont understand now which it needs to be set to?
foxmor

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Set user variable to record sel-id?
« Reply #6 on: 26 May 2014, 12:24 »
hi
in your screen shot.
change the   individually for each market
to     globally

mcbee
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: 149
Re: Set user variable to record sel-id?
« Reply #7 on: 26 May 2014, 12:54 »
ok thx... changed it to that.
Cheers

 

Please note, BetFair is seems to be currently OFFLINE