Disliked{quote} Your question arising doubts,when see your long years in trading and comparing it with basic type question would you mind explain it more in detailsIgnored
double A[],B[],R[],F[];
int start(){
if (auto){
CONDITION
iPeriod= Result of CONDITION;
}
else iPeriod = same with input parameters ;
window = WindowFind(ShortName);
string ObjName=UniqueID+"Нулевая линия";
if(window>-1 && ObjectFind(ObjName)!=WindowFind(ShortName)){
LastStartFrom=iStartFrom;//
LastLeftBar=iStartFrom+iPeriod-1;
LastRightBar=iStartFrom;
LastLeftTime=Time[LastLeftBar];
LastRightTime=Time[LastRightBar];
fObjTrendLine(ObjName,LastLeftTime,0,LastRightTime,0,false,HandlerColor,3,WindowFind(ShortName),0,true);
}
****from here to the end is the same as the original****
Attached File(s)