Below is some coding generated using the wizard. I have a question about C# or C.net and the subject line.
Where do I find more info on the above? I searched wiki and this site, pdf manuals, and can't seem to find anything. Am I missing something.
CODE:
Please log in to see this code.
Size:
Color:
It's here:
Wealth-Lab WealthScript Programming Guide > WealthLab.Rules Classes > DateRules.
Size:
Color:
Hi Eugene
I am trying to trade on the last day of week with daily scale setting
I see function IsLastTradingDayOfMonth and IsLastTradingDayOfQuarter but no IsLastTradingDayOfWeek.
How can I do ?
Size:
Color:
Hi Hank,
There isn't but you could use the method called
TomorrowIsLastTradingDayOfWeek in Community Components:
CODE:
Please log in to see this code.
Size:
Color:
Alternative approach:
CODE:
Please log in to see this code.
Size:
Color:
Hi!
I am trying to simulate a purchase at the opening of the 2nd day of the quarter, and a sale at the 1st day. It works on a single symbol.
But when I make a purchase of a set of symbol and make backtest on all symbols in DataSet, it doesn't work.
Tell me plz, what can be a mistake.
ie:
DataSet: aapl, baba, dis, fb, mrk, msft, pypl, qcom, twtr
Portfolio Simulation Mode: Percent of Equity 30
CODE:
Please log in to see this code.
Size:
Color:
You should to reset tiker to 0 on every bar, but the big problem is that you're not resetting the class variable
nabor between symbol runs. Anyway, here's an optimized way to do it. Notice that _naborList is cleared if executing a bar outside of the date ranges.
CODE:
Please log in to see this code.
Size:
Color:
QUOTE:
You should to reset tiker to 0 on every bar, but the big problem is that you're not resetting the class variable nabor between symbol runs. Anyway, here's an optimized way to do it. Notice that _naborList is cleared if executing a bar outside of the date ranges.
Thank you very much!
The code works as it should!
I will delve into the subtleties!
Size:
Color: