Chart Parameter Values do not save

Even though I save my local layout and mark it as default and save default layout also and file / save database icon, every time I launch my DTNIQ intraday chart my parameters all reset, even same day.

Can anyone provide insight as to why.. here is code snippet...

	//StartDate = Ref(Now(3),-1); 
//startdate = ParamDate( "Start date", "2023-09-15",0);

TodaysDate= Now(3);

//DayStart = DateNum() != Ref( DateNum(), -1 );
//VWAP = SumSince( DayStart, Avg * Volume) / SumSince( DayStart, Volume );

// PlotForeign("VXN.XO","VXN Vol",colorPink,styleline|styleOwnScale|styleLeftAxisScale|styleNoLabel);
 
 
//Version(6.20);
//fromdate = paramDate( "Start Date","2023-09-01",0);
//startDate = DateTimeDiff(DateTime(),fromdate) == 0;

VolTrigger = Param("Vol Trigger",300,300,500,1);
AbsGEX = Param("AbsGEX",VolTrigger, 300,500,1);
CallWall = Param("CallWall",VolTrigger,300,500,1);
PutWall = Param("PutWall",VolTrigger,300,500,1);
ZeroGEX= Param("ZeroGEX",VolTrigger,300,500,1);



RES1 = Param("RES1",VolTrigger,300,500,1);
RES2 = Param("RES2",VolTrigger,300,500,1);
RES3 = Param("RES3",VolTrigger,300,500,1);
SPT1 = Param("SPT1",VolTrigger,300,500,1);
SPT2 = Param("SPT2",VolTrigger,300,500,1);
SPT3 = Param("SPT3",VolTrigger,300,500,1);

/*
Res1C= ParamColor("Res1Clr",  colorpink);
Res2C= ParamColor("Res2Clr",colorpink);
Res3C= ParamColor("Res3Clr",colorpink);


Spt1C= ParamColor("Spt1Clr",colorpink);
Spt2C= ParamColor("Spt2Clr",colorpink);
Spt3C= ParamColor("Spt3Clr",colorpink);

/*
RES1 = Param("Val_RES1",VolTrigger,300,500,1);
RES2 = Param("Val_RES2",VolTrigger,300,500,1);
RES3 = Param("Val_RES3",VolTrigger,300,500,1);
SPT1 = Param("Val_SPT1",VolTrigger,300,500,1);
SPT2 = Param("Val_SPT2",VolTrigger,300,500,1);
SPT3 = Param("Val_SPT3",VolTrigger,300,500,1);

Combo1 =Param("Combo1",VolTrigger,300,500,1);
Combo2 =Param("Combo2",VolTrigger,300,500,1);
Combo3 =Param("Combo3",VolTrigger,300,500,1);
Combo4 =Param("Combo4",VolTrigger,300,500,1);
*/

Plot(VolTrigger,"Vol Trigger",colorBlack,stylethick| styleNoLabel,VolTrigger, TodaysDate,  4,Null,5); 
Plot(AbsGEX,"Abs GEX",colorBlack,styleDashed| styleNoLabel, AbsGEX, TodaysDate,4,Null,5);
Plot(CallWall,"CallWall",colorred,stylethick| stylenolabel, CallWall,TodaysDate,4,Null,5);
Plot(PutWall,"PutWall",colorDarkGreen,stylethick| styleNoLabel, PutWall,TodaysDate,4,Null,4);
Plot(ZeroGEX,"ZeroGEX",colorlightyellow,stylethick| styleNoLabel, ZeroGEX,TodaysDate,4,Null,4);

Plot(RES1,"RES1",colorred,styledashed|stylenolabel,RES1,TodaysDate,4,Null,5);
Plot(RES2,"RES2",colorred,styledashed|stylenolabel,RES2,TodaysDate,4,Null,5);
Plot(RES3,"RES3",colorred,styledashed|stylenolabel,RES3,TodaysDate,4,Null,5);
Plot(SPT1,"SPT1",colorDarkGreen,styledashed|stylenolabel,SPT1,TodaysDate,4,Null,4);
Plot(SPT2,"SPT2",colorDARKGREEN,styledashed|stylenolabel,SPT2,TodaysDate,4,Null,4);
Plot(SPT3,"SPT3",colorDARKGREEN,styledashed|stylenolabel,SPT3,TodaysDate,4,Null,4);

/*
Plot(RES1,"RES1",Res1C,styledashed|stylenolabel,RES1,TodaysDate,4,Null,5);
Plot(RES2,"RES2",Res2C,styledashed|stylenolabel,RES2,TodaysDate,4,Null,5);
Plot(RES3,"RES3",Res3C,styledashed|stylenolabel,RES3,TodaysDate,4,Null,5);
Plot(SPT1,"SPT1",Spt1C, styledashed|stylenolabel,SPT1,TodaysDate,4,Null,4);
Plot(SPT2,"SPT2",Spt2C, styledashed|stylenolabel,SPT2,TodaysDate,4,Null,4);
Plot(SPT3,"SPT3",Spt3C, styleDashed|stylenolabel,SPT3,TodaysDate,4,Null,4);


Plot(Combo1,"Combo1",ParamColor("Combo1", colorINDIGO), styledashed|stylenolabel,Combo1,TodaysDate,4,Null,4);
Plot(Combo2,"Combo2",ParamColor("Combo2", colorINDIGO), styledashed|stylenolabel,Combo2,TodaysDate,4,Null,4);
Plot(Combo3,"Combo3",ParamColor("Combo3", colorINDIGO), styleDashed|stylenolabel,Combo3,TodaysDate,4,Null,4);
Plot(Combo4,"Combo4",ParamColor("Combo4", colorINDIGO), styleDashed|stylenolabel,Combo3,TodaysDate,4,Null,4);
*/

PlotText("VolTrigger= " +VolTrigger,LastValue(BarIndex() -28),voltrigger-.1,colorBlack,2); 
PlotText("AbsGEX= " +AbsGEX,LastValue(BarIndex() -23),AbsGEX+.1,colorBlack,2); 
PlotText("CallWall= " +CallWall, LastValue(BarIndex() -38),CallWall+.1,colorRed,1); 
PlotText("PutWall= " +PutWall, LastValue(BarIndex() -48),PutWall+.1,colorDarkGreen,5); 
PlotText("ZeroGEX= " +ZeroGEX, LastValue(BarIndex() -53),ZeroGEX+.1,colorWhite,3); 

PlotText("RES1= " +RES1, LastValue(BarIndex() -25),RES1+.1,colorRed,1);
PlotText("RES2= " +RES2, LastValue(BarIndex() -30),RES2+.1,colorRed,1);
PlotText("RES3= " +RES3, LastValue(BarIndex() -35),RES3+.1,colorRed,1);

PlotText("SPT1= " +SPT1, LastValue(BarIndex() -25),SPT1-.1,colorDARKGREEN,5);
PlotText("SPT2= " +SPT2, LastValue(BarIndex() -30),SPT2-.1,colorDARKGREEN,5);
PlotText("SPT3= " +SPT3, LastValue(BarIndex() -35),SPT3-.1,colorDARKGREEN,5);

Thanks in advance...

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.