Horizon and Macroprocessor

Hi,

I want to implement a news shock for different horizon, and I am doing the following:
model;
.
.
.
@#for T in [“3”, “7”, “10”]
i=phi_pipi+phi_yy+nu(-@{T}));

end;

shocks;
var eps_nu;
periods 1;
values -0.025;
var zlb;
periods 1:@{T};
values 1;
end;

perfect_foresight_setup(periods=300);
perfect_foresight_solver;
@#endfor

But this is not working, could anyone please help me?

Thank you in anticipation.

Best Regards
Sahil

Please provide the full file.

Dear Professor,

Thank you for your reply. Please find that attached, and please use the run.m file to run the model. My aim is to compare the response with different horizons and produce figures as I have done in the end of the Matlab file.

Thank you.

Best Regards
SahilNK_horizon.mod (7.2 KB)
run.m (1.7 KB)

Sorry, I uploaded the wrong file. Please use this mod file instead. NK_horizon.mod (7.3 KB)

Apologies.

Try with the savemacro-command line option whether the attached file yields the desired outcome.
NK_horizon.mod (7.3 KB)