Finally I got it and it works perfectly, the problem was two areas, apparently the variables have to be set to double not int.
The other problem was a detail that I missed, in the conversion NormalizeDouble(ATRX_BP,2) I had not modified ATRX by the correct variable for each module which is ATRX_BP ATRX_BP2 etc... now it seems to work correctly.

I have to do more tests but it looks promising.
This has allowed me to dive in and understand the potential of variables and changes everything :). Thank you very much for your time.








