Hi in my strategy I only wanna trade on Monday to Thursday and eliminate Friday
Also would like to dynamically set position sizing i.e. Monday - Wed 10% but Thursday would be 5% of the equity.
Here is the code snippet, am i on right track or can this be done in a different way.
NoTradeDay = DayofWeek() != 5;
LongEntry = entryCondition1 AND entryCondition2 AND NoTradeDay;
LongExit = exitCondition1;
// Dynamic Position Size
PosSiz = IIf(DayOfWeek() == 4, 5, 10);
SetPositionSize(PosSiz, spsPercentOfEquity);
Thanks