Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 00:30:54 +0000



Post From: MOVETO_BE_ACTION_TYPE_TRAIL_TO_BREAKEVEN

[2013-05-23 09:02:19]
User32496 - Posts: 26
can you please provide a detailed explanation or example for the use of trailing stop?
and moving to b_e?
the example code is working only under the assumption that there are 2 target used.
i would like my stop move to b_e after the position move in my direction 4 ticks. couldn't do this

tried to use this:
NewOrder.StopAllOffset = 10*sc.TickSize;NewOrder.AttachedOrderStopAllType = SCT_ORDERTYPE_STEP_TRAILING_STOP_LIMIT;
NewOrder.TrailStopStepPriceAmount = 1 * sc.TickSize;
NewOrder.TriggeredTrailStopTriggerPriceOffset=4*sc.TickSize;
NewOrder.TriggeredTrailStopTrailPriceOffset=1*sc.TickSize;
or this
Set up a move to breakeven action for the common stop
NewOrder.MoveToBreakEven.Type=MOVETO_BE_ACTION_TYPE_TRAIL_TO_BREAKEVEN;
NewOrder.MoveToBreakEven.BreakEvenLevelOffsetInTicks= -3;
NewOrder.MoveToBreakEven.trailTRAIL_TO_BREAKEVEN= 1;

please advice
thanks