Author Topic: Lay different values  (Read 477 times)

Tags:
  • All members
  • Posts: 29
  • 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??

Thanks;

  • Trigger developers
  • Posts: 2823
  • Karma: +232/-0
*
Re: Lay different values
« Reply #1 on: Mon, 05 February, 2018, 15:03 »
Hi
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: 6666
  • Karma: +220/-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!

You can get a faster response from us if you contact us via FaceBook Messenger.

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