Author Topic: need little advise-help  (Read 2395 times)

Tags:
  • All members
  • Posts: 5
  • Gender: Male
need little advise-help
« on: 12 Jan 2016, 13:58 »
Hi all!
I try to create simple scalping bot with 2-3 conditions but i cant find a condition what will trigger my back-lay bet after my first bet is matched. There is "last traded price" condition,but if market goes opposite direction then it places bet there where i dont want it.
Is there some way to create condition like "place back-lay bet under-over MY last traded price" or something like that?
Can somebody advise what can be done here?

Jann

  • Guest
Re: need little advise-help
« Reply #1 on: 12 Jan 2016, 15:23 »
Hi


you could use


or selections back_price is less than bm_backp


which will place a bet if the current back price is less than the price of the last non-sp back bet matched on that selection.


please test extensively!!

  • All members
  • Posts: 5
  • Gender: Male
Re: need little advise-help
« Reply #2 on: 12 Jan 2016, 16:25 »
thanks for advice,but thats not enough. it still places bets if market goes to the wrong direction :/
but is it possible to make condition like for instance "back amount of 3 best prices are 2 times higher-lower than amounts of 3 best lay prices"?

  • All members
  • Posts: 365
Re: need little advise-help
« Reply #3 on: 12 Jan 2016, 16:52 »
...maybe r_ticks could be helpful?

Assume you have a matched back bet, then you could lay at price "r_ticks(bm_backp,-1)" and amount "bm_backa"

  • Guest
Re: need little advise-help
« Reply #4 on: 12 Jan 2016, 17:20 »
"thanks for advice,but thats not enough. it still places bets if market goes to the wrong direction :/but is it possible to make condition like for instance "back amount of 3 best prices are 2 times higher-lower than amounts of 3 best lay prices"?"

back volume is the sum of the three amounts offered at the best back prices.
lay volume is the sum of the three amounts offered at the best lay prices.

so the condition selections Lay volume is less than back_volume*2


It's not clear what you mean when you say the market goes in the wrong direction. Your initial betting conditions should only bet if the market is in the right direction and then only repeat under those conditions IF the price is lower than your last back bet, which was the condition I first posted.



  • All members
  • Posts: 5
  • Gender: Male
Re: need little advise-help
« Reply #5 on: 12 Jan 2016, 17:34 »
...maybe r_ticks could be helpful?

Assume you have a matched back bet, then you could lay at price "r_ticks(bm_backp,-1)" and amount "bm_backa"




cant i put it together :/ how it starts? selections or ...?

  • All members
  • Posts: 5
  • Gender: Male
Re: need little advise-help
« Reply #6 on: 12 Jan 2016, 17:44 »
"thanks for advice,but thats not enough. it still places bets if market goes to the wrong direction :/but is it possible to make condition like for instance "back amount of 3 best prices are 2 times higher-lower than amounts of 3 best lay prices"?"

back volume is the sum of the three amounts offered at the best back prices.
lay volume is the sum of the three amounts offered at the best lay prices.

so the condition selections Lay volume is less than back_volume*2


It's not clear what you mean when you say the market goes in the wrong direction. Your initial betting conditions should only bet if the market is in the right direction and then only repeat under those conditions IF the price is lower than your last back bet, which was the condition I first posted.




example :

under 2.5 goal market say its 80min
first trigger back bet @ 3 ......and matched
second trigger should be 1 tick below @2.98

market direction "should" be down,but for whatever reasons it goes up(wrong direction) and the lay bet will be matched @ 3.05.....thats the problem :)


  • All members
  • Posts: 365
Re: need little advise-help
« Reply #7 on: 12 Jan 2016, 17:52 »
Ithink it could look somting like this (to try this out you could place a back bet manually and this should then place a lay bet at the price 1 tic below your matched back price)

action: lay
price: r_ticks(bm_backp,-1)
amount: bm_backa

conditions:
selections trigger expressions bm_backa>0

  • All members
  • Posts: 5
  • Gender: Male
Re: need little advise-help
« Reply #8 on: 12 Jan 2016, 18:15 »
 thats exactly what i needed :)

big thanx tupp!!!

 

Please note, BetFair is seems to be currently OFFLINE