anhnguyen14
Active Member
- 15,083
- 18,145
Hi anh em, lâu quá mình không có cái gì tặng anh em để giải trí với món BO rùi, hôm nay mình tặng anh em cái indi Pre-H1 Fibo Line này để chơi đùa với ma kẹt nha. Indi này mình hứng thì viết thôi, cũng không biết có tác dụng gì, anh em thích thì vọc, dùng được thế nào thì tùy vào duyên của anh em với nó nha. Chúc anh em trade tốt!
Lucky Trading!
1. Code Pine
2.Giao diện indi
Lucky Trading!
1. Code Pine
Mã:
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © inno14
//@version=4
study(title="Pre-H1 Fibo Line", overlay=true)
H1_High = security(syminfo.tickerid, '60', high[1])
H1_Low = security(syminfo.tickerid, '60', low[1])
H1_Close = security(syminfo.tickerid, '60', close[1])
H1_Open = security(syminfo.tickerid, '60', open[1])
rescol = color.new(color.black,30)
supcol = color.new(color.black,30)
//Standar Fibo
Fib0=H1_Close>H1_Open?H1_Low:H1_High
Fib1=H1_Close>H1_Open?H1_High:H1_Low
Dis=H1_High-H1_Low
Fib0_236 = H1_Close>H1_Open?Fib0 + 0.236*Dis:Fib0 - 0.236*Dis
Fib0_382 = H1_Close>H1_Open?Fib0 + 0.382*Dis:Fib0 - 0.382*Dis
Fib0_5 = H1_Close>H1_Open?Fib0 + 0.5*Dis:Fib0 - 0.5*Dis
Fib0_618 = H1_Close>H1_Open?Fib0 + 0.618*Dis:Fib0 - 0.618*Dis
Fib0_786 = H1_Close>H1_Open?Fib0 + 0.786*Dis:Fib0 - 0.786*Dis
Fibcol=color.new(color.green,30)
//Fibo
lFib0 = line.new(bar_index[20], Fib0, bar_index[0],Fib0, width = 4, color=supcol, extend=extend.right)
line.delete(lFib0[1])
lFib0_236 = line.new(bar_index[20], Fib0_236, bar_index[0],Fib0_236, width = 4, color=Fibcol, extend=extend.right)
line.delete(lFib0_236[1])
lFib0_382 = line.new(bar_index[20], Fib0_382, bar_index[0],Fib0_382, width = 4, color=Fibcol, extend=extend.right)
line.delete(lFib0_382[1])
lFib0_5 = line.new(bar_index[20], Fib0_5, bar_index[0],Fib0_5, width = 4, color=Fibcol, extend=extend.right)
line.delete(lFib0_5[1])
lFib0_618 = line.new(bar_index[20], Fib0_618, bar_index[0],Fib0_618, width = 4, color=Fibcol, extend=extend.right)
line.delete(lFib0_618[1])
lFib0_786 = line.new(bar_index[20], Fib0_786, bar_index[0],Fib0_786, width = 4, color=Fibcol, extend=extend.right)
line.delete(lFib0_786[1])
lFib1 = line.new(bar_index[20], Fib1, bar_index[0],Fib1, width = 4, color=rescol, extend=extend.right)
line.delete(lFib1[1])
//Label
lablecol=color.new(color.orange,50)
plotshape(Fib0, title="Fibo 0", style=shape.labeldown, location=location.absolute, color=lablecol, text="0.0", textcolor=color.black, offset=3,size=size.tiny, show_last=1)
plotshape(Fib0_236, title="Fibo 0_236", style=shape.labeldown, location=location.absolute, color=lablecol, text="0.236", textcolor=color.black, offset=3, size=size.tiny, show_last=1)
plotshape(Fib0_382, title="Fibo 0_382", style=shape.labeldown, location=location.absolute, color=lablecol, text="0.382", textcolor=color.black, offset=3, size=size.tiny, show_last=1)
plotshape(Fib0_5, title="Fibo 0_5", style=shape.labeldown, location=location.absolute, color=lablecol, text="0.5", textcolor=color.black, offset=3, size=size.tiny, show_last=1)
plotshape(Fib0_618, title="Fibo 0_618", style=shape.labeldown, location=location.absolute, color=lablecol, text="0.618", textcolor=color.black, offset=3, size=size.tiny, show_last=1)
plotshape(Fib0_786, title="Fibo 0_786", style=shape.labeldown, location=location.absolute, color=lablecol, text="0.786", textcolor=color.black, offset=3, size=size.tiny, show_last=1)
plotshape(Fib1, title="Fibo 1", style=shape.labeldown, location=location.absolute, color=lablecol, text="1.0", textcolor=color.black, offset=3, size=size.tiny, show_last=1)
plotshape(H1_Close>H1_Open?Fib0:na, title="Pre-H1 Blue", style=shape.arrowup, location=location.absolute, color=color.blue, text="Pre-H1 Blue", textcolor=color.black, offset=4, size=size.normal, transp=0, show_last=1)
plotshape(H1_Close<H1_Open?Fib0:na, title="Pre-H1 Red", style=shape.arrowdown, location=location.absolute, color=color.red, text="Pre-H1 Red", textcolor=color.black, offset=4, size=size.normal, transp=0, show_last=1)
//End
2.Giao diện indi
Giới thiệu sách Trading hay
Naked Forex - Phương Pháp Price Action Tinh Gọn
Naked Forex được đánh giá cao trên toàn cầu (theo Amazon) vì đã cung cấp một cẩm nang thực thụ cho những nhà giao dịch theo trường phái Price Action
Bài viết liên quan