hi
whoop''s.
sorry i had to laugh about this one , i have done the same mistake many times .
you have set currentloss variable ok.
BUT you the use in the win market IF((current_loss/(back_price-1))/(1-commission)>max_bet,max_bet,IF(current_loss=0,init_bet,((current_loss/4)/(back_price-1))/(1-commission)))
notice the error , SET currentloss
you now use in the win trigger current_loss , so current_loss has no value because you set the variable currentloss without the _ .
done that , bin there got the tee shirt .
you are learning and that is what we are here to help with , ok we do triggers for those that do not have the time to learn because of work , i learned the hard way so i understand .
mcbee