Hi Jolly -- Something like this:?
TrailingStopPercentage = 2.5; // percentage points ApplyStop(StopTypeTrailing,StopModePercent,TrailingStopPercentage,1); TrailingStopPercentage is a variable that you control completely -- you name it, you assign it a value, the value can be an expression including calculations using other variables. It can be used with Optimize. See the user's manual entry for "ApplyStop". Thanks, Howard On Fri, Jun 18, 2010 at 6:34 AM, jollypollyanna <[email protected]>wrote: > > > > --- In [email protected], Joe Bolton <j0etr4...@...> wrote: > > > > Greetings, > > > Following the work-around for the trailing stop is the code I started for > the trailing Applystop, but of course the code for the "amount" is wrong. > What is there is the closest I could come to getting the right amount and > it's very wrong. > > > > Thank you for any help you can provide. > > > > > > Best regards, > > > > Joe > > ====================================================== > > Reading through this thread showed the issue had not been resolved in the > thread . That being the *setting of "amount" outside the ApplyStop > function*. > > I am thinking that "amount" cannot be initiated outside the ApplyStop > function. If this is the case could someone please confirm this? If "amount" > can be initiated outside of ApplyStop function, could a simple example be > provided please. > Thank you. > >
