24-4-5 자동매매 오류 발생 그리고 자동매매를 위한 공부

in hive-138689 •  5 months ago 

어제 밤에 자동매매 매입조건이 달성되어 매수가 이루어져야 했으나 오류가 발생했다.

디스코드로 다음과 같이 왔다.

Long Entry
[주문 오류가 발생했습니다]
File /root/POA/main.py, line 155, in order
order_result = bot.market_entry(bot.order_info)
File /root/POA/exchange/binance.py, line 270, in market_entry
raise error.OrderError(e, self.order_info)
[롱 진입 주문 오류]
binance {"code":-2019,"msg":"Margin is insufficient."}
[오전 3:00]

마진증거금이 부족하다는데 이유를 잘모르겠다.
중요한 것은 프로그램-서버-봇-디스코드까지의 연결이 이루어졌다는 것이다.
거래가 이루어졌으면 몇시간 후에 마진콜을 당할뻔 했다.
올랐다가 다시 내려갔기 때문이다.

자동매매라는 것이 말은 그럴듯한데 생각보다 만만치가 않은 것 같다.
모든 상황을 다 포괄할 수 있는 프로그램이라는 것이 존재하기 어렵기 때문일 것이다.
결국 상황에 따라 매매의 전략을 각각 다양하게 만들어가는 수밖에 없을 것이다.

상승추세
하락추세
횡보

이런 상황에 대비한 모델을 각각 다 가지고 있어야 할 것 같다.
문제는 장세의 상황을 파악하는 것인데 그런 방향성을 파악하기 위한 방법과 지표도 확인해야 할 것 같다.
자꾸 이상한 방향으로 공부의 방향이 향한다.
자동매매를 위해서는 지표에 대한 심도깊은 이해와 나만의 독자적인 상황판단 방식과 능력이 필요한 것 같다.
그렇게 해야 전략을 수립할 수 있기 때문이다.

마음가는데로 공부하기로 했다.
자동매매의 방법은 코딩이 기본이기 때문에 계속 공부할 것이다. 방법론을 잘 모르면 안되기 때문이다.

공부할 것이 많고 재미도 있다.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you, friend!
I'm @steem.history, who is steem witness.
Thank you for witnessvoting for me.
image.png
please click it!
image.png
(Go to https://steemit.com/~witnesses and type fbslo at the bottom of the page)

The weight is reduced because of the lack of Voting Power. If you vote for me as a witness, you can get my little vote.

This post has been upvoted by @italygame witness curation trail


If you like our work and want to support us, please consider to approve our witness




CLICK HERE 👇

Come and visit Italy Community



Hi @steem-agora,
my name is @ilnegro and I voted your post using steem-fanbase.com.

Come and visit Italy Community

yes