View Single Post
  #102 (permalink)  
Old 11-26-2006, 09:14 PM
Wackena's Avatar
Wackena Wackena is offline
Senior Member
 
Join Date: May 2006
Posts: 216
Wackena is on a distinguished road
Quote:
Originally Posted by elepoutre
I must have missed something...

In the attached report i have set up initial sl at 30...and if you check the trades in the report the sl are placed at 70 pips!

somebody could explain what i did not understand?


thank you


emeric
elepoutre,

Here is the code that sets StopLoss for a Sell.

Code:
sl=NormalizeDouble(SellPrice+InitialStop*Point + (MaxTrades-OpenOrders)*Pips*Point, Digits);
1st order, StopLoss will be set at InitialStop value. As more orders are opened at same time, Stoplosss will be increase by calculation above.

Wackena
Reply With Quote