Automate Symbol Parameter of Chart Indicator is opened in.

Created at 17 May 2019, 13:18
Symposium's avatar

Symposium

Joined 16.07.2018

Automate Symbol Parameter of Chart Indicator is opened in.
17 May 2019, 13:18


[Parameter("Symbol", DefaultValue = "EURUSD")]
public string SymbolCode { get; set; }

Can someone please help me with solution to automatically use Symbol (ie: EURUSD) from the chart the Indicator is opened in

instead of having to enter it via the Parameter every time I open a new chart pair.... Hope this makes sense....

Thanks in Advance and Cheers.


@Symposium
Replies

PanagiotisCharalampous
17 May 2019, 14:46

Hi Symposium,

This is already available in Symbol parameter. See below

  Print(Symbol.Code);

Best Regards,

Panagiotis


@PanagiotisCharalampous

stuart
29 Jun 2019, 12:31

try Symbol.Name 

Symbol.Code is obsolete

 


@stuart