How to create shared object visible to both Robot and Indicator

Created at 26 Apr 2016, 15:12
MA

macypa

Joined 26.04.2016

How to create shared object visible to both Robot and Indicator
26 Apr 2016, 15:12


Greetings,

I can't seem to find a way to create a shared object, which i can use in my indicator and in my cBot.

What i want to reduce code duplication.

Any ideas how to achieve code reusability will be greatly appreciated.

 

thanks

 


@macypa
Replies

Spotware
26 Apr 2016, 16:56

Dear Trader,

When you create a class in a custom Indicator and you reference the custom indicator to a cBot, you could then also access the class from the cBot.


@Spotware