Hi Matt,
Last question, the code is working however I'm loosing some of the data from the start of the series.
For example, the threshold starts 01 mars 1974 however the signal is starting only from 14 october 1977.
I have enclosed the program and the expected series.
Thanks alots.
It's really appreciated to help me on your free time.
Sudesh
Help in changing my codes from series to matrix
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
Re: Help in changing my codes from series to matrix
- Attachments
-
- backtesting_eviews_optimisation_signal pourcent.prg
- (5.63 KiB) Downloaded 250 times
-
- Optimisation signal pourcent.xlsx
- (123.11 KiB) Downloaded 267 times
-
- EViews Developer
- Posts: 563
- Joined: Thu Apr 25, 2013 7:48 pm
Re: Help in changing my codes from series to matrix
That's almost certainly due to the lag dependence in the signal, i.e., for the first observation in your sample {%sig}(-1) is NA, which propagates to later observations until you get to a case number that doesn't depend on {%sig}(-1), such as case number 9 in the example you posted. In the statement that generates the signal values, try replacing all the "{%sig}(-1)" with "@nan({%sig}(-1), 0)". That will cause NAs to be treated as a signal of 0.
Re: Help in changing my codes from series to matrix
Thanks alots Matt..
Who is online
Users browsing this forum: No registered users and 56 guests