StringAdd gives multiple pass of last string
Hi
I am trying to add the current spread to the comment for a buy / short event. The code is;
comment shall of course be in the OrderSent, but are printed to find the failure.
The code above give;
EA.1. Spread: 0.20.20.20.20.20.20.20.20.20.20.2
The correct print would be :
EA.1. Spread: 0.2
comment are defined as a global variable ;
Why are the 0.2 just repeating ? It will not repeat if I define the comment locally as;
But of course.. Thanks for the suggestion, works now when I made some modifications.
Hi
I am trying to add the current spread to the comment for a buy / short event. The code is;
comment shall of course be in the OrderSent, but are printed to find the failure.
The code above give;
EA.1. Spread: 0.20.20.20.20.20.20.20.20.20.20.2
The correct print would be :
EA.1. Spread: 0.2
comment are defined as a global variable ;
Why are the 0.2 just repeating ? It will not repeat if I define the comment locally as;