hi, anybody could help me figuring out how to convert a thinkscript to pine script with a -[1] and [1] combined? I am really thankful in advance. input fastLength60 = 3; input slowLength60 = 17; input averageType60 = AverageType.SIMPLE; plot green = MovingAverage(averageType60, close[-1], fastLength60) - MovingAverage(averageType60, close[1], slowLength60) ;by MOBILE - Trading Discussion
#heavily_mod_RSI #study(title="Relative Strength Index", shorttitle="RSI" src = close, len = input(14, minval=1, title="Length" up = rma(max(change(src), 0), len) down = rma(-min(change(src), 0), len) rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down)) plot(rsi, color=yellow) hi, this is pinescriot version of RSI and it has better diby MOBILE - Trading Discussion
#heavily_mod_RSI #study(title="Relative Strength Index", shorttitle="RSI" src = close, len = input(14, minval=1, title="Length" up = rma(max(change(src), 0), len) down = rma(-min(change(src), 0), len) rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down)) plot(rsi, color=yellow) hi, this is pinescriot version of RSI and it has better diby MOBILE - Trading Discussion
rigel, this is a different RSI, not the same on tos, it gives you better divergence.by MOBILE - Trading Discussion
hi, rigel here is the pine script... #heavily_mod_RSI #study(title="Relative Strength Index", shorttitle="RSI"winking smiley src = close, len = input(14, minval=1, title="Length"winking smiley up = rma(max(change(src), 0), len) down = rma(-min(change(src), 0), len) rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down)) plot(rsi, coby MOBILE - Trading Discussion
hi to all... does anyone would help converting this pine scrip RSI into thinkscript, i am trying but the line or plot does not follow the 0 to 100 parameters it changes on every time frame and also on different markets. Thank you in advance #heavily_mod_RSI #study(title="Relative Strength Index", shorttitle="RSI" #src = close, len = input(14, minval=1, title="Lby MOBILE - Trading Discussion
hi, rigel i wanted to convert this trading view code into thinkscrip but it works intermittently in different time frames also i am not able to add the VWMA. could you help please?! Thank you! #study("CandleValue" #Periodo= input (20, 'Period') #ValorCandle=(close-open)/(high-low) #MVC=vwma(ValorCandle,Periodo) #cor =(MVC>0)?green:red #p=plot(MVC, color=cor) #fillby MOBILE - Trading Discussion
hi, rigel i wanted to convert this trading view code into thinkscrip but it works intermittently in different time frames also i am not able to add the VWMA. could you help please?! Thank you! #//@version=3 #study("CandleValue" #Periodo= input (20, 'Period') #ValorCandle=(close-open)/(high-low) #MVC=vwma(ValorCandle,Periodo) #cor =(MVC>0)?green:red #p=plot(MVC, colby MOBILE - Trading Discussion
Actually you have already done it.!! sorry my bad.by MOBILE - Trading Discussion
Hi Rigel, can you please help me converting the ADX STUDY into a MTF study please. declare lower; input length = 14; input averageType = AverageType.WILDERS; plot ADX = DMI(length, averageType).ADX; ADX.setDefaultColor(GetColor(5)); it wold be nice to have a period of 5min in a 1 min chart. Thank you in advance. winking smileyby MOBILE - Trading Discussion
HI, ANY one who would help... some how the ploted squares only displays the green positive and not the red negative. How can it be? input lengthFORCE = 13; PLOT FI = ExpAverage(data = (close - close[1]) *volume, lengthFORCE); plot F_I = if FI >= 0 then -25 else Double.NaN; F_I.SetPaintingStrategy (PaintingStrategy.SQUARES); F_I.SetLineWeight (3); F_I.AssignValueColor(if FI&gby MOBILE - Trading Discussion
OH thank you much! rigel The first digit, if lower then -2 indicates a strong trend to the down side. (yellow) The third digit, if > then -300 indicates a strong trend to the up. (green) I will try to clean it further.by MOBILE - Trading Discussion
RIGEL, this is the study i end up with, thank you for your help.. #MTF_ADX_METER #created by m0biledev@yahoo.com #DECLARE LOWER; ############################# input length = 9; #14 input ADX_length = 14; input ShowADXValue = {DoNotShow, OnLeft, default OnRight}; input DisplayStrengthMeter =by MOBILE - Trading Discussion
Rigel, i want to say THANK YOU, THANK YOU MUCH, with your help i was able to accomplished the MTF ADX study i was working on. Create this indicator ADX5min and use in your 1 min chart ...by MOBILE - Trading Discussion
Create this indicator ADX5min and use in your 1 min chart Wow thank you much Rigel you are the man, i will definetly use this one! If you have any extra time for me please do not forget about this other question... MOBILE [ PM ] Re: Fun with ThinkScript May 04, 2018 08:28AM Registered: 6 weeks ago Posts: 17 GM rigel, yes i mean a moving line, a line that moves up and down acby MOBILE - Trading Discussion
ok, i checked and what is needed is to be able to plot a 5min ADX on a one min time frame, is that possible? def ADX = DMI(length).ADX; def DIBull = DIPlus(length); def DIBear = DIMinus(length); def BullishTrend = DIBull >= DIBear;by MOBILE - Trading Discussion
GM rigel, yes i mean a moving line, a line that moves up and down according to the numeric value.by MOBILE - Trading Discussion
Thank you Rigel, It is perfect!!! Another question... Is there a way to make it into a avg line? ####################### plot Dots = (HighestAll(high) + LowestAll(low)) / 2; Dots.SetStyle(Curve.POINTS); Dots.SetLineWeight(5); Dots.AssignValueColor(if !BullishTrend then color.green else color.red); #######################by MOBILE - Trading Discussion
You are the best RIGEL, IT WORKS! Thank you so much.by MOBILE - Trading Discussion
RIGEL, thank you much. I will try it this evening, and give you feedback.by MOBILE - Trading Discussion
Hi members, here is my present to you all, nice indicator that i have made, hope is useful, in appreciation to this website. #EXP_4LINES_ #Developed by m0biledev (m0biledev#yahoo.com) 4-4-18 declare lower; input price = close; input length = 8; #8 input displace = 0; input StochLong = 30; #20 input StochShort = 60; #80 ############## input lengthADX = 14; input averageTby MOBILE - Trading Discussion
Hi, good day Rigel yes you are right, i just added declare lower to the code and i hided the X plot since is not relevant for my case. What is needed here is to display (plot) a line so it would display the levels or 2 colors red and green representing bullish or bearish trend of the numeric values of the following section... AddLabel(ShowDigits == 2, Floor(ADX6) - FLOOR(ADX) - Floor(ADX3)by MOBILE - Trading Discussion
Hi Rigel, I was wondering if you can help me with the following code... I was trying to convert the following section AddLabel(ShowDigits == 2, Floor( ADX), CreateColor(if !BullishTrend then 255 else HighlightColor, if !BullishTrend then HighlightColor else 255 , 51)); into something solid like an average line to be displayed but at this point i am lost, i am not a coder i just try. Thby MOBILE - Trading Discussion
Hi you all, any one who wants to tune up this thing for day trading is welcome, and thanks! #EXP_LINE_W_PAINT_v2#### declare lower; input price = close; input length = 7; #8 input displace = 0; input StochLong = 30; #20 input StochShort = 60; #80 PLOT LINE = 38; PLOT LINE26 = 24; ############## input lengthADX = 14; input averageType = AverageType.WILDERS; DEF ADXby MOBILE - Trading Discussion
Hi you all, any one who wants to tune up this thing for day trading is welcome, and thanks! #EXP_LINE_W_PAINT_v2#### #Developed by m0biledev (m0biledev#yahoo.com) 4-4-18 #TradeMark under way! # you can not sell or distribute # declare lower; input price = close; input length = 7; #8 input displace = 0; input StochLong = 30; #20 input StochShort = 60; #80 PLOT LINE = 38; Pby MOBILE - Trading Discussion
Thank you much RIGEL. I WILL TRY. rigel [ PM ] Re: Fun with ThinkScript Mobil, I already indicated it in my reply how to referece 5 min in your studies. Try it.by MOBILE - Trading Discussion
Hi, Rigel Yes i want to add aggregation period of five minutes to the ADX STUDY. Do you know how to do this? Help please! Thank you!by MOBILE - Trading Discussion
Hi Robert, i am glad i four this site, it is amazing! I am having trouble adding aggregation period to ADX study, could you help me please, i appreciate it. Below is the code... plot ADX = wildersAverage(CLOSE(period = aggregationPeriod), DX, adx_length); I don't know what am doing wrong!by MOBILE - Trading Discussion
Hi Robert, i am glad i four this site, it is amazing! I am having trouble adding aggregation period to ADX study, could you help me please, i appreciate it. Below is the code... plot ADX = wildersAverage(CLOSE(period = aggregationPeriod), DX, adx_length); I don't know what am doing wrong!by MOBILE - Trading Discussion
HI, I LIKE THIS PLACE. Anyone who could help me merging these 2 indicators please?! I tried and tried but impossible so far, i am lost! # Place study in lower pane declare lower; #User inputs: input length1 = 20; input trendabove = 7.5; input trendbelow = -7.5; plot line7 = 7.5; line7.setDefaultColor(color.red); plot line75 = -7.5; line75.setDefaultColor(color.green); #Agby MOBILE - Trading Discussion