Author Topic: individually for each market  (Read 3202 times)

Tags:
  • All members
  • Posts: 490
  • Gender: Male
individually for each market
« on: 28 Dec 2017, 05:14 »
I have this trigger (see attached) but when it resets the restarted value of the user variable 'ctt' affects other market triggers.
Yet I have 'individually for each market' as a condition??
Improvise Adapt Overcome

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: individually for each market
« Reply #1 on: 30 Dec 2017, 16:27 »
Hello!

The scope is "individually for each market", not "individually for each trigger", so of course it can affect other triggers that potentially rely on this variable to do their job in the same market.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • All members
  • Posts: 490
  • Gender: Male
Re: individually for each market
« Reply #2 on: 31 Dec 2017, 03:10 »
So If I use ctt_market_id
Will the trigger only use the ctt (counter) for it's market?
Improvise Adapt Overcome

  • All members
  • Posts: 490
  • Gender: Male
Re: individually for each market
« Reply #3 on: 31 Dec 2017, 03:19 »
Hello! The scope is "individually for each market", not "individually for each trigger", so of course it can affect other triggers that potentially rely on this variable to do their job in the same market.

There is only ever one ctt per market. While ctt may start again and have another value it is only ever for another market.
My question remains?
Improvise Adapt Overcome

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: individually for each market
« Reply #4 on: 01 Jan 2018, 16:21 »
Sorry, I do not quite understand your question.

Please formulate the problem and what is needed of the trigger.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • All members
  • Posts: 490
  • Gender: Male
Re: individually for each market
« Reply #5 on: 02 Jan 2018, 06:46 »
I require a trigger to count from 0 to a divisor (in my case 20) <ctt> is the variable
A variable <rtt> is the time from bm_backmtime until event_start / 20

Every increment of ctt, I change the offered lay_price to r_ticks(backp,-ctt) Starting at -20 and stepping toward 0 (reverse for this part)

When now_time > bm_backmtime + (rtt*ctt) I cancel the lay and offer a new lay.
ctt increments again.

The old lay is cancelled and a new lay is offered.

By the time I reach event start I should be at the initial backp r_ticks(backp,0)

I want a counter for each individual market. It will only act once, after I have matched a particular horse with a specified amount.

 
   
Improvise Adapt Overcome

 

Please note, BetFair is seems to be currently OFFLINE