Author Topic: Price amount formula  (Read 436 times)

Tags:
  • All members
  • Posts: 82
Price amount formula
« on: 26 May 2020, 16:30 »
Hi,
Hopefully a simple one...
I import my selections into the markets once a day using a .txt file, which works fine. I have the selection name then the stake I want to use as imported_1.
Now what I want to do is have the following formula in the stake element of the trigger:
MIN((imported_1 / 1000) * uk_balance, Imported_1 * 5)

It comes back with an error.
What I am trying to achieve is that if I have a starting bank of £500 and my system says its a £100 selection, I want it to the stake to be £50 but then I want it to handle the fact that if my bank grows to be say £100,000, then  I only want it to be putting on 5 times the stake from imported_1 as a max, which would be £500 in this case, not £10,000 in the first half of the formula.

Hope that makes sense!

  • Moderator
  • Posts: 3597
*
Re: Price amount formula
« Reply #1 on: 26 May 2020, 18:06 »
Hi
the MFP function is MINV(expression1, expression2, …)
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.

 

Please note, BetFair is seems to be currently OFFLINE