AgenaTrader Docs
HomeIndicatorsAgenaScriptRelease Notes
English
English
  • 🤝AgenaTrader Online Help
  • Introduction
    • Overview
      • Supported Instruments and Order Processing
      • License Versions
      • Hardware and system requirements
      • Licensing, Programming, Costs, and Support Overview
    • Video Guide
      • AgenaTrader Docs
    • Glossary
    • FAQ
      • Top FAQ
        • Chart is ticking without displaying candles
        • How to display P&L on Tradebar
        • Connecting to more than one CFD-Broker simultaneously
        • Hard and Soft stops: Automatic stop movement
        • Which order connections does my broker support
        • Сonditions and Scripts disappeared
        • Trading Functions Are Disabled
        • IB Charts Not Displayed Correctly or Contain Incorrect Data
        • Can I Connect an Additional Data Feed While Using IB as a Broker?
    • Contact Support
  • Main
    • Broker and Datafeeds Connections
      • AgenaBroker
      • Technology Provider
      • Connections
      • Simulated account
      • Datafeed
      • Broker
    • Set Up Your Workspace
    • Chart Area
      • Charting
      • Chart Types
      • Chart Tools
      • Chart Context Menu
    • Chart Trading
    • Order Management
    • OptionTrading
    • Realtime Scanner
    • OrderStream
    • ActionBar
    • Main Menu
  • TOOLS
    • Preferences
    • Mappings and Instrument-Lists
    • Instrument Editor
    • Tools Menu
    • Trading Information
    • System Information
  • Create your own strategy
    • Semi automated trading
    • AgenaTrader++ (plusplus) – Automated Setup & Recovery Management
    • AT (plusplus) Manager
    • Setup Builder
    • Signal Builder
    • Risk and Money management
    • Strategy Manager
    • AgenaScript
    • Scripting
  • Package
    • Package first steps
    • AddOns (packages) and their content
    • Internal Packages
    • External Packages
    • Using AddOn- and package-indicators in scripted components
Powered by GitBook
On this page
  1. Create your own strategy

AgenaScript

Last updated 2 months ago

AgenaScript is a programming language integrated into the trading platform AgenaTrader. The syntax of AgenaScript is derived from the programming language C#. Using AgenaScript enables you to implement all strategies, even if they are too complex for the Signal Builder. The spectrum extends from the programming of simple indicators to self-designed applications in which AgenaTrader plays only a supporting role. Practically all approaches that are also applicable in DotNet can be used: complex indicators, signal display, Excel export, evaluation, chart representation, sound, colors and many others.

contains the following paragraphs:

1. Trading bars and instruments Describes in detail how to access single bars or candlesticks as well as various trading instruments using AgenaScript.

2. Events AgenaScript is event-oriented. Examples of events:

  • A new candle occurs after the closing of the prior one within a particular time interval;

  • New prices are delivered from your data provider;

  • An order is executed and others

AgenaScript makes it easy for you to react to this information. The purpose of this section is to explain exactly how this works and which events can arise.

3. Indicators and oscillators Provides an extensive description of all indicators integrated in AgenaTrader. An introduction of the instruments is given to start off with, followed by the information about their use. A significant part of this section is devoted to the interpretation of signals, and several references for further information are also provided. Each indicator and oscillator can be used in your own AgenaScript. In this description you can also find the exact syntax, the meaning of parameters and a code example.

4. Programming of strategies AgenaScript allows you to create your own trading strategies and then trade them live on the market. In this paragraph you will find answers to the questions of which requirements are necessary and how to transfer orders to your broker and trade internally.

5. Keywords Like each programming language, AgenaTrader has a set of commands you can use to create your own scripts. You should become familiar with these keywords if you wish to create self-programmed indicators or entire trading systems.

6. Drawing objects All drawing objects that can be used on the chart are also available within AgenaScript. Drawing objects such as lines, arrows, rectangles, circles etc. can be automatically displayed at specified positions or removed from the chart again. Your possibilities are unlimited.

7. Tips and tricks Presents the solutions to unusual problems. In order to understand these complex examples, however, a good deal of programming experience is required. Advanced users can still find some useful information for programming ideas of their own.

The AgenaScript help