LazyBear

Pip collector [LazyBear]

A simple but effective Forex strategy requested by user @pipcollector.

Suggested chart timeframe is 5mins.

Indicator marks potential long/short entries based on the following conditions:

LONG
------
  • Price above pip median ema on daily, 4 hour and 1 hour timeframe. These 3 timeframes and median EMA lengths are configurable.
  • Background color is set to GREEN (if option is enabled).
  • As soon as price touches or crosses the median ema, a GREEN arrow is shown to mark potential long.

SHORT
------
  • Price below pip median ema on daily, 4 hour and 1 hour timeframe. These 3 timeframes and median EMA lengths are configurable.
  • Background color is set to RED (if option is enabled).
  • As soon as price touches or crosses the median ema, a RED arrow is shown to mark potential short.

NO SETUP
-----------
  • Moving averages do not align on the 3 timeframes.
  • Background color is set to GRAY (if option is enabled)

I have noticed that this works well on other instruments too (anything trending), also on higher time frames. Feel free to leave any questions/comments on this below.

List of my public indicators: bit.ly/1LQaPK8
List of my app-store indicators: blog.tradingview.com/?p=970

List of my free indicators: bit.ly/1LQaPK8
List of my indicators at Appstore: blog.tradingview.com/?p=970
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?
//
// @author LazyBear 
// 
// List of my public indicators: http://bit.ly/1LQaPK8 
// List of my app-store indicators: http://blog.tradingview.com/?p=970 
//
study("Pip collector [LazyBear]", shorttitle="PIPCOLL_LB", overlay=true, precision=6)
src=input(close, title="Source")
tf1=input("D", title="Timeframe 1"), tf2=input("240", title="Timeframe 2"), tf3=input("60", title="Timeframe 3")
lengthCenter=input(50, title="Center EMA Length")
lengthLower=input(20, title="Distance of lower line from center (pips)")
lengthUpper=input(20, title="Distance of upper line from center (pips)")
showBGColor=input(false, title="Background color on all EMA synch?")
pip=syminfo.mintick 
ltfsrc=ema(src, lengthCenter) < src
stfsrc=ema(src, lengthCenter) > src
ltf1=security(tickerid, tf1, ltfsrc), stf1=security(tickerid, tf1, stfsrc)
ltf2=security(tickerid, tf2, ltfsrc), stf2=security(tickerid, tf2, stfsrc)
ltf3=security(tickerid, tf3, ltfsrc), stf3=security(tickerid, tf3, stfsrc)
ctfsrc=ema(src,lengthCenter), ctfsrcl=ctfsrc-lengthLower*pip, ctfsrcu=ctfsrc+lengthLower*pip
long=ltf1 and ltf2 and ltf3 
short=stf1 and stf2 and stf3 
plot(ctfsrc, color=blue, linewidth=2, title="Center EMA")
plot(ctfsrcl, color=red, linewidth=2, title="Lower")
plot(ctfsrcu, color=green, linewidth=2, title="Upper")
inrange(x)=>(x>=low and x<=high)
plotarrow(long and ((src==ctfsrc) or cross(src, ctfsrc) or (inrange(ctfsrc)))?low:na, maxheight=30, title="Buy Arrow",  colorup=lime)
plotarrow(short and ((src==ctfsrc) or cross(src, ctfsrc) or (inrange(ctfsrc)))?-high:na, maxheight=30, title="Buy Arrow",  colordown=red)
bgcolor(showBGColor?(ltf1 and ltf2 and ltf3)?green:(stf1 and stf2 and stf3)?red:black:na, transp=85)