junta / tradingview-alert-connector

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

dYdX position does not match to Tradingview Position #1

Closed layhau closed 1 year ago

layhau commented 1 year ago

I'm using "size": "{{strategy.order.contracts}}" for size of the trade, but it's getting warning "dYdX position does not match to Tradingview Position" every time a trade is placed. Is there a way to fix the trade size based on % of equity available in dYdX?

junta commented 1 year ago

For the time being, You can ignore this warning as long as your position on dydx is correct(=matches to position on Tradingview)

This warning does not affect order execution to dydx. I'll improve the logic of throwing this error later.

junta commented 1 year ago

I concluded this function is unnecessary and removed this warning alert in the latest version