Skip to content

How to add a new strategy? #305

Answered by kenorb
umutt asked this question in Q&A
Sep 28, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

There is no guide yet, as the steps are not finalized. In general, you should check the structure of other strategies.

In general, to create a new strategy, you can:

  1. Create a new repository by forking one of the existing strategies, or use them as a template (Use this template option). For the basic strategy (based on 1 indicator), you can use Demo strategy as a starting point.
  2. Replace 'Demo' (code and filenames) with your new strategy name.
  3. In Stg_X.mqh (strategy class), find a line with SetIndicator() and point it to your existing indicator class. If your indicator is new and needs to be added, check the separate steps below.

Adding a new indicator to strategy:

  1. If your indicator is n…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@umutt
Comment options

@kenorb
Comment options

@kenorb
Comment options

@umutt
Comment options

Answer selected by umutt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants