help.ctrader.com/ctrader-automate/indicator and cbot code problems.

Created at 31 Oct 2022, 11:38
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
VI

vicryder

Joined 17.12.2021

help.ctrader.com/ctrader-automate/indicator and cbot code problems.
31 Oct 2022, 11:38


I'm trying to learn C# and use it to write indicator and cbot.

First indicator Example - "Custom Moving Average" Indicator.

This builds successfully but all it does is to overwrite the line on the chart, which is what I would have expected had the period been set at 1, but it's set at 10 and though I can change it, it makes no difference to the indicator displayed.

Second Example - "Bar Buy Sell" cBot.

This code copied ok but will not build because it has errors.

Windows 7 Pro. SP1.

Is there some corrected code available?


@vicryder