19th of februari 2020
Indicators must be added to your EA, so that you can use them in your Signals and Modules. Here you simply add one or multiple indicators, give them your custom name (which will be visible name) and you set the parameters your would like to use. Indicators can not be deleted, unless they are no longer used in your EA.
If you use the same indicator multiple times and you would like to optimise the EA without going through every possible scenario for the same indicator, simply apply the IsLinked checkbox for one or more parameters.
Let say you have 2 indicators, with 2 parameters and the parameters are not linked, optimisation will try all 4 possible combinations (A1 + B1, A2 + B1, A1 + B2 and A2 + B2). When both parameters are linked only 2 combinations will be tested (A1 + B1 and A2 + B2).
You can also use your own custom indicator, by selecting “Upload”.
So you’ve uploaded your own indicator. It is important that you know your indicator: you know the input parameters and how they affect the indicator. You’ve probably played around with it in your trading terminal. There’s one more thing you should know about indicators. There are two input parameters which are always there: mode and shift.
As you know indicators can sometimes draw multiple lines or arrows. You probably use these in your manual (or ‘visual’) trading. Now that you want to automate your strategy you want to select these, let’s say, arrows. It’s important to know an indicator exists of multiple collections of arrows: f.e. the up-arrows and the down-arrows. Both are in their own collection, called ‘buffers’. What you need to do is select the correct buffer for your trading strategy. To get the right number of the buffer which contains the up-arrow in your indicator you can do a few things:1 you can look into the code of your indicator and look for ‘SetIndexStyle, SetIndexBuffer or SetIndexLabel’, they will give you a very good clue of which buffer number you have to use for your arrow up.2 (less effective, but it will work if you can’t read the code from option 1) you can test each buffer by giving it a value, starting from 0 and try to plus by 1every time until you’ve got the desired result.
By giving ‘shift’ a value, you basically select the previous value in the buffer, which has a value per bar, per current timeframe. To get the current value of the buffer, you use buffer value ‘0’.