Is there a way to access exit on session close command using logic? I'd like to be able to use it as a bool and optimize to see if exit on session close is beneficial for my strategy or if it is not.
Or will I have to create a logic and define exit times for each session and exiting my positions during those times? problem is, different instruments have different sessions and closing times so it would be nice to be able to access exit on session close via logic.
i tried the below but it compiled but did not work.
if (State == State.SetDefaults) { Description = @"Opposite of SlopReg2"; Name = "MissionImpossibleTester2"; T = 8; Entry = 0.0003; EntryS = 0.0005; ST = 110; Target1 = 40; Target2 = 70; Target3 = 90; EODClose = true; Calculate = Calculate.OnBarClose; EntriesPerDirection = 1; EntryHandling = EntryHandling.UniqueEntries; if(EODClose==true) { IsExitOnSessionCloseStrategy = true; } else if(EODClose==false) { IsExitOnSessionCloseStrategy = false; }
Comment