Heelo,
I simply would like to code how to buy a specific day (for example 28 of May) and sell 10 of september of every year. How can I avoid week end for example and say that if 28 of may or 10 of september is a non working day , to buy or sell the first available working day?
thanks in advance for your help
Alessio
JSParticipant
Senior
Hi,
Try this one…
DefParam CumulateOrders=False
If Day=>28 and Month=5 then
Buy 1 contract at Market
ElsIf Day=>10 and Month=9 then
Sell at Market
EndIf
Won’t this be very costly with overnight fees?
with which broker? I use IB
JSParticipant
Senior
Also IB.. (Micro E-mini DJ30)