Having trouble turning the Aroon indicator into a scan


Category:
0
0

Hello Mr. Hahn, I hope you’re doing well,

I would like to be able to scan in TOS for equities that are above a 50 level on the Aroon Indicator, the following is the study as presented on thinkorswim.

 

input length = 25;

Assert(length > 0, “‘length’ must be positive: ” + length);

plot Up = (length – 1 – GetMaxValueOffset(high, length)) * 100.0 / (length – 1);
plot Down = (length – 1 – GetMinValueOffset(low, length)) * 100.0 / (length – 1);
plot OverBought = 70;
plot OverSold = 30;

Up.SetDefaultColor(GetColor(1));
Down.SetDefaultColor(GetColor(5));
OverBought.SetDefaultColor(GetColor(8));
OverSold.SetDefaultColor(GetColor(8));

 

 

I hope you can help me out,

regards, Marco

Marked as spam
Posted by (Questions: 6, Answers: 14)
Asked on May 22, 2017 5:41 pm
322 views
0

I forgot, there is two components to this study, the up line and the down movement, for this scan I am looking for the up, bullish line to be at the 50 or above that level.

( at May 22, 2017 6:30 pm)
1
Private answer

The first step is you need to change all the plot statements to def. This will create errors in the final four lines. So the final four lines will need to be deleted. Once you complete these two steps the scan is completed simply by adding the following plot statement:

plot scan = Up > 50;

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on May 22, 2017 6:56 pm
0

thank you so much for your input, as always, you’re the most knowledgeable Mr. Hahn, I always consider buying your Divergence studies they are so valuable, yet I would like to see more examples put in practice. But hopefully soon I am able to buy them.

( at May 22, 2017 8:24 pm)