1 (edited by GD 2015-06-09 12:31:55)

Topic: Why built-in indicators have limitations in their parameters?

During different tries to use Generator I realized that for some reason the software has limitations in the values of parameters of some or more indicators.

Two examples

Bollinger band cannot take deviation value smaller than 1.0 i.e. 0.5

Fischer cannot have period larger than 100.

...maybe more exist

Question 1: Is there some reason this thing to happen?

http://s16.postimg.org/hs77kkxpt/2015_06_09.jpg

Question 2: Sometimes  the square in photo is clicked and sometimes not.
What is the meaning of it?

Re: Why built-in indicators have limitations in their parameters?

Question 1: Is there some reason this thing to happen?

Yes, it is. The limits are adjusted to allow the most common usage of the indicators. If we make too broad limits, the Generator will be useless. Imagine that we made the indicator parameters fully unlimited and you run the Generator. It may choose BB Period to be 45334542344 and Multiplier = -4556.2221. How useful is it? It may take billion cycles to generate a BB with Period =20 and Multiplier = 2, if  it happens at all.

There are users that make custom indicators with narrow limits in order to make the generator faster.
Other users make custom indicators with wider limits for their cases. 
Some traders use BB with 4, 6, or 8 bands.

That's why we provide a way for the users to make custom indicators.

Question 2: Sometimes  the square in photo is clicked and sometimes not.

Use previous bar value option is extremely important for the reliability of the backtest. It was controlled manually in the first versions, but we found that the traders do not understand fully what it means. We made it automatic in order to prevent falls backtest.

Read more abut "Use previous bar value" here:
http://forexsb.com/wiki/fsbpro_guide/in … _bar_value
http://forexsb.com/wiki/fsb/manual/use_ … _bar_value

3 (edited by GD 2015-06-09 14:47:09)

Re: Why built-in indicators have limitations in their parameters?

I got it and I made myself all changes I need according to previous instructions here

http://forexsb.com/forum/topic/5359/nam … ndicators/

Thanks  a lot.

The best was to create two new custom indicators,  which I did for Bollinger and Fisher.

Then, from Generator I selected the indicators I need and deselected the others...!

Also "Store"  has to be in code by "Custom" in namespace

I mean

namespace ForexStrategyBuilder.Indicators.Custom

::::::::::::::::::::::::::::::::::::::::::::::::

If I select the Overriding parameter of FSB
then I have to keep Indicator Name and Class Name the same inside cs and mqh files

In this case, WHERE to save the new cs and mqh files; At which directories?

Do I have to use "namespace ForexStrategyBuilder.Indicators.Custom"
OR "namespace ForexStrategyBuilder.Indicators.Store"???

I used "namespace ForexStrategyBuilder.Indicators.Custom"
and I saved corresponded mqh file to MQL\Forexsb.com\Custom
The old mqh file still exists in initial place MQL\Forexsb.com\Indicators with same name.
Is it correct?

Thanks in Advance

Re: Why built-in indicators have limitations in their parameters?

I got it and I made myself all changes

Excellent job!!!! Congratulations. Now you can combine the power of FSB Pro with the free spirit of programming.

Do I have to use "namespace ForexStrategyBuilder.Indicators.Custom"
OR "namespace ForexStrategyBuilder.Indicators.Store"???

Both work without any difference.

and I saved corresponded mqh file to MQL\Forexsb.com\Custom
The old mqh file still exists in initial place MQL\Forexsb.com\Indicators with same name.
Is it correct?

If the name is the same, you have to replace the original file in "MQL\Forexsb.com\Indicators" folder. Make a copy of the indicator because a MQL code update will override your version.

5 (edited by GD 2015-06-09 15:45:31)

Re: Why built-in indicators have limitations in their parameters?

Both ways work fine.
(I have some experience in programming, about one year).

It was very easy.

Also, you did something in MQL code recently and things go much faster with MT4 and MT5.

Question of style of course...

Question:

Can I change the name of mqh somehow and still use overriding?
So an upgrade to do not create problem and do not override my new mqh version?