How To Trade The Easter Holiday (Amibroker And Tradestation Code)
The original article can be found here.
The Holy Thursday strategy in plain English:
- We buy at the close of the Wednesday before Holy Thursday, and
- we sell at the close on Holy Thursday
Amibroker code:
Buy= (Month()==3 OR Month()==4) AND DayOfWeek()==3 AND Ref(DayOfWeek(),2)==1;
buyPrice=Close;
Sell= C>0;
sellPrice=Close ;
Tradestation code:
{
Strategy - How to trade Easter holiday
https://www.quantifiedstrategies.com/lessons/how-to-trade-the-easter-holiday-amibroker-code/
Function IsEasterHoliday must be loaded in the functions
}
if IsEasterHoliday(CalcDate(Date, 2)) then buy this bar on close;
if IsEasterHoliday(CalcDate(Date, 1)) then sell this bar on close;
