Hello Guest

presetlist

  • 4 Replies
  • 83 Views
*

PMG

  • **
  • 41
  • +0/-0
    • View Profile
presetlist
« on: September 03, 2019, 11:50:43 am »
hello
how do I modify the list (i talk about  advanced mode, strategy = preset list) in developer mode ?
« Last Edit: September 03, 2019, 05:34:47 pm by PMG »

*

Seuntjie

  • *****
  • 335
  • +9/-2
    • View Profile
Re: preselist
« Reply #1 on: September 03, 2019, 01:53:25 pm »
You can use the setvaluestring(string name,string value) function (See the steemit tutorial 1.2 - Functions on https://forum.seuntjie.com/index.php?topic=2.0)

The setting name is: PresetValues
setting names are care sensitive. Your value has to be the FULL list, separated by question marks between values.

For example: 1?2?34?6/high/49.5?7
is equal to:
1
2
34
6/high/49.5
7

*

PMG

  • **
  • 41
  • +0/-0
    • View Profile
Re: presetlist
« Reply #2 on: September 03, 2019, 05:58:19 pm »
thank you for your reply

it works but i can't modify chance and direction(bet high or low)

*

Seuntjie

  • *****
  • 335
  • +9/-2
    • View Profile
Re: presetlist
« Reply #3 on: September 03, 2019, 06:30:53 pm »
You'll have to post the code that you're using and a more detailed explanation of what you're trying to do and what's not working for anyone to be able to help you further.

*

PMG

  • **
  • 41
  • +0/-0
    • View Profile
Re: presetlist
« Reply #4 on: September 03, 2019, 08:30:55 pm »

chance values and direction are wrote in advanced mode with   setvaluestring(name: string , value:string) but in dev mode only bet amount is modified

Code: [Select]
chance=49.5 --sets your chance for placing a bet
--nextbet=0.00000100 --sets your first bet.
bethigh=true --bet high when true, bet low when false

enablezz = true --set to true to use high/low switching
--settings from advanced mode

enablesrc = true --set to true to use stop/reset conditions
--settings from advanced mode

function dobet()
   
    setvaluestring("PresetValues","0.001/44/low?0.1/33/high")

    if win then
        nextbet = presetlist(true)
    else
        nextbet = presetlist(false)
    end
   
end

https://prnt.sc/p1dpkp