Based on what u described u don't need an array. The date filter can b created via stringing together dates using the reserved word "or". Code: if d=1160226 or d=1160225 {or d=next d in ur list} then begin plot1(c,"c"); // test this in an indicator until you're certain it's working right // then move it to a strategy and replace your plots with buy and sell commands end; this uses an array but both ways *independently* achieve the same result. Don't use both. Pick the one u prefer. Code: var: x(0); array: ohyeah[100](0); once begin ohyeah[1]=1160226; ohyeah[2]=1160225; // complete this list for all your dates up to your 100th date ohyeah[100]=1010203; end; for x=1 to 100 begin if d=ohyeah[x] then begin plot2(c,"c"); // replace this plot with your strategy code end; end;
But u don't need your list of dates from excel. Calculate your excel conditions directly within TS and then all u need is something similar to this if condition1=true then buy next bar market else if condition2=true then sellshort next bar market; tis EasyLanguage to learn. Won't take u very long at all and u will b happy.
Wow Dratsum, Looks like that is what I needed. I can adjust it and play with it for awhile and then I will let you know how it all worked out. I really appreciate it.