Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 7/17/2005(UTC) Posts: 14 Location: Thailand
|
Hi all
Am a newbie at programming and have created a system test on an RSI consecutive day drop into a buy zone. I am trying to set up a time stop where the trade will exit if the exit condition has not already been met. So for instance I have a buy to cover formula to exit as soon as RSI goes over 75 (entering at below 10) but want to exit if this condition ahs not been met by the end of day 5 - is it possible to programme that into the system tester. Can anyone help me?
Slipperx
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 6/30/2005(UTC) Posts: 71
|
slipperx wrote:Hi all
Am a newbie at programming and have created a system test on an RSI consecutive day drop into a buy zone. I am trying to set up a time stop where the trade will exit if the exit condition has not already been met. So for instance I have a buy to cover formula to exit as soon as RSI goes over 75 (entering at below 10) but want to exit if this condition ahs not been met by the end of day 5 - is it possible to programme that into the system tester. Can anyone help me?
Slipperx
RSI(Data Array, Periods) > 75 or dayofweek() = 5
something like this?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Hey Slipperx-
Are you saying that you want to exit after 5 days with the RSI < 75? I don't undestand yet. :oops:
If RSI > 75 you exit AND If ???? not met by day 5 you exit. Is this 5 days after you buy? If so, I don't know how you would store time stop information into a variable.
You can look over the Ref function in the User's Manual, p. 268... ref(xx,-5);
Also, look over the Prev function, p. 237.
Let me know!
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 7/17/2005(UTC) Posts: 14 Location: Thailand
|
Been away for a long time so sorry for long time replying. Not really. Basically an entry condition is met if teh RSI has dropped in succesive days (5 in my test) to a figure below 10 and then the exit would be when the RSI rises to cross a threshold - say 75. But if it does not meet that threshold figure within a set number of days - say 5 days then an exit is forced through time rather than the exit arising as a result of the threshold being reached. Thus where a trade is languishing rahter than recovering as expected you would bail out after a set number of days. I wanted to test this using system tester to see which thresholds give the best results and whether employing a time based longstop for the trade would ive better results but cannot seem to programme it into the system tester.
slipperx
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.