Hello, i am very new to this forum and i must say i have learned a lot on this forum than anywhere else so far. Thank you for everything you all contribute here much appreciated it.
Before i jumped to my problem, i just like to mention i went over all the 26 pages to find solution of my problem thinking i am not doing probably something nor right but unfortunately i couldn't figure my scan issue yet.
I am experiencing an issue with this scan, I used exactly same code as listed on page1 here at post #1 for charting and scanning .
For scanning i used thinkScript Editor under scan tab without anything else (just simple copy paste of below code) but the results i am getting on D aggregation are false , in other words i am seeing securties like Disney , C , GM on scan with D aggregations but now if i go to my chart which was plotted using below code (added as study) it does not show same signal. In other words i am getting false indicators when scanning. Do i need to change any more settings.
Code for charting (using study) - again taken from #1 in this thread
Scan Code - used for scanning securities
Before i jumped to my problem, i just like to mention i went over all the 26 pages to find solution of my problem thinking i am not doing probably something nor right but unfortunately i couldn't figure my scan issue yet.
I am experiencing an issue with this scan, I used exactly same code as listed on page1 here at post #1 for charting and scanning .
For scanning i used thinkScript Editor under scan tab without anything else (just simple copy paste of below code) but the results i am getting on D aggregation are false , in other words i am seeing securties like Disney , C , GM on scan with D aggregations but now if i go to my chart which was plotted using below code (added as study) it does not show same signal. In other words i am getting false indicators when scanning. Do i need to change any more settings.
Code for charting (using study) - again taken from #1 in this thread
Code:
# Mobius
# SuperTrend
# Chat Room Request
input AtrMult = 1.0;
input nATR = 4;
input AvgType = AverageType.HULL;
input PaintBars = yes;
def ATR = MovingAverage(AvgType, TrueRange(high, close, low), nATR);
def UP = HL2 + (AtrMult * ATR);
def DN = HL2 + (-AtrMult * ATR);
def ST = if close < ST[1] then UP else DN;
plot SuperTrend = ST;
SuperTrend.AssignValueColor(if close < ST then Color.RED else Color.GREEN);
AssignPriceColor(if PaintBars and close < ST
then Color.RED
else if PaintBars and close > ST
then Color.GREEN
else Color.CURRENT);
AddChartBubble(close crosses below ST, low[1], low[1], color.Dark_Gray);
AddChartBubble(close crosses above ST, high[1], high[1], color.Dark_Gray, no);
# End Code SuperTrend
Scan Code - used for scanning securities
Code:
Code:
# SuperTrend Scan
# Mobius
# V01.10.2015
# Comment out (#) the direction NOT to use for a scan
input AtrMult = 1.0;
input nATR = 4;
input AvgType = AverageType.HULL;
def h = high;
def l = low;
def c = close;
def v = volume;
def ATR = MovingAverage(AvgType, TrueRange(h, c, l), nATR);
def UP = HL2 + (AtrMult * ATR);
def DN = HL2 + (-AtrMult * ATR);
def ST = if c < ST[1]
then Round(UP / tickSize(), 0) * tickSize()
else Round(DN / tickSize(), 0) * tickSize();
plot SuperTrendUP = if ST crosses below close then 1 else 0;
# End Code SuperTrend