Hello Support,
Part of my strategy is to buy or sell on R1,S1,R3 and S3. But on Mondays the pivot becomes a bunch of wrong data. See picture.
I have searched a lot inside the forum to prevent this, but I haven't found anything that solve it. As part of the solution I tried to just send my orders on Tuesday, but then I will miss 1 day, which I don't want. Or just using this code to start from day 2, but it does the same, trows wrong pivot data. Even if i use day 1 or 2, it keeps doing the same.
if (calendar1.get(Calendar.DAY_OF_WEEK) < 2) {
calendar1.setTimeInMillis(bidBar.getTime());
console.getOut().println("SUNDAY! " + calendar1.get(Calendar.DAY_OF_WEEK));}
else{
code of the EA}
