Can a Symbol = null ?

15 Mar 2019, 03:46Can a Symbol = null ?#1
a.fernandez.martinezposts: 22since: 02 Mar 2019

Can a Symbol = null, without having any errors ?

For example :

Symbol symbol = null;


I want to create a method that can take a symbol as an optional argument so I want to initialize it to null, is it possible ?




15 Mar 2019, 10:47#2
Panagiotis Charalampousposts: 2446since: 13 Jan 2017

Ηi a.fernandez.martinez,

It is possible but you need to program your function properly to avoid NullReference exceptions.

Best Regards,


Head of Community Management at cTrader