Hi Ralph53 Here's a spread label script that I use, Is this what you want? input label = Yes; def rBID = if !isNaN(close(priceType="BID" )) then close(priceType="BID" ) else rBID[1]; def rASK = if !isNaN(close(priceType="ASK" )) then close(priceType="ASK" ) else rASK[1]; def spread = rASK - rBID; AddLabel(label, "BID " + rBID, iby Lukhy911 - Trading Discussion
Hi Sara, You wanted the daily signals on the hourly chart try and see if this works for you: input Aggregate = { Hourly, default Daily, Weekly, Monthly} ; def Agg = if Aggregate == Aggregate.Hourly then AggregationPeriod.Hour else if Aggregate == Aggregate.Daily then AggregationPeriod.Day else if Aggregate == Aggregate.Weekly then AggregationPeriod.WEEK else if Aggregate == Aggregby Lukhy911 - Trading Discussion
Here you go JML: input Aggregate = { Hourly, default Daily, Weekly, Monthly} ; input length = 21; input avg = AverageType.EXPONENTIAL; def Agg = if Aggregate == Aggregate.Hourly then AggregationPeriod.Hour else if Aggregate == Aggregate.Daily then AggregationPeriod.Day else if Aggregate == Aggregate.Weekly then AggregationPeriod.WEEK else if Aggregate == Aggregate.Monthly tby Lukhy911 - Trading Discussion
JML Try This: input agg = AggregationPeriod.day; input length = 21; input avg = AverageType.EXPONENTIAL; plot movavg = MovingAverage(avg, close(period = agg), length) ;by Lukhy911 - Trading Discussion
Thx Robert Just one more question what do you change the winking smiley comment from the script ? Momentum.AssignValueColor(if Momentum > 0 then Momentum.color("Above"winking smiley else if Momentum <= 0 then Momentum.color("Below"winking smiley ELSE COLOR.CURRENT); Thank You Lukhyby Lukhy911 - Trading Discussion
Robert, Thanks for the great scripts you've posted. I was wondering if you can help me with two labels I'm trying to display on my charts First one is a label with the net price change value from the opening price and second one is the net price change value from the close of previous day, and if the value is positive the label to be green and red if value is negative ..Thx I will definitby Lukhy911 - Trading Discussion
New member here and was wondering how does one sign up for these classes?by Lukhy911 - Trading Discussion