[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coding MaxLoss and ProfitTarget Stops



PureBytes Links

Trading Reference Links

The closest we can come to the canned Max Loss or Profit Target
stop is to exit a trade at the close of the particular bar.  I have not
found a way to replicate the "Exit at Stop Price" option.

You must define a variable that captures the entry price, and
stores that price using the PREV function until the exit-triggering
event has occurred.  It's kind of unwieldy, but if you want an
entry-price-dependent exit, it works.



----- Original Message ----- 
From: "Herman van den Bergen" <psytek@xxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Saturday, August 25, 2001 11:24 AM
Subject: Coding MaxLoss and ProfitTarget Stops

> Has anybody succeeded handcoding the Maximum Loss and Profit Target Stops
> such that System Tester Stop results are identical to using the custom
> coded stops?
> 
> I am having great difficulty getting similar results and would appreciate
> any suggestions or pieces of code that can help me.
> 
> Thanks!
> Herman.