Topics
22 May 2024, 11:22
 260
 4
Replies

ianmacphee58
22 May 2024, 12:54 ( Updated at: 23 May 2024, 05:07 )

RE: RE: Example Plugin error

ianmacphee58 said: 

PanagiotisCharalampous said: 

Hi there,

Can you please clarify which example you are using?

Best regards,

Panagiotis

Hi, thanks for the quick reply.

I only saw one example, it’s shown in the manual under Plugin Placement / Creating an Example Plugin and it seems to be called PluginPlacementTest. Hope that helps.

Thanks again. 👍

Hi, The Code Samples example also does not compile - see Plugins / Code Samples / Displaying Information About Bar Prices in the 'Trade Watch' Display.

https://help.ctrader.com/ctrader-algo/plugin-code-samples/#displaying-information-about-bar-prices-in-the-trade-watch-display

 

The one I mentioned earlier is this:

https://help.ctrader.com/ctrader-algo/guides/plugin-placement/#creating-an-example-plugin

 

Okay I think I have solved it myself.

I replaced your sample code (doesn't compile):

            Trade Watch.AddTab("Volume").Child = _volumeText;

with this (compiles and works):

            var tab = TradeWatch.AddTab("Volume");  
            tab.Child = _volumeText;


@ianmacphee58

ianmacphee58
22 May 2024, 12:11 ( Updated at: 23 May 2024, 05:07 )

RE: Example Plugin error

PanagiotisCharalampous said: 

Hi there,

Can you please clarify which example you are using?

Best regards,

Panagiotis

Hi, thanks for the quick reply.

I only saw one example, it’s shown in the manual under Plugin Placement / Creating an Example Plugin and it seems to be called PluginPlacementTest. Hope that helps.

Thanks again. 👍


@ianmacphee58