Registered User Joined: 10/7/2004 Posts: 26
|
If the current day price direction is opposite the prior day,
can you please show me the code that would allow me to sort a watchlist by the difference in (percent if possible) price chjange today vs the percent price change of the prior day.
For instance:
If the prior day change was -1/2% (-.5%) and the current intra day change was +.8% then the scan would show positive .3%.
If the prior day change was +.6% and the current intra day change was -1% then the scan would show negative - .4%.
thank you
|
 Administration
Joined: 9/30/2004 Posts: 9,187
|
Create a RealCode indicator using the following code:
plot = ((price.Close - price.close(1)) / price.close(1) * 100) _
+ ((price.Close(1) - price.close(2))/price.close(2) * 100)
Once plotted, you can drag it to the watchlist to sort by that value.
|