How to reference Symbol from cTrader Plugin-In?

Created at 10 Mar 2025, 05:38
GI

Giorgi_1

Joined 23.06.2023

How to reference Symbol from cTrader Plugin-In?
10 Mar 2025, 05:38


Hi Guys, 

I'm trying to get the active chart Symbol Bid and Ask prices using a Plugin. The issue is i can't seem to find the right code to use, either no information comes back, or i receive an error. 

Could anyone with any experience with cTrader Plugins let me know how i'd reference Symbol information?

Many Thanks 


@Giorgi_1
Replies

Giorgi_1
10 Mar 2025, 05:59

Solution Found

I used the following code in the Plugin:

var _symbol = Asp.SymbolTab.Symbol;

This allowed me to access the Symbol reference. 

Many Thanks,


@Giorgi_1