PDA

View Full Version : Record Trades Sequence, Trailing Stop


jacche
14th February 2004, 04:50 PM
Hi David,
I am trying to build a Trailing Stop based on the highest HIGH value since trade entry. e.g.

TS := HighestSince(1,LongEntry,H)-2.5*Valuewhen(1,LongEntry,ATR(30))

Problem I suspect is that the High gets reset if there is a second entry trigger while I am still in trade. Can you:

1. offer any advise for how I can identify the "right" High or by avoiding the subsequent triggers

2. explain to me how Tradesim's RecordTrades sequence of processing works so that i can understand how to address question 1. i.e. i assume that all code is procesed sequentially during run time but am not sure how recordtrades handles concurrent events like triggers

many thanks in advance
rgds
jack