How easy/difficult is it to write a code to limit trading to certain days and hours?
I have tried a number of ways but end up with a pile of errors.
extern bool TradeOnSunday=true; //time filter on sunday
extern bool MondayToThursdayTimeFilter=true; //time filter the week
extern int MondayToThursdayStartHour=8; //start hour time filter the week
extern int MondayToThursdayEndHour=17; //end hour time filter the week
extern bool FridayTimeFilter=false; //time filter on friday
extern int FridayStartHour=8; //start hour time filter on friday
extern int FridayEndHour=14; //end hour time filter on friday
If Friday =false then close off all open orders on friday