i finally found a answer for Question No. (2)

write

Code
brokerCommand (SET_ORDERTEXT,"NameOfStrategy"); 


into the run function.

If it´s however necessary to distinguish between long and short Trades you can also write it directly into the long/short if-statements

Last edited by steyr; 10/17/23 08:08.