Author Topic: bet amount (ba)  (Read 1676 times)

Tags:
  • All members
  • Posts: 22
  • Gender: Male
bet amount (ba)
« on: 29 Mar 2017, 12:41 »
Hi in constants on a trigger i have (ba bet amount £2 start with initial value ) how to i change this to % of balance in either test or real mode ?

Also will this need changing in the block as i have (lay price mlp Amount ba Cancel)

All help gratefully received as new to this but trying to work through it 

Cheers 

Jamie

  • Moderator
  • Posts: 3597
*
Re: bet amount (ba)
« Reply #1 on: 30 Mar 2017, 07:23 »
Hi
replace ba with:

IF(test_mode=1, test_funds, total_funds)*(perc/100)

where perc is the percentage

please use test mode first to check it's working as you want it.
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: 22
  • Gender: Male
Re: bet amount (ba)
« Reply #2 on: 30 Mar 2017, 09:21 »
hi thanks for your help does that go in the (amount ba cancel) formula builder i presume and delete ba from the constants ? have attached screen shot for you 

Cheers 
james 

  • Moderator
  • Posts: 3597
*
Re: bet amount (ba)
« Reply #3 on: 30 Mar 2017, 09:47 »
Hi
to be neat and tidy, change the constant ba to:
perc Description: percentage of bank to bet Value: whatever percentage you want, e.g. 5 Start with initial value

in the trigger Amount field, replace ba with the formula:
IF(test_mode=1, test_funds, total_funds)*(perc/100)
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: 22
  • Gender: Male
Re: bet amount (ba)
« Reply #4 on: 30 Mar 2017, 09:51 »
great mark thanks again try that later 

 

Please note, BetFair is seems to be currently OFFLINE