test1

//引用元:Dr.X(エックス)さんがTwitterにアップしていた手法
//引用元:境界線上の割烹着‏さんがTwitterにアップしていたインジケータ

using elsystem.drawingobjects;
vars: TrendLine myTrendLine1(null), BNPoint myBNPoint1(null), BNPoint myBNPoint2(null) ,double AnyVol( 0 ), Int bar_no ( 0 );

if BarType >= 2 and BarType < 5 then { Daily, Weekly, or Monthly bars }
AnyVol = Volume
else
AnyVol = Ticks;
bar_no = CurrentBar;

//前日陽線始値に水平線を引く
If Open[1] < Close[1] and AnyVol[2] < AnyVol[1] and Open > Close and AnyVol[1] > AnyVol[0] then begin
myBNPoint1 = BNPoint.Create(bar_no+1,Open[1]);
myBNPoint2 = BNPoint.Create(bar_no+7,Open[1]);
myTrendLine1 = TrendLine.create(myBNPoint1,myBNPoint2);
myTrendLine1.Persist = True;
myTrendLine1.Style = 0;
DrawingObjects.Add(myTrendLine1);
myTrendLine1.ExtLeft = FALSE;
myTrendLine1.ExtRight = FALSE;
end;

//前日陽線終値に水平線を引く
If Open[1] < Close[1] and AnyVol[2] < AnyVol[1] and Open > Close and AnyVol[1] > AnyVol[0] then begin
myBNPoint1 = BNPoint.Create(bar_no+1,Close[1]);
myBNPoint2 = BNPoint.Create(bar_no+7,Close[1]);
myTrendLine1 = TrendLine.create(myBNPoint1,myBNPoint2);
myTrendLine1.Persist = True;
myTrendLine1.Style = 2;
DrawingObjects.Add(myTrendLine1);
myTrendLine1.ExtLeft = FALSE;
myTrendLine1.ExtRight = FALSE;
end;

//GUにマーキング
If High[1]< low[0] then
Plot1(High[0]*1.02,"GU")