Optuma Forums › Optuma Scripting › Day Up With MA › Reply To: Day Up With MA
June 6, 2022 at 8:50 pm
#68479
- Topics: 70
- Replies: 802
- Posts: 872
Hi Deepak,
Your script is looking for when there are 3 consecutive up days – the area you highlight has more than 3 so your script will not return a true result. The DU() and DD() functions are cumulative – put the following in a Show View and you will see the values:
1 2 3 4 |
v1 = MA(BARS=80, STYLE=Exponential, CALC=Close); DU(v1) |
Try using >=3 in your script instead if that’s what you want to see.