커뮤니티

예트수식 부탁드립니다.

프로필 이미지
2011-11-11 14:24:04
748
글번호 44683
답변완료
안녕하세요. 예스트레이더 수식으로 부탁드릴께요. 감사합니다. #declare lower Places a study on the lower subgraph. declare lower; input Length = 20; input price = close; ###################### #def <variable_name>=<expression> or def <variable_name> defines a #variable you would like to work with. #Highest(IDataHolder data, int length) returns the highest value of #data for the last length bars, Lowest(IDataHolder data, int length) #returns the lowest value of data for the last length bars, and #Average(IDataHolder data, int length) returns the average value of a #set of data for the last length bars def e1 = (Highest(High, length) + Lowest(low, length)) / 2 + Average(close, length); #Inertia(IDataHolder data, int length) draws the linear regression #curve using the least-squares method to approximate data for each #set of bars defined by the length parameter. The resulting #interpolation function for each set of bars is defined by the y = #a * current_bar + b equation. def osc = Inertia(price - e1 / 2, length); #plot <plot_name>=<expression> or plot <plot_name> renders the data #you are working with on the chart. plot oscp = osc; #reference <StudyName>(parameter1=value1,.., #parameterN=valueN&thinsp).<PlotName> references a plot from another #script. def diff = reference bollingerbandsema(length = 20)."upperband" - reference KeltnerChannels."Upper_Band"; plot mid = 0; #AssignValueColor(CustomColor color) paints intervals of a plot with #desired colors depending on a condition. mid.assignValueColor(if diff >= 0 then Color.UPTICK else Color.DOWNTICK); #oscp.assignValueColor(if osc[1] < osc[0] then Color.CYAN else Color.magenta); oscp.assignValueColor(if osc[1] < osc[0] then if osc[0] >= 0 then #UpPos createColor(0, 255, 255) else #UpNeg createColor(204, 0, 204) else if osc[0] >= 0 then #DnPos createColor(0, 155, 155) else #DnNeg createColor(255, 155, 255)); #SetPaintingStrategy(int paintingStrategy, double ignore user #settings) controls a painting style of a line. oscp.setPaintingStrategy(PaintingStrategy.HISTOGRAM); mid.setPaintingStrategy(PaintingStrategy.POINTS);
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-11-11 15:36:13

안녕하세요 예스스탁입니다. 올려주신 내용은 사용해본 경험이 없는 언어라 해석해서 예스랭귀지로 변경해 드릴수가 없습니다. 따로 글로 내용을 풀어서 올려주셔야 식작성이 가능합니다. 즐거운 하루되세요 > 괌 님이 쓴 글입니다. > 제목 : 예트수식 부탁드립니다. > 안녕하세요. 예스트레이더 수식으로 부탁드릴께요. 감사합니다. #declare lower Places a study on the lower subgraph. declare lower; input Length = 20; input price = close; ###################### #def <variable_name>=<expression> or def <variable_name> defines a #variable you would like to work with. #Highest(IDataHolder data, int length) returns the highest value of #data for the last length bars, Lowest(IDataHolder data, int length) #returns the lowest value of data for the last length bars, and #Average(IDataHolder data, int length) returns the average value of a #set of data for the last length bars def e1 = (Highest(High, length) + Lowest(low, length)) / 2 + Average(close, length); #Inertia(IDataHolder data, int length) draws the linear regression #curve using the least-squares method to approximate data for each #set of bars defined by the length parameter. The resulting #interpolation function for each set of bars is defined by the y = #a * current_bar + b equation. def osc = Inertia(price - e1 / 2, length); #plot <plot_name>=<expression> or plot <plot_name> renders the data #you are working with on the chart. plot oscp = osc; #reference <StudyName>(parameter1=value1,.., #parameterN=valueN&thinsp).<PlotName> references a plot from another #script. def diff = reference bollingerbandsema(length = 20)."upperband" - reference KeltnerChannels."Upper_Band"; plot mid = 0; #AssignValueColor(CustomColor color) paints intervals of a plot with #desired colors depending on a condition. mid.assignValueColor(if diff >= 0 then Color.UPTICK else Color.DOWNTICK); #oscp.assignValueColor(if osc[1] < osc[0] then Color.CYAN else Color.magenta); oscp.assignValueColor(if osc[1] < osc[0] then if osc[0] >= 0 then #UpPos createColor(0, 255, 255) else #UpNeg createColor(204, 0, 204) else if osc[0] >= 0 then #DnPos createColor(0, 155, 155) else #DnNeg createColor(255, 155, 255)); #SetPaintingStrategy(int paintingStrategy, double ignore user #settings) controls a painting style of a line. oscp.setPaintingStrategy(PaintingStrategy.HISTOGRAM); mid.setPaintingStrategy(PaintingStrategy.POINTS);