Median price of last bar label

JE $$

Member
VIP
im trying to create label that shows me the median price of the last bar so that i don't have to hover over it to find it
i tried addLabel "MPr" = (high + low) / 2;
but it doesnt work
i suck at coding
can anyone please help with this
thanks
 

rad14733

Well-known member
VIP
@JE $$ Your implementation of the AddLabel() function is flawed but you were close... Try the following... A function always starts with the function name, with all parameters within parenthesis, in order of use eliminating the need to include each parameter name... You'll get the hang of it...

Ruby:
AddLabel(yes, "MPr = " + (high + low) / 2, Color.GRAY);
 

Similar threads

Top