Author Topic: Anyone have a clue how to solve this?  (Read 2618 times)

Tags:
  • All members
  • Posts: 365
Anyone have a clue how to solve this?
« on: 15 Mar 2015, 09:32 »
If I have a text file  containing names (soccer teams) and a corresponding value for each team like this.

Team1 value1
Team2 value2
Team3 value3
Team4 value4
Team5 value5
.
.
.

Then if a game is between(arbitrary chosen) Team2 vs Team3

I want to do a calculation... value=f(value2,value3) for my decision.

Can anyone give me a clue?

  • Moderator
  • Posts: 3597
*
Re: Anyone have a clue how to solve this?
« Reply #1 on: 15 Mar 2015, 21:52 »
Hi
Not quite sure I understand what you're intending but here is just an idea, untested:

assuming you import the text file, replicate the selection name as imported_1:
sel_name   imported_1 imported_2
Team1      Team1      value1
Team2      Team2      value2
Team3      Team3      value3

Match Odds market:
IF(FIND("imported_1", "s_2_sel_name")>0, {your calculation}, imported_2)

Using your example above, this should find Team3 in s_2_sel_name (Away team) and return {your calculation}, else value2

 

 
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.

  • Guest
Re: Anyone have a clue how to solve this?
« Reply #2 on: 15 Mar 2015, 22:43 »
yeah What Mark said  ;) ;)

  • All members
  • Posts: 365
Re: Anyone have a clue how to solve this?
« Reply #3 on: 16 Mar 2015, 10:34 »
Thanks for helping me guys  :)

I tried with a file and imported it for auto-trading -worked! But the IF-condition which I was placing as "Price", just for testing - did not worked.

Mark can this be working? - if I just load (Market Locator) a certain soccer league, and I have a file with all the teams (whole league) as:  Team1, Team2, Team3,... and for every team I assign a value: value1, value2, value3, ...

Then If two teams have a meeting in that league (arbitrary - new matches almost every day) then I want to do calculation with the values corresponding to each of the team (the two teams who have a meeting).

Attached is an example file for Primera Division, using the syntax you suggested.

  • All members
  • Posts: 365
Re: Anyone have a clue how to solve this?
« Reply #4 on: 16 Mar 2015, 11:46 »
...The IF-condition could be working - might be me who don't understand (yet :))

  • Moderator
  • Posts: 3597
*
Re: Anyone have a clue how to solve this?
« Reply #5 on: 16 Mar 2015, 11:50 »
...The IF-condition could be working - might be me who don't understand (yet :))
OK, let me know how you get on.
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: 365
Re: Anyone have a clue how to solve this?
« Reply #6 on: 16 Mar 2015, 11:53 »
It looks like the IF-condition works, but I have to think a bit about it.

Mark! can you confirm the this could be done..


I just load (Market Locator) a certain soccer league, and I have a file with all the teams (whole league) as:  Team1, Team2, Team3,... and for every team I assign a value: value1, value2, value3, ...

Then If two teams have a meeting in that league (arbitrary - new matches almost every day) then I want to do calculation with the values corresponding to each of the team (the two teams who have a meeting).

Attached is an example file for Primera Division, using the syntax you suggested.



  • All members
  • Posts: 365
Re: Anyone have a clue how to solve this?
« Reply #7 on: 16 Mar 2015, 12:33 »
I managed to read the home and away team values in to defined variables (HomeValue_market_id, AwayValue_market_id) by using the IF-condtion - looks like I am almost there.   ;D


 

Please note, BetFair is seems to be currently OFFLINE