I have the standard Percent stop loss script (see code below) it works for most symbols but it sends the exit order in Symbol EURUSD at the entry price and not at the inputed percentage stoploss price. It works ok for other symbols like AUDUSD etc. Any ideas what may cause this?
Thanks
Code: Select all
inputs: StopLossPct( .05 ) ;
SetStopShare ;
if MarketPosition = 1 then
SetStopLoss( EntryPrice * StopLossPct )
else
Sell ( "PctStopLX-eb" ) next bar at Close * ( 1 - StopLossPct ) stop ;
this answer is not related to your calculation question...
see post #5
viewtopic.php?f=16&t=10811
ps. you don't need "MarketPosition=1" because SetStopLoss orders will
only be sent if you have a position.