Topic: Indicator Modification

I have a couple indicators that I would like to modify a bit and I would like to learn how to do that myself instead of depending on Footon or Popov..

I am using Notepad

Scenario 1:

I would like to restrict the choices that the indicator has. say there are 4 choices.... I would like to restrict to one only...

Can I just use // in front of the lines I want to be inactive..??

Scenario 2:

I would like to restrict the number of iterations from say, 200 to 50, or increase to a max of 400; can I just change the numbers...

Thanks for help.

My 'secret' goal is to push EA Studio until I can net 3000 pips per day....

Re: Indicator Modification

Scenario 1:
I would like to restrict the choices that the indicator has. say there are 4 choices.... I would like to restrict to one only...

Find the public override void Initialize(SlotTypes slotType) method and comment the logical conditions you don't need. Here we have three conditions removed by commenting ( // ).

IndParam.ListParam[0].Caption = "Logic";
IndParam.ListParam[0].ItemList = new[]
    {
        "ADX rises",
        "ADX falls",
//        "ADX is higher than the Level line",
//        "ADX is lower than the Level line",
//        "ADX crosses the Level line upward",
        "ADX crosses the Level line downward",
        "ADX changes its direction upward",
        "ADX changes its direction downward"
    };
IndParam.ListParam[0].Index = 0;
IndParam.ListParam[0].Text = IndParam.ListParam[0].ItemList[IndParam.ListParam[0].Index];
IndParam.ListParam[0].Enabled = true;
IndParam.ListParam[0].ToolTip = "Logic of application of the indicator.";

Scenario 2:
I would like to restrict the number of iterations from say, 200 to 50, or increase to a max of 400; can I just change the numbers...

You can easily change the Minimum, Maximum or default values of an indicator parameter. You can also change the Point value (the position of the decimal sign, equal to the Digit value of an currency symbol). The Point value actually determines the step of changing of the parameter.

IndParam.NumParam[0].Caption = "Period";
IndParam.NumParam[0].Value = 14;
IndParam.NumParam[0].Min = 1;
IndParam.NumParam[0].Max = 200;
IndParam.NumParam[0].Point = 0;
IndParam.NumParam[0].Enabled = true;
IndParam.NumParam[0].ToolTip = "The period of ADX.";

After changing an indicator file, place it in the Custom Indicators folder. It will override the main indicator if you have the option checked.

http://s14.postimg.org/6ipx6l999/screenshot_635.jpg

Re: Indicator Modification

Great

Thanks

My 'secret' goal is to push EA Studio until I can net 3000 pips per day....