HI all,
how I can set the breakeven who offset (plus 3 tick for example) respect the entry level?
thanks,
tradingest
breakeven with offsett [SOLVED]
-
- Posts: 283
- Joined: 05 Dec 2014
- Location: Italy
- Has thanked: 53 times
- Been thanked: 3 times
-
- Posts: 283
- Joined: 05 Dec 2014
- Location: Italy
- Has thanked: 53 times
- Been thanked: 3 times
Re: breakeven with offsett [SOLVED]
So you want to have a stop set to 3 ticks above entry price for example after your paper profit in the trade reaches a certain level? For example if you are plus 6 ticks in the trade, at that point a stop would be placed at 3 ticks above your entry price?
One way I can think of doing this is to hold a variables value based on the moment position profit goes from say 5 ticks to 6 ticks. You'd need to use positionprofit and then a variable PP1 for example that references the prior positionprofit and when position profit = 6 ticks and PP1 = 5 ticks then var1 = 6 for example.
Then you have a conditional statement that says something like the following.
One way I can think of doing this is to hold a variables value based on the moment position profit goes from say 5 ticks to 6 ticks. You'd need to use positionprofit and then a variable PP1 for example that references the prior positionprofit and when position profit = 6 ticks and PP1 = 5 ticks then var1 = 6 for example.
Then you have a conditional statement that says something like the following.
Code: Select all
IF MP > 0 // if you are long
AND var1 = 6 // the variable that holds a value
Then begin
sell next bar at entry price + (3 * tick size) stop;
End;