is there a way to relate different strategies for instance if am running martingale and when i reach some profit change to another strategy and so on an maybe make a loop with 3 or 4 strategies, is that possible?
Yes.
In the programmer mode, you can use the martingale(win:bool), labouchere(win:bool), presetlist(win:bool), and dalembert(win:bool) functions. These will execute the built in advanced mode functions as the are set up at that moment.
You can then use setvalue functions (setvalueint(name:string, value:int), setvaluestring(name:string, value:string),setvaluedecimal(name:string, value:decimal),setvaluebool(name:string, value:bool)) in combination with the settings name as they are found in the exported settings files (case sensitive) to set different values in the advanced mode. For example
setvaluedecimal('Multiplier'),2.5) changes the multiplier on loss in the advanced mode to 2.5.
Alternatively, you can use the loadstrategy(file:string) function, which will load an exported settings file.
Here's a basic script that will loop through 3 advanced mode settings after every 1000 satoshi profit:
nextbet=0.000000001
chance=49.5
files = {'settings1','settings2','settings3'} --your list of files
currentfile=1 --which file you're using
settingsprofit=0 --track profit so you know when to change settings.
loadsettings(files[currentfile])
function dobet
setttingsprofit += currentprofit --add the profit from the current bet to the profit tracking
if (settingsprofit>0.00001000) then
currentfile+=1 --move to the next file
if (currentfile>3) then currentfile = 1 end --make sure you go back to the first file if you were using the last one.
loadsettings(files[currentfile])
end
nextbet=martingale(win) --get the value from the built in settings
end
Disclaimer: I wrote this code here on this page. I did't test it so there might be a mistake or 5.