<syntaxhighlight>MyIndicator = ADX of data2;</syntaxhighlight>
Then allow trading only in those stocks that have the highest ADX.
<br><div style="background-color: #E3FBE5;">'''Note:''' These signals are given mainly for reference. If you receive some inconsistent results, you can modify the signals according to your needs.</div>
[[Category:Portfolio Trading]]