Topic: Signal Shift At or Any

Inspired from

stiesn wrote:

I have a nice idea. It would be nice if I could say to the indicator: pleese look if there are more insidebars than just the last one. It would be great if this "NoInsideBar"-Indicator would check like the last 5 -10 bars or so...

I think we can add a standard feature for signal shift for all indicators.
Two variants are possible:
At # - the signal is shifted with # bars.
Any # - the signal is at the last # bars.

The default shift will be 0.
At 0 will be available for indicators with "Use previous bars value" off.
At 1 will be default value for indicators with "Use previous bars value" on.

At # will mean that the signal has happened exactly # bars ago.

Any # (where # will be 0 or 1 - 100) will mean that signal has happened during the last # bars.

The best is that this logic can be applied from the program without changing indicators. It is applicable for Opening and Closing Logic Conditions.

Re: Signal Shift At or Any

A possible implementation in FSB Pro

http://i.imgur.com/gbYl1.png

Here the main strategy market is USDJPY M5.
ADX indicator uses USDCHF M15
And its signal must be triggered somewhere during the last 5 bars.

Program will automatically load the necessary data.

Re: Signal Shift At or Any

Implementation of Signal Shift logic:

Signal shift        old         ->    bars     ->               new
Indicator signal    0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 0 0 
Signal shift At 2   0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0
Signal shift Any 3  0 0 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 1 1 1 1 0 0 0

Re: Signal Shift At or Any

Popov wrote:

Implementation of Signal Shift logic:

Signal shift        old         ->    bars     ->               new
Indicator signal    0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 0 0 
Signal shift At 2   0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0
Signal shift Any 3  0 0 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 1 1 1 1 0 0 0

wickedness

Re: Signal Shift At or Any

that would be a huge upgrade for most idicators!
I like it.

Re: Signal Shift At or Any

Simple brilliant!
I would say - it`s a MUST HAVE option.