Thank you so much Robert for the explanation. That makes a lot of sense.by stefonk - Trading Discussion
Swing Hi and Lo Scan December 10, 2014 10:12PM Registered: 3 months ago Posts: 9 Is there a way that I can use this study as a scan to get symbols that "close crosses above swing high or "close crosses below swing low. #Swing high Swing low study input swing_back = 8; input swing_forward = 2; input maxbars = 30; input showlevels = Yes; def sb = swing_back; def sf = swby stefonk - Trading Discussion
Thanks Robert, will work around with it . Thanks Steveby stefonk - Trading Discussion
So how can I display the Heiken Ashi Chart on the lower study.by stefonk - Trading Discussion
Hi, I am trying to display heiken ashi on the lower study, can anybody show me what is wrong with this code that I only get RED candles. declare lower; def o = open; def h = high; def l = low; def c = close; def HAclose = ohlc4; def HAopen = CompoundValue(1,(HAopen[1] + HAclose[1]) / 2, (o[1] + c[1]) / 2); def haopen_=haopen+0;by stefonk - Trading Discussion
Hi Robert, Thanks very much but apparently it didn't work. input priceH = high; input priceL = low; input percentageReversal = 5.0; input absoluteReversal = 0.0; input atrLength = 5; input atrReversal = 1.5; def zigZag = reference ZigZagHighLow(priceH, priceL, percentageReversal, absoluteReversal, atrLength, atrReversal).ZZ; def step1 = open[1] >= open and open >= close[1by stefonk - Trading Discussion
Thanks for all the help but I need one more scan if this can be done. This is a built in study from TOS that I am trying to use but always get this error message that, its too complex to produce a realtime data. Actually I am scanning EOD data. I just cant get this to work properly. Its the ZigZag Pattern. I plot either the Upstep or Downstep but still having problems. If you can help with this sby stefonk - Trading Discussion
Thank you so much Robert, you are the bestby stefonk - Trading Discussion
Hi, I am trying to generate a scan that will pull up candlesticks with hammer or shooting stars.The tail should be 3 times longer than the body and also there can be small wicks too. Is there a way to do this with a study in thinkscript? Thanks steveby stefonk - Trading Discussion
Is there a way that I can use this study as a scan to get symbols that "close crosses above swing high or "close crosses below swing low. #Swing high Swing low study input swing_back = 8; input swing_forward = 2; input maxbars = 30; input showlevels = Yes; def sb = swing_back; def sf = swing_forward; def na = double.nan; def lfor = Lowest(low, sf)[-sf]; def lback =by stefonk - Trading Discussion