peopleisliking

Three EMA Crossover Trading Strategy

Use it with any forex currency pair or any stock with any timeframe.
It is a trend following trading strategy so works best in trending market.
So once you identify the market is trading you just simply use this trading strategy.

Video Explanation : Youtube
Detail Explanation : www.peopleisliking.com
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?
study("Three EMA Crossover Trading Strategy",overlay=true)
 
LowestPeriod = input(title="Lowest Period",type=integer,defval=10)
MediumPeriod = input(title="Medium Period",type=integer,defval=25)
LongestPeriod = input(title="Longest Period",type=integer,defval=50)
 


LowestEMA = ema(close,LowestPeriod)
MediumEMA = ema(close,MediumPeriod)
LongestEMA = ema(close,LongestPeriod)


LEColor = LowestEMA > LowestEMA[1] ? green : red
MEColor = MediumEMA > MediumEMA[1] ? lime : maroon
LLEColor = LongestEMA > LongestEMA[1] ? gray : purple


plot( LowestEMA, color= LEColor , title="Lowest EMA", trackprice=false, style=line)
plot( MediumEMA ,color= MEColor , title="Medium EMA", trackprice=false, style=line)
plot( LongestEMA , color= LLEColor , title="Longest EMA", trackprice=false, style=line)

//plotshape(cross(close,Tsl) and close>Tsl , "Up Arrow", shape.triangleup,location.belowbar,green,0,0)
//plotshape(cross(Tsl,close) and close<Tsl , "Down Arrow", shape.triangledown , location.abovebar, red,0,0)
//plot(Trend==1 and Trend[1]==-1,color = linecolor, style = circles, linewidth = 3,title="Trend")
Trend = LowestEMA > MediumEMA and LowestEMA > LongestEMA ? 1 : LowestEMA < MediumEMA and LowestEMA < LongestEMA ? -1 : 0
plotarrow(Trend == 1 and Trend[1] != 1 ? Trend : na, title="Up Entry Arrow", colorup=lime, maxheight=60, minheight=50, transp=0)
plotarrow(Trend == -1 and Trend[1] != -1 ? Trend : na, title="Down Entry Arrow", colordown=red, maxheight=60, minheight=50, transp=0)