mlsignups Posted December 14, 2022 Report Share Posted December 14, 2022 Pretty basic question but so far stumped after trying to look up. I want to display a calculation as text in the setline. In this case my calculation is the division of todays volume / average volume So I have a variable = BarVolume / SymbolData.AvgVol But How do i convert that into text / string so I can include it in the setline text parameter? Thanks Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted December 14, 2022 Report Share Posted December 14, 2022 easiest would be to use the String.Format(....) function: https://learn.microsoft.com/en-us/dotnet/api/system.string.format?view=net-7.0 https://dzone.com/articles/c-string-format-examples Quote Link to comment Share on other sites More sharing options...
mlsignups Posted December 14, 2022 Author Report Share Posted December 14, 2022 thanks. Will give it a look Quote Link to comment Share on other sites More sharing options...
mlsignups Posted December 14, 2022 Author Report Share Posted December 14, 2022 got it; thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.