Scan for AccumulationDistribution in consolidation


Category:
0
0

Hi,

I’m trying to build a scan where the AccumulationDistribution indicator is in accumulation mode or Consolidation (Green bars). I have tried to do it using the below options but don’t know how to select the consolidation from the scan list.

Any help would be greatly appreciated.

 

 

Attachments:
Marked as spam
Posted by (Questions: 5, Answers: 4)
Asked on March 9, 2021 5:29 pm
230 views
1
Private answer

I updated the title of your question to include one of the most important details. The fact that you want to scan for when this indicator is in "Consolidation".

We need to examine the source code for this indicator to find the conditions under which this indicator is in "consolidation".

RangeRatio.AssignValueColor( if (RangeRatio < RangeFactor) then RangeRatio.Color("Consolidation") else RangeRatio.Color("Non-consolidation"));

From this we find that when the plot named "RangeRatio" is less than the plot named "RangeFactor" this indicator is in Consolidation. So where does the RangeFactor plot get it's value?

plot RangeFactor = factor;

The value comes from the input named "factor". The default value is 0.75.

Now we understand what conditions are responsible for changing the color of this indicator to show it is in "consolidation". Which is: RangeFactor is less than 0.75. With this information we can now build our condition and the Condition Wizard will produce the following code for the scan:

AccumulationDistribution()."RangeRatio" is less than 0.75

If you want to build a scan for the opposite you will simply reverse the "is less than" section to "is greater than or equal to".

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on March 9, 2021 6:07 pm