1) I would like to be able to output the outcome of the trade history (historical and live) so as to output 1 if the trade was positive and -1 if the trade was negative. So the output file would look something like 1 1 1 1 1 -1 -1 -1 1 1 -1 -1 . . . What is the best way to implement this? I looked at the Sample PNL strategy and other trade data values but did not find this type of idea anywhere.
2) How would I code the first friday of the month? I understand code such as if (Time[0].DayOfWeek == DayOfWeek.Friday) will show true if it is Friday but how to decipher if it is the first Friday of a month?
Cheers!
GT

Comment