Trading Signal Problem

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

rmoralesaramburu
Posts: 52
Joined: Mon Nov 18, 2013 9:09 am

Trading Signal Problem

Postby rmoralesaramburu » Mon Jul 06, 2015 2:32 pm

Hi,

I am trying to create a trading signal based on breakouts. The breakouts gave me signals in a +1, -1 basis. The problem is that I have a bunch of zeros in the middle. I would like the following

"If the signal is -1...stays at -1 until a +1 appears and then stays at +1 until a -1 appears..."

This way, I will stay invested until a sell signal (-1) appears!

Can I modify the vector in the attached workfile to show what I am asking for?

Hope you can help me!! thanks!!
Attachments
Problem.WF1
Workfile
(25.18 KiB) Downloaded 630 times

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests