oskartinksw88
New member
I'm trying to automate a calculation, a pivot point, at 8:30 EST for the current day.
The calculation [(low of the day+ high of the day)/2].
For example, QQQ [(385.66 + 386.84)/2] = 386.25
This is my first attempt at coding. Please see below. I struggled with how to code the "input."
I also included a screenshot of the Watchlist gadget.
Any help would be greatly appreciated. Thanks.
MCP
input length = 1;
def hh = Highest(high, length);
def ll = Lowest(low, length);
def mid = (hh + ll) / 2;
plot mcr=mid;
The calculation [(low of the day+ high of the day)/2].
For example, QQQ [(385.66 + 386.84)/2] = 386.25
This is my first attempt at coding. Please see below. I struggled with how to code the "input."
I also included a screenshot of the Watchlist gadget.
Any help would be greatly appreciated. Thanks.
MCP
input length = 1;
def hh = Highest(high, length);
def ll = Lowest(low, length);
def mid = (hh + ll) / 2;
plot mcr=mid;
Last edited: