forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Software

Create and Test Forex Strategies

You are not logged in. Please login or register.


Forex Software → Technical Indicators → How to make a Custom Indicator from an original one

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 3

Topic: How to make a Custom Indicator from an original one

The custom indicators are fully identical to the original (hard-coded) indicators. The only difference is that a custom indicator has to be properly marked as custom by setting the property CustomIndicator to true.

       CustomIndicator = true;

You can use the code of original indicators. It is published here: Forex indicators source code.


Example of making a custom RSI

This is part of the original RSI:

    ...
    ...
    public class RSI : Indicator
    {
        /// <summary>
        /// Sets the default indicator parameters for the designated slot type
        /// </summary>
        public RSI(SlotTypes slotType)
        {
            // General properties
            IndicatorName  = "RSI";
            PossibleSlots  = SlotTypes.OpenFilter | SlotTypes.CloseFilter;
            SeparatedChart = true;
            SeparatedChartMinValue = 0;
            SeparatedChartMaxValue = 100;

            // Setting up the indicator parameters
            IndParam = new IndicatorParam();
            IndParam.IndicatorName = IndicatorName;
            IndParam.SlotType      = slotType;

           ...
           ...

To make a custom RSI you have to change:
1. the class name,
2. the constructor name,
3. the indicator name,
4. to mark it as custom.

http://www.postimage.org/Pq1HCRaJ.png

That is all smile

Re: How to make a Custom Indicator from an original one

DO you have a customizeable RSI that allows the input of 3 parameters, not just 1?

Re: How to make a Custom Indicator from an original one

cooper wrote:

DO you have a customizeable RSI that allows the input of 3 parameters, not just 1?

I have all FSB's indicators customizable (including RSI). You have all of them also. Simply all the indicators are customizable. You need to follow the shown above 4 easy steps to change an indicator.

You can use the following parameters:

- Five dropdown list boxes. (Logic, Base price, Method, ...)
- Six numeric boxes (Period, Shift, Level, ...)
- Two check boxes.

You can freely name and set these 13 parameters for every indicator.

About RSI - It has: Base price, Smoothing method and Smoothing period plus Logic, Level and Use previous bar value. If you need more, copy the original RSI in the Custom Indicators folder. Change the class name, indicator name and set "CustomIndicator = true". Add the new parameters and change the formula. That's all.

Posts: 3

Pages 1

You must login or register to post a reply

Forex Software → Technical Indicators → How to make a Custom Indicator from an original one

Similar topics in this forum