I'm currently live trading a Robinhood Gold account. The numbers on the dashboard take a little bit of interpretation (eg the cash will be negative if you dip into your margin buying power which makes sense). You can get 'access' to the margin buying power funds by simply ordering more than your available cash. Something like this:
# set fixed additional gold buying power in variable 'context.robinhood_gold_buying_power'
net_cash = context.portfolio.cash + context.robinhood_gold_buying_power
order_value(stock, net_cash)
The above will order stock worth all the buying power you have left (ie cash + margin). Note that this is an example only. Real trading should probably calculate actual shares to order and use a LimitOrder.
I rely on the 'context.portfolio' variables and not on the 'context.account' variables. 'context.portfolio.cash' will have your Robinhood actual cash value and will be negative by any amount you dip into your margin. 'context.portfolio.portfolio_value' will have your Robinhood total equity value PLUS the portfolio.cash. If that cash is negative (because you've dipped into your margin) then it will effectively be subtracted from the equity value. To get the effective portfolio value (ie the amount you have INCLUDING the added Robinhood buying power) simply add the buying power.
# set fixed additional gold buying power in variable 'context.robinhood_gold_buying_power'
effective_portfolio_value = context.portfolio.portfolio_value + context.robinhood_gold_buying_power
order_value(stock, effective_portfolio_value * .5)
The above will order stock worth 50% of the total buying power (ie portfolio value + margin). Note that this is an example only. Real trading should probably calculate actual shares to order and use a LimitOrder.
The built in 'order_target_percent' won't take into account the added buying power. It probably shouldn't be used in live trading.
You don't get access to after hours trading but you can use the added buying power.