I’m going to go out on a limb and super naively design a system. Disclaimer: I have read next to nothing about bitshares; I feel someone with more knowledge should speak to that.
As a basic beginning assumption, let’s assume that 1 NSR is bought and sold every second on whatever orders are there on an NSR/NBT pair, we can correct this later. Next, assume there is NBT/BTC and NBT/USD volume. We wish to take control of the market such that we reach a target price, defined later. If we take the difference between the target price and most recent price, we receive a number that will correspond to a volume for the resultant custodian order (positive is a buy wall, negative is a sell wall). If we continue to assume that 1 nsr hits both buy and sell walls every second, by having the custodial wall on just one side of the market we can push the price up and down. In reality, the buy and sell volumes are more sporadic but an integral and a differential portion of the algorithm should help to settle the market down, as well as tuning the gains on the feedback loops.
Anyway, the really interesting part is the target price. It should be something like:
P = ($1/P_NBT_BTC) * (P_NSR [V_30min/V_24hr] + P_NSR_24hrAvg*[1-V_30min/V_24hr])
The relevent price of NSR and NBT should be determined using a daily volume weighted average of the most recent trading prices across exchanges, excluding the NSR/NBT markets because the NSR price must be treated as an unknown. If the price deviates more than 1% from the target price, a paid request for decentralized liquidity (like in the Nupool) would be put on auction for only one side of the NSR/NBT market. This would create custodians who risk selling/buying their NSR for/with NBT.
Let me use an example: Everybody loves NBT and the motions just can’t print em fast enough to keep up with demand. The price according to BTC/NBT markets starts trending upward, near $1.1. Janet, a custodian, holds 10 NSR in the Nupool while Billy, a trader, has 5 NBT and wants to sell it for NSR, but at the BTC/NBT and NSR/BTC price points without incurring double fees. The price will slowly be lowered until he snatches it up just above the proper price points. Janet now has a little less than 5 NBT with nothing to do, so she puts it up on the BTC/NBT pair as NBT liquidity, helping to push the price back down to $1.
As an additional mechanism, I would allow automated and semi-instantaneous unit burning at the target price, so NBT can be burned for NSR and NSR can be burned for NBT (paying the network fee each time for each unit, of course). I’ll explain why with another example:
Ray holds 100 NBT and just wants to buy NSR without a care. The price of NBT has been fixed at $1 for a long time now, and he feels confident about the investment. He spikes the price of NSR/NBT, giving a bunch of custodians NBT. Those custodians can then burn their NBT for NSR and return the price to normal after a few confirmations on the network.
I fantasize about adding a term to the price that compares the current price to the fraction of the # of NBT / # of NSR with maybe some stuff about volumes and some square roots sprinkled in, but I think the simpler concept of just leaning on BTC as an outside asset works well. If possible, we should try to lean more on PPC instead of BTC, but practically the structure is already there for BTC.