Finding currently active asset

Posted By: mayark

Finding currently active asset - 05/26/20 14:00

Hello Forum,

I know this would have been answered by now.
What I am after is to find the current asset without hard coding it like using the asset() function. What is selected in the dropdown list in Zorro GUI is what I am after and I want to capture this in my script.
How would I go about capturing this?
Sorry, I am coming from MQL4 background. The equivalent is: OrderSymbol();


Thanks.
Posted By: Grat

Re: Finding currently active asset - 05/26/20 14:27

simple:

strx(Asset,"/","")
Posted By: mayark

Re: Finding currently active asset - 05/26/20 21:54

Thank you Grat. I will try this.
© 2024 lite-C Forums