I've got a whole bank of indicators and strategies that I've coded over the years for think or swim and have decided to start randomly posting them along with the codes. They'll be posted weekly for the next month or two..depends how many good ones I decide are worth posting.
Here's the first and it's an indicator. The Fisher Scalper Color Bars. Based on the fisher transform, this indicator is pretty easy to comprehend. The bars are colored Green (bullish), Yellow (transition from bull to bear), Red (bearish), Blue (bearish transitioning to bullish).
I've played around with this indicator by using it on a higher time frame, like a one hour chart, as seen below, and then taking signals on a lower time frame chart (5m or 15m) in the direction of the trend based on the indicator.
Here's a chart:
Enjoy!
George
(TLT)
Here's the thinkscript code.
***delete this line***
declare lower;
input price = hl2;
input length = 10;
def maxHigh = Highest(price, length);
def minLow = Lowest(price, length);
def range = maxHigh - minLow;
rec value = if IsNaN(price)
then Double.NaN
else if IsNaN(range)
then value[1]
else if range == 0
then 0
else 0.66 * ((price - minLow) / range - 0.5) + 0.67 * value[1];
def truncValue = if value > 0.99 then 0.999 else if value < -0.99 then -0.999 else value;
rec fish = 0.5 * (log((1 + truncValue) / (1 - truncValue)) + fish[1]);
plot FTOneBarBack = fish[1];
plot FT = fish;
plot ZeroLine = 0;
input emalength = 50;
plot ema2 = expAverage(fish, emalength);
FTOneBarBack.SetDefaultColor(GetColor(1));
FT.SetDefaultColor(GetColor(8));
ZeroLine.SetDefaultColor(GetColor(5));
def bullish = if ft > ema2 then 1 else 0;
def bearish = if ft < ema2 then 1 else 0;
assignpriceColor(if ft>ftonebarback and bullish then color.green else if ft>ftoneBarBack and bearish then color.blue else if ft<ftoneBarBack and bearish then color.red else if ft<ftOneBarBack and bullish then color.yellow else color.gray);
***delete this line***
Here's the first and it's an indicator. The Fisher Scalper Color Bars. Based on the fisher transform, this indicator is pretty easy to comprehend. The bars are colored Green (bullish), Yellow (transition from bull to bear), Red (bearish), Blue (bearish transitioning to bullish).
I've played around with this indicator by using it on a higher time frame, like a one hour chart, as seen below, and then taking signals on a lower time frame chart (5m or 15m) in the direction of the trend based on the indicator.
Here's a chart:
Enjoy!
George
(TLT)
Here's the thinkscript code.
***delete this line***
declare lower;
input price = hl2;
input length = 10;
def maxHigh = Highest(price, length);
def minLow = Lowest(price, length);
def range = maxHigh - minLow;
rec value = if IsNaN(price)
then Double.NaN
else if IsNaN(range)
then value[1]
else if range == 0
then 0
else 0.66 * ((price - minLow) / range - 0.5) + 0.67 * value[1];
def truncValue = if value > 0.99 then 0.999 else if value < -0.99 then -0.999 else value;
rec fish = 0.5 * (log((1 + truncValue) / (1 - truncValue)) + fish[1]);
plot FTOneBarBack = fish[1];
plot FT = fish;
plot ZeroLine = 0;
input emalength = 50;
plot ema2 = expAverage(fish, emalength);
FTOneBarBack.SetDefaultColor(GetColor(1));
FT.SetDefaultColor(GetColor(8));
ZeroLine.SetDefaultColor(GetColor(5));
def bullish = if ft > ema2 then 1 else 0;
def bearish = if ft < ema2 then 1 else 0;
assignpriceColor(if ft>ftonebarback and bullish then color.green else if ft>ftoneBarBack and bearish then color.blue else if ft<ftoneBarBack and bearish then color.red else if ft<ftOneBarBack and bullish then color.yellow else color.gray);
***delete this line***
4 comments:
I know you will hold your head with your hands to read my english.It is very poor.But I know too one day I will learn it tiil forgive me plz.
isc888
I do not even know the way I stopped up right here, however I thought this put up was good. I don’t understand who you’re but certainly you are going to a famous blogger when you are not already Cheers! Elia & Ponto law firm michigan
Overall, politicians are split on the issue of whether Twitter is more for business or personal use. The first thing is the fact that you can build up quite a large following of people. www.gpwlaw-mi.com
ศัลยกรรมจมูก
จำเป็นต้อง ทำจมูก ด้วยเหตุว่า จมูกเป็นใจกลางของบริเวณใบหน้าอันเป็นตัวบ่งชี้มิติความสวยบนบริเวณใบหน้าของคุณ โดยปกติจมูกที่สวย (Perfect Nose) นั้นจำเป็นจะต้องงาม กลมกลืนตั้งแต่ดั้งถึงปลายจมูก แล้วก็รูปร่างของปีกจมูกที่ประกอบกันได้สวยงามพอดีในทุกมิติของการมอง สิ่งจำเป็นที่สุดของการศัลยกรรมจมูกนั้น เป็นการปรับตกแต่งรูปร่างของจมูก เสริมจมูก เพื่อออกมารับกับบริเวณใบหน้าเยอะที่สุด โดยอยู่บนเบื้องต้นองค์ความรู้ความเข้าใจที่เกี่ยวข้องกับเรื่องสรรพิทยาของจมูก รวมทั้งความชำนิชำนาญของศัลยแพทย์ เพื่อบริเวณใบหน้าของคุณงามเด่นขึ้นมา
เลเซอร์หน้าใส
เลเซอร์ลดริ้วรอย
เลเซอร์รอยสิว
Post a Comment