Thanks, Mike. Yes, I already have error checking incorporated to account for the fact that some months may not have a market day on the selected day of the month for score calculations.
I would need to do the same to ensure that my entry date is say, the first business day of the succeeding month and not simply the calendar day number one. I will play with this and let you know how it goes. It is a great idea. Jack --- In [email protected], "Mike" <sfclimb...@...> wrote: > > > Hi, > > I believe that you can accomplish what you are seeking via the ValueWhen > function. However, you will need to add better error checking to your > "25th of each month" to account for that day falling on a weekend or > holliday. > > Here is an untested simplistic example (to illustrate the concept) > ignoring the fact that the 25th may not happen for any given month (as a > result of being a weekend or holliday). > > Mike > > Scores = ...; // My PositionScore logic > Day25 = Day() == 25; // Naive 25th day > > Buy = ...; // My Buy logic > PositionScore = ValueWhen(Day25, Scores); // Use PositionScore of 25th > day > > > --- In [email protected], "slipthruthecracks" > <slipthruthecracks@> wrote: > > > > Since Positionscores are done on buy/sell dates, is it possible to > calculate the position score on a given day each month but not make the > trade until a given date in the next month. For instance, how would one > tell the AA that you want to calculate the positonscore on the 25th of > the month and enter the resulting trade on the 1st of the next month? > Trade delay does not seem to work since months have different lengths. > With a buy date of he 25th of each month a trade delay of 6 puts the > trade on the 1st when the month has 30 days and in March it puts it on > the 3rd since Feb has 28 days and on months with 31 days, the trade is > on the 31st. > > > > One-Eyed-Jack > > >
