Support Board
Date/Time: Fri, 09 May 2025 22:57:40 +0000
Post From: Programatically check if a Symbol is valid - ACSIL
[2016-09-03 10:49:11] |
William O - Posts: 16 |
How do I check if a string representing a symbol is valid and can be successfully used as input when submitting an order for another chart? In my case I will be submitting orders for a different symbol than the chart the study is on. Some logic should only execute if the different symbol is valid. For example, in a study a user enters the name of 2 symbols(SYMA, SYMB) as input. If SYMA and SYMB are both valid and can accept orders then the study will execute the logic to do that. If either SYMA or SYMB are invalid and cannot accept orders then I do not want the study to execute any logic to submit orders for either symbol. The situation I want to avoid is where SYMA is valid and SYMB is invalid, and the study submits an order for SYMA but cannot for SYMB. Thanks for your help. |