거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Pivot Star - MetaTrader 4용 지표

조회수:
61487
평가:
(33)
게시됨:
2016.12.28 16:38
업데이트됨:
2017.06.19 14:31
Pivot_Star.mq4 (14.95 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

This indicator draws current pivot points, it does not plot history. Clean and simple.

Choice of Standard, Fibonacci, Camarilla, Woody's and Demark pivot calculations.

Calculation is based on previous bar of chosen period.

double xOpen=iOpen(0,inpPeriod,1);
double xClose= iClose(0,inpPeriod,1);
double xHigh = iHigh(0,inpPeriod,1);

double xLow= iLow(0,inpPeriod,1);

Default setting is H1, for scalping.

input int xShift = 3; // X-Axis Shift
input int xLen = 25// Line Length
  • xShift positions pivot lines relative to the first bar (positive number shifts to the right).
  • xLen sets length of lines (by number of bars, in theory).

Two additional lines are drawn — Previous day's High and Low.

Every and each line can be set up to your liking: Color, Style, Thickness (set color to None to disable line).

Standard Pivot

Thicker lines are previous day's High/Low. Drawn only on lower than D1 time frames.

Camarilla Pivot

Camarilla Pivot includes L3, L4, L5, H3, H4, H5 lines. Other points are omitted as they're not really needed.

If viewing time frame is larger than indicator's set period, the lines are not drawn, otherwise they only obstruct.

//--- Draw Lines
   if(inpPeriod>=Period())
     {
      if(Period()<=1440)
        {
         DrawLevel("Yesterdays High",xYH,StyleYH,WidthYH,LevelYH);
         DrawLevel("Yesterdays Low",xYL,StyleYL,WidthYL,LevelYL);
        }
      DrawLevel("R3",xR3,StyleR3,WidthR3,LevelR3);
      DrawLevel("R2",xR2,StyleR2,WidthR2,LevelR2);
      DrawLevel("R1",xR1,StyleR1,WidthR1,LevelR1);
      DrawLevel("PP",xPP,StylePP,WidthPP,LevelPP);
      DrawLevel("S1",xS1,StyleS1,WidthS1,LevelS1);
      DrawLevel("S2",xS2,StyleS2,WidthS2,LevelS2);
      DrawLevel("S3",xS3,StyleS3,WidthS3,LevelS3);
     }


Updated 05 Jun 2017.

Few changes, showing Previous Day's High/Low is optional; code changed so that it is now possible to use couple of instances for different time-frames (e.g. one for daily pivots, one for weekly, etc.).

Automatic Fixed Scale with Top/Bottom Margins Automatic Fixed Scale with Top/Bottom Margins

This code was written as an indicator. It adds top and bottom margin to the chart. Both can be adjusted separately.

Notify Notify

This library has smart notification(alert, push and alert) function with an option of having a single notification per candle at a time.

Example of MACD Automated Example of MACD Automated

Code example of MACD automated with advanced money management function.

Yen Trader Yen Trader

Expert Advisor to trade Yen Crosses based on Major Pairs and USDJPY divergence/convergence.