Optuma Forums › Optuma Scripting › Changesincesignal() Calculation › Reply To: Changesincesignal() Calculation
December 12, 2020 at 7:39 am
#61681

- Topics: 62
- Replies: 523
- Posts: 585
Hi Andrew,
It uses the closing price of the signal bar. This calculates the change since the close crosses the 50 period MA:
1 2 3 4 |
V1 = CLOSE() Crosses MA(BARS=50, CALC=Close); CHANGESINCESIGNAL(V1) |
In this example, AAPL has gained 6.21% since it last crossed the moving average 10 days ago, as measured using the Time Price Measure tool from the closing price: