Author Topic: Lay different values  (Read 584 times)

  • All members
  • Posts: 30
  • Karma: +0/-0
Lay different values
« on: Sun, 04 February, 2018, 20:18 »
Hi Guys,

I want to lay several horses but with different values, for example:

If the lay is less than 2 a fixed value, if is more than 2 to lose 10:

I did this

Variable valor = 10

IF(lay_price<=2, valor, valor/(lay_price-1))

But didnt work.

Can you help me??


  • Trigger developers
  • Posts: 2849
  • Karma: +233/-0
Re: Lay different values
« Reply #1 on: Mon, 05 February, 2018, 15:03 »
It should work, is valor initialised with value 10.00? Did you check the trigger log to see where the problem is? Attached screenshot shows a simple lay trigger with your formula.
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.

  • Administrator
  • Posts: 7182
  • Karma: +238/-0
  • Gender: Female
Re: Lay different values
« Reply #2 on: Tue, 06 February, 2018, 08:19 »
Like MarkV above suggested, the first place to look is the trigger log, and then the program log in case this is a case of insufficient funds or other errors.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Usuários brasileiros, bem vindos ao nosso WhatsApp chat!

Присоединяйтесь к нашей официальной группе ВКонтакте!