♥ 0 |
HI i have this study…. how can i convert this into scan, i have seen your video, but problem with this it has script in it and without plot i think we cannot use script and scan donot allow 2 plots, script OpenRange { def FirstBar = secondsfromtime(0930) >= 0 and secondsfromtime(0930) < 60; plot h = if RangeTime or secondstilltime(0930) > 0 then Double.NaN else Rhigh; def first30 = SecondsFromTime(0930) >= 0 and SecondsTillTime(1000) >= 0; plot yHigh = if !today then Double.NaN else high(period = “day” )[1]; plot h5 = if !today then Double.NaN else if !first30 then Double.NaN else OpenRange(5).h; def lowConf = if first30 then Min(yLow, l5) – ATR else Min(yLow, l30) – ATR; plot lc1 = if first30 then lowConf else Double.NaN; def decisionL = if close > lowConf then Double.NaN else if close crosses below lowConf then low else decisionL[1]; plot dL = if !today then Double.NaN else decisionL; def TL = CompoundValue(1, if IsNaN(dL) then Double.NaN else if !IsNaN(TL[1]) then TL[1] else if close crosses below dL then dL – 2 * ATR else Double.NaN, Double.NaN); def priceDiff = dL – TL; plot Target1Low = if !today then Double.NaN else TL; AddChartBubble(IsNaN(TL[1]) and !IsNaN(TL), TL, “Target ” + priceDiff + “\n”+ Round(TL, 2) , Color.GREEN, no); def TH = CompoundValue(1, if IsNaN(dH) then Double.NaN else if !IsNaN(TH[1]) then TH[1] else if close crosses above dH then dH + 2 * ATR else Double.NaN, Double.NaN); def priceDiff1 = dH – TH; plot Target1High = if !today then Double.NaN else TH; AddChartBubble(IsNaN(TH[1]) and !IsNaN(TH), TH, “Target ” + priceDiff1 + “\n” + Round(TH, 2), Color.GREEN);
Marked as spam
|
Private answer
From the size of your code I can see we’ll need to move this to a custom project request. This is going to be far more complex than what we provide at no charge here in the Q&A forum. You can get all the details about custom project requests here: https://www.hahn-tech.com/about/ Marked as spam
|
Please log in to post questions.