Author Topic: Reset trigger  (Read 1515 times)

Tags:
  • All members
  • Posts: 3
  • Gender: Male
Reset trigger
« on: 17 Jul 2016, 01:03 »
I would like to know how to reset my trigger after it has lost X amount of times consecutively.

Thanks

  • Moderator
  • Posts: 3597
*
Re: Reset trigger
« Reply #1 on: 17 Jul 2016, 08:57 »
Hi
That depends on whether your trigger repeats, involves loss recovery etc.

the variable that counts consecutive losses is "losses"

Generically you could use a trigger to:
Action: reset win/lose history
Action(s): set user variables to their default values
Condition:
selections trigger expression losses is equal or greater than x

similarly you could reset the values of any variables and repeat the trigger block using a "close block" trigger, using the same condition as above:
selections trigger expression losses is equal or greater than x
here is an article on how to repeat triggers:
http://marketfeeder.co.uk/learn/articles/how-to-repeat-actions-in-the-same-market/

if you would like a trigger developer to look at your trigger and write it according to your spec, please post your request here:
http://marketfeederpro.com/learn/triggers/trigger-development-service/
   
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: 3
  • Gender: Male
Re: Reset trigger
« Reply #2 on: 17 Jul 2016, 09:53 »
Hi Mark,
thanks for the reply,
I am using a lay trigger with loss recovery.
Do you mean add a constant (which is set to a loss amount of times)
ie: loss_counter and set it to 5 ?
then write a trigger to check it?
or a close block?

thanks,

  • Moderator
  • Posts: 3597
*
Re: Reset trigger
« Reply #3 on: 17 Jul 2016, 10:23 »
Hi
Thanks for describing the principle of your trigger.
Please see in the manual the description for the losses variable:
Triggered Betting > Reference > Variables > Win/Lose History > losses
it automatically counts the number of consecutive losses.

so for the amount field in your laying trigger I suggest something like this depending on what variables are used for the recovery amount (here I assume current_bet):
IF(losses>5, initial_bet, current_bet)

However, there are example staking plan triggers that are tested for correct operation and already do this and you could use one and adapt to your needs.
http://marketfeederpro.com/learn/triggers/by-tag/tags/staking-plan/

This one for example you just set the maximum bet amount in the constant, and if the recovery exceeds this amount the trigger resets to the initial amount
http://marketfeederpro.com/learn/triggers/simple-staking-plan-lay/



 
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: 3
  • Gender: Male
Re: Reset trigger
« Reply #4 on: 17 Jul 2016, 11:08 »
Hi Mark,

Top man  :D

Thanks for the support ...

best regards,

 

Please note, BetFair is seems to be currently OFFLINE