Thursday, November 13, 2008

thinkScript - Highest and Lowest of last 20 bars


This simple indicator will plot the highest and the lowest values of the last 20 bars.


!!! FOR EDUCATIONAL PURPOSES ONLY !!!! PLEASE READ DISCLAIMER POST!


input low_price = low;

input high_price = high;


plot down = lowest(low_price, 20);

plot up = highest(high_price,20);

No comments: