Profile Picture

Implement Trailing Stop

Posted By ywlee 3 Years Ago
Message
Posted Thursday May 29 2014
Hi

A few queries so that I can have a better understanding. I wasnt able to get the whole picture from the manual and also the other posts on Trailing Stops.

a/ PositionManager.SetTrailingStop

i) Do I put this under 'Startup()' with the other PositionManager statements like PositionManager.ProfitTargetType etc?
ii) the syntax is (posID, trailingstop, targetprice type). Am I suppose to define 'posID' because when I use the following there is an error:
PositionManager.SetTraillingStop(posID, 3, TargetPriceType.RelativePrice)

b/ How and where (which part of the code) would you implement the above trailing stop code using the PositionSettings method of setting TrailingStop?

Thanks!


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems