fdwillis
fdwillis
how to set trailing stop loss on JPY pairs? i have Trailing working for USD based pairs but fails at all JPY pairs when trying to do the same 15...
@hootnot i have ``` stopLossPrice = 0.0015 optionsTrail = {'trailingStopLoss' => {'timeInForce' => 'GTC','distance' => (oandaTickerUnderscore.downcase.include?('_jpy') ? (stopLossPrice * 100).round(2) : stopLossPrice.round(4))},} updatedOrder = actingClient.account(accountToTrade).trade(openTrade['id'], optionsTrail).update ``` can anyone help?...
@hootnot this is the gem im using for a 100% pure ruby on rails project. any other suggestions?