Hello.
I love your product and are getting much info about my strategies thanks to backtesting. But there are a few things I can't seem to accomplish, or more likely don't understand how to.
I usually trade long term end of day.
So lets say I buy 1 position for a maximum of 10 position every bar which closes with rsi < 30. Easy.
So now I have 10 positions. Now I want to sell one and only one, every bar when rsi > 70. How do I do that using rule bases strategy preferably, or perhaps by code?
Advanced version
Sell 1 of remaining positions at end of bar if rsi > 70
Sell 2 of remaining positions at end of bar if rsi > 80
Sell all remaining positions at end of bar if rsi > 85
Just trying to understand if its possible at all
Regards
Size:
Color:
Size:
Color:
Hello Eugene
Wow that was a quick answer. I don't use RSI, it was just to describe the principle.
I have looked into the splitting thread on wiki, but I thought the splitting was for other purposes. I don't want to split it.
I'm looking for the equivalent of "Buy n at close" and "Sell n (or all) at close" where n is the number of positions or shares.
If I always split any position size into 10 for instance, then if I have only accumulated 5 positions, wouldn't a 1/10 split create a position size with 0.5 value? I want to avoid that since I don't know how many positions I may have accumulated over time. Or is that adjustable?
In other words. If I buy 100 shares a time for a total maximum of 1.000 shares (but could end up with 300 or 700 as well) during an accumulation period of unknown length, then I only want to sell 100 shares of the remaining at a time under certain conditions. Unless a particular condition occurs, then I want to sell all remaining.
Thanks in advance
Size:
Color:
Certainly you can avoid splitting and instead manage (liquidate) positions one by one. Built-in Strategy called "RSI Agita" might serve as an illustration. You need to preface the exit with an RSI (or whatever) condition.
See Positions and ActivePositions in the QuickRef (strike F11 key), and for more examples you might want to search for these keywords in the "Open Strategy" dialog after downloading all public strategies.
Size:
Color:
OK thanks, I'll look into that
Cheers
Size:
Color: