Maybe somebody can point me in the right direction. I need some direction on which methods to use.
Basically simple example:
- Entry long $100
- Risk $5
- 1st target $105
- 2nd target $110
- 3rd target $115
So now I already have the EnterLongLimit() method, the SetStopLoss() and the SetProfitTarget() methods.
But now I am stuck because I want to take 1/2 profit at the 1st Target and then move the stoploss to my entry level. And then basically for each $5 move my stoploss to the previous target level.
Any ideas?
I was thinking to check my Market.Position and based on that see if the current price has reached a new target.. But when I am in a position I dont know my targets anymore. Possible to attach additional properties or something to a buy order?
Comment