Moderator’s edit: message edited for you to make appear the proper format for PRT code. Please use the “<>” button (insert PRT code button) next time. Thanks you.
Topic moved to ProOrder section since it deals with automatic trading.
This code should operate the same for any instrument, as long as your “Positionsize” is set to a correct value for each of the instrument you’d like the code to operate with (minimal contract value could be different from a security to another).