0 Пользователей и 1 Гость просматривают эту тему.
Vars:kolvo(0);If Close Data2 < Open Data2 then kolvo = kolvo + 1;If Time[1] Data2 = Time Data1 then kolvo = 0;plot1(kolvo,"kolvo");plot2(0,"0");print( Time:4:0, " / ", kolvo);
Vars: barpl(0),barmin(0);If Close Data2>Close[1] Data2 then beginbarpl = barpl + 1;If Time[1] Data2 = Time Data1 then barpl = 0;End;If Close Data2<Close[1] Data2 then beginbarmin = barmin - 1;If Time[1] Data2 = Time Data1 then barmin = 0;End;Plot1(barpl,"pl");Plot2(barmin,"min");
vars: barpl(0), barmin(0);condition1 = Close Data2 > Close[1] Data2;condition2 = Close Data2 < Close[1] Data2;condition3 = Time[1] Data2 = Time Data1;if condition3 then begin If Condition1 then begin barpl = 1; barmin = 0; end else if Condition2 then begin barmin = 1; barpl = 0; end else begin barmin = 0; barpl = 0; end;end else begin if Condition1 then barpl = barpl + 1; if Condition2 then barmin = barmin + 1;end;plot1(barpl,"barpl");plot2(-barmin,"barmin");