Author Topic: Change constants/variables depending on a market  (Read 3507 times)

Tags:
  • All members
  • Posts: 24
Hello,

I hope that this is not very dumb question, my apologies if it is  :-\

So, basically I want to be able to change constants/variables depending on market.

Example:
for 5f Hcap I need my constant/variable max_lay_price to be 20, but
for 6f Hcap I need it to be 15

So how do I ask trigger to check name of market and change constants/variables depending on that?

Best Regards,
Alex

  • All members
  • Posts: 365
Re: Change constants/variables depending on a market
« Reply #1 on: 10 Jul 2015, 19:15 »
I think you have to make two triggers
- the first trigger having a condition markets name contain "5f Hcap"
- the second trigger having a condition markets name contain "6f Hcap"

and insted of max_lay_price use two : max_lay_price5f and max_lay_price6f or what you want to name them.

  • All members
  • Posts: 24
Re: Change constants/variables depending on a market
« Reply #2 on: 10 Jul 2015, 19:18 »
Yes, this is one of the way, however I hope there is a different approach since I need trigger to know difference between all types of markets which will make it extremely huge.

  • Guest
Re: Change constants/variables depending on a market
« Reply #3 on: 10 Jul 2015, 20:40 »
Hi,

Can you detail what markets you want to have different and what ones are ok to be the default. ie 5f,6f,7f etc etc.


  • All members
  • Posts: 24
Re: Change constants/variables depending on a market
« Reply #4 on: 10 Jul 2015, 21:35 »
I will need to set different constants for:
5f
6f
7f
1m
1m1f
1m2f
1m3f
1m4f
1m5f
1m6f
2m1f
2m2f
...
and so on...

As I said earlier I will need a different settings for all markets available.
The main setting will be time in-play when the bet needs to be placed.

Best Regards,
Alex

  • Guest
Re: Change constants/variables depending on a market
« Reply #5 on: 11 Jul 2015, 06:23 »
Hi,

Thats alot of conditional writing, but it can be done.

How will you judge the time to bet in the race? Is it the time since the actual start time of the race?

  • All members
  • Posts: 24
Re: Change constants/variables depending on a market
« Reply #6 on: 11 Jul 2015, 07:35 »
Hi,

Yes, time since the actual start of the race.

Best Regards

  • Guest
Re: Change constants/variables depending on a market
« Reply #7 on: 11 Jul 2015, 15:31 »
Hi,

I have something on file for this written not by me, but by Mark or McBee. I will dig it out and post it later today.


UPDATE

There is a trigger file attached which was written by one or more of the multiskilled crew on here. I take credit only for being able to attach it without needing a stapler.

Good luck with it, and please remember to thank whomever did the nice work on it.
Larp

Ps You are getting for free what some other companies would have charged you £30 for a lesser job.






  • All members
  • Posts: 24
Re: Change constants/variables depending on a market
« Reply #8 on: 14 Jul 2015, 21:02 »
Thank you for trigger LarpHager. I highly appreciate your help and everyone involved. Made a thumbs up for you, McBee and Mark as well.

Will support forum in future with my findings, if I have any :)

  • All members
  • Posts: 57
Re: Change constants/variables depending on a market
« Reply #9 on: 25 Apr 2018, 09:07 »
Was just perusing and tried this trigger. Nice bit of work.The only thing I noticed (on Oz) was where you have a market that is 1800m it will find 800m. Also, if the race length is 1620m, for example, the Race Distance will be set to 0.This, I think, is due to the lack to ability to apply wildcards to Find statements.Just a note unless someone else can think of something clever. I just used the Market search only to find markets >=1000m and remove the anomalous lengths. Seems to work.Cheers

 

Please note, BetFair is seems to be currently OFFLINE