New York City New York USA
Experience: Intermediate
Platform: Think or Swim, Infinity Futures
Broker: Thinkor Swim for Charts an Infinity Futures for Trading Dom
Trading: Oil
Posts: 54 since Jul 2012
Thanks Given: 449
Thanks Received: 48
|
I have 2 of them try them out and ise which ever one you are comfortable with, they work great.
Price Line indicator #1
#Plots a Horizontal Line that follows the price value selected
input price=close;
input offset=0;
input length = 300;
def sma = SimpleMovingAvg(price, 1, length);
rec line = if IsNaN(sma) then line[1] else sma[offset];
plot priceline=if isnan(sma) then line else double.nan;
priceline.setpaintingStrategy(paintingStrategy.LINE);
priceline.setlineWeight(3);
priceline.setdefaultColor(color.green);
priceline.hideBubble();
or
Price line indicator #2
plot priceLine = highestAll(if isNan(close[-1]) and !isNAN(close) then close else double.nan);
Hguru
|