LogoLogo
Back to HaasOnline.comSwitch to Trade Platform
2.x
2.x
  • Welcome
  • Examples
    • Script Bots
      • ScriptBotAPI
      • ScriptBotContext
      • ScriptBotScriptBase
    • Script Indicators
      • IndicatorAPI
      • IndicatorContext
      • IndicatorScriptBase
  • Other Resources
    • YouTube
    • Guides & Tutorials
    • Questions & Answers
    • Community Projects
  • Need Help?
    • Ask on Discord
    • Ask on Telegram
    • Submit support ticket
Powered by GitBook
On this page

Was this helpful?

  1. Examples
  2. Script Bots

ScriptBotScriptBase

PreviousScriptBotContextNextScript Indicators

Last updated 6 years ago

Was this helpful?

ScriptBotScriptBase is the default . This class can be inherited and used to create a custom Script Bot by changing elements of the default script, without having to implement all members of the -interface.

   public class ScriptBotScriptBase : IScriptBotScript 
    {

        public virtual void Update(ScriptBotContext context)
        {
            //Do nothing
        }

        public virtual void Init()
        {
            //Do nothing
        }

        public virtual List<DataSerie> ChartDataSeries
        {
            get { return new List<DataSerie>(); }
        }

        public virtual List<double> GetChartData(ScriptBotContext context)
        {
            return new List<double>();
        }

        public virtual List<ScriptParameter> GetParameters()
        {
            return new List<ScriptParameter>();
        }

        public virtual void SetParameters(Dictionary<string, object> parameters)
        {
            //Do nothing
        }
    }
Script Bot
ScriptBot