I apologize if this is already asked. I browsed through the forums but didn't see anything related to my questions.
1. In the initialization section, can I set stop loss/profit scales based on conditions?
Say, if long profit/loss 4/2. If short, profit/loss 6/2
2. How do I implement a 'let ride' order. I'm sure it has other common terms. I just want to say if profit reaches 6, only close position if pull back 2, otherwise let it go as far as it can. But if it pulls back 2 again, close position.
3. How do I save a value in a variable for later computation? I want to say at this moment, get the price, save it. At some point later, current price is less then saved price, then buy.
I'm sure these are just simple to the expert ninjas. It's hard on an old brain like mine. Please give me yes/no and pseudo or better yet actual code.
Thanks muchly...
Chan
Comment