junta / tradingview-alert-connector

Integrating TradingView strategy alert and executing automated trading for futures DEXes
https://tv-connector.gitbook.io/docs/
MIT License
76 stars 42 forks source link

Size is not doubled when going from Long to Short. Skipping an exit. #8

Closed thisisloze closed 10 months ago

thisisloze commented 1 year ago

{ "exchange": "dydx", "strategy": "strat", "market": "ETH_USD", "size": "0.045", "reverse": false, "order": "buy", "position": "long", "price": "1800.8000000000002" } followed by { "exchange": "dydx", "strategy": "strat", "market": "ETH_USD", "size": "0.045", "reverse": false, "order": "sell", "position": "short", "price": "1768.7" }

Ends up being flat rather then ending up being short.

junta commented 10 months ago

Hey please set "reverse": true in your parameter.