Author Topic: Trigger problems  (Read 3155 times)

Tags:
  • All members
  • Posts: 149
Trigger problems
« on: 20 Jul 2015, 20:18 »
Hi,
Could someone please help?

I've attached images. The first image shows part of a number of triggers and sets a user variable 'CurrentStep' with the following value if the market loses when settled.

IF(CurrentStep=6, CurrentStep=1, IF(AND(CurrentStep>=1, CurrentStep<=5), CurrentStep=CurrentStep+1, 1))

'CurrentStep' can be between 1 and 6 and increments it if market loses.

I've included another image of the 'View User Variables' window and you can see that the CurrentStep value is the same as the coding except, contains if statement values.

I need it to display a new value, not the 'IF' statement values.

I'm really lost here and would appreciate it if someone could help?
Regards

  • Guest
Re: Trigger problems
« Reply #1 on: 20 Jul 2015, 21:33 »
Hi,

Try this.

Change the troublesome variable to

0 + (IF.etc.etc)

or
1 + (IF.etc.etc)

whichever works for the counter.

Larp

  • All members
  • Posts: 365
Re: Trigger problems
« Reply #2 on: 20 Jul 2015, 21:37 »
I am not sure I've understund you correctly - add a new line (press +) and write the new variables name in the "View User Variables" window.

  • All members
  • Posts: 149
Re: Trigger problems
« Reply #3 on: 20 Jul 2015, 21:47 »
Sorry, I dont follow what you mean there... should be straight forward excel 'if' statement shouldn't it?

  • All members
  • Posts: 365
Re: Trigger problems
« Reply #4 on: 20 Jul 2015, 21:52 »
foxmor - what do you want to achieve?

  • Guest
Re: Trigger problems
« Reply #5 on: 20 Jul 2015, 21:55 »
Tupp is much better at his than I, but this is what I did and it worked.

Are you using a really old trigger from a previous version.


  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Trigger problems
« Reply #6 on: 21 Jul 2015, 05:46 »
hi
Quote
IF(CurrentStep=6, CurrentStep=1, IF(AND(CurrentStep>=1, CurrentStep<=5), CurrentStep=CurrentStep+1, 1))

IF(CurrentStep=6,1,IF(AND(CurrentStep>=1,CurrentStep<=5),CurrentStep+1,1))


mcbee
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: 149
Re: Trigger problems
« Reply #7 on: 21 Jul 2015, 07:21 »
Thank you McBee... knew when you replied you'd sort it.
Regards

  • Guest
Re: Trigger problems
« Reply #8 on: 21 Jul 2015, 11:38 »
I think what you meant to say was

Thanks guys  ;)

  • All members
  • Posts: 149
Re: Trigger problems
« Reply #9 on: 21 Jul 2015, 11:47 »
Yes sorry, I was rude...

Thank you all very much for your help and apologies for not saying thank you

Regards

 

Please note, BetFair is seems to be currently OFFLINE