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

Tags:
  • All members
  • Posts: 527
  • Karma: +17/-5
  • Gender: Male
individually for each market
« on: Thu, 28 December, 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: 6686
  • Karma: +221/-0
  • Gender: Female
*
Re: individually for each market
« Reply #1 on: Sat, 30 December, 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!

You can get a faster response from us if you contact us via FaceBook Messenger.

Присоединяйтесь к нашей официальной группе ВКонтакте!

  • All members
  • Posts: 527
  • Karma: +17/-5
  • Gender: Male
Re: individually for each market
« Reply #2 on: Sun, 31 December, 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: 527
  • Karma: +17/-5
  • Gender: Male
Re: individually for each market
« Reply #3 on: Sun, 31 December, 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: 6686
  • Karma: +221/-0
  • Gender: Female
*
Re: individually for each market
« Reply #4 on: Mon, 01 January, 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!

You can get a faster response from us if you contact us via FaceBook Messenger.

Присоединяйтесь к нашей официальной группе ВКонтакте!

  • All members
  • Posts: 527
  • Karma: +17/-5
  • Gender: Male
Re: individually for each market
« Reply #5 on: Tue, 02 January, 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