81
Triggered betting / Re: Problem with timing of calculations
« Last post by djmotion on 17 Oct 2024, 16:17 »Setting Variables (this sets the variables manually in case there was an error and I had to restart the program)
set user variable
Name: rec_amount (amount of money to recover) Value: rec1 Globally
set user variable
Name: lss_count (number of losses so far) Value: rec2 Globally
One Time Only (No Conditions)
After a win
set user variable
Name: rec_amount Value: 0 Globally
set user variable
Name: lss_count value: 0 Globally
Once per market
Settled
Markets Settled P/L > 0
After a Loss
Set user variable
Name: rec_amount Value: rec_amount - market settled p/l Globally
set user variable
Name: lss_count Value: lss_count + 1 Globally
Once per market
Settled
Markets settled p/l < 0
Place a Lay bet
Lay ... Price: lay_price ... Amount: rec_amount + (lss_count*trg_pft) + trg_pft Take SP
First Matching Selection
Once Per Market
All Except Settled
Markets minutes before the off is between 0 and 5
and selections lay price is equal or less than max_price
AND Trigger Place a Lay Bet number of runs in the market is less than max_bet overall
or previous triggered event status is settled
set user variable
Name: rec_amount (amount of money to recover) Value: rec1 Globally
set user variable
Name: lss_count (number of losses so far) Value: rec2 Globally
One Time Only (No Conditions)
After a win
set user variable
Name: rec_amount Value: 0 Globally
set user variable
Name: lss_count value: 0 Globally
Once per market
Settled
Markets Settled P/L > 0
After a Loss
Set user variable
Name: rec_amount Value: rec_amount - market settled p/l Globally
set user variable
Name: lss_count Value: lss_count + 1 Globally
Once per market
Settled
Markets settled p/l < 0
Place a Lay bet
Lay ... Price: lay_price ... Amount: rec_amount + (lss_count*trg_pft) + trg_pft Take SP
First Matching Selection
Once Per Market
All Except Settled
Markets minutes before the off is between 0 and 5
and selections lay price is equal or less than max_price
AND Trigger Place a Lay Bet number of runs in the market is less than max_bet overall
or previous triggered event status is settled