hello... i am wondering if someone could help me to express this in java:
assuming there is (exactly) 1 filled order around for this instrument i would like the strategy to
- exactly identify this order
- identify this orders direction (buy or sell)
- identify the stoploss of this order and
- change the stoploss to another value, lets say 10 pips towards the orders direction
could anyone please give me a hint how to write this in java?
can the whole thing be done within the onbar method?
...you see this java stuff is new for me
thanks for any help