Effanuel / BitMEX-scaled-orders

Bitmex trading tool using REST API and Websocket
MIT License
33 stars 15 forks source link

program improvements to be the best and more helpful. #24

Open ingnelson opened 4 years ago

ingnelson commented 4 years ago

@Effanuel I only want to use your program and not the Bitmex website. This are the improvement that needs the program are:

Number 1: Scale order using the current price , contracts , order count , apart feature This improvement use a apart feature instead range start and range end. This improvement speed up place the a scale order . This improvement do not waste time typing a range .

Example:

scale apart

scale_apart

Number 2: Limit order with post only with a feature to place the order at the current price if the option is checked or place a normal limit order at the price that we want and has a stop-loss too.

This impovement is helpful , because we can place a limit order at a specific price or at the current price when we see a imminent reversal in price.

Number 3: Trailing order automatically reopen the order until it got filled , but do not duplicate the order or stop if we manually stop it. This happen when the order is rejected by bitmex. Sometimes when we use trailing order bitmex close it and there is this error : order had excint of parcitipate do not initiate

image

i search on github, i found something that could solve the problem ? https://github.com/ctubio/Krypto-trading-bot/issues/969#issuecomment-515421009

Number 4 : feature to paste the current price maybe a little button or just clicking the current price and a feature to increment or decrease the price just clicking a arrow up or arrow down for this button too. stop-loss , range start , range end .

This improvement speed up place a order and we can concentrate on technical analysis and we do not waste time typing the orders.

example : current_price , increase, decrease

please commnet, tell me your thought,

Effanuel commented 4 years ago

I like Number 3 and Number 4 features a lot. I will try to find time to finish cross-orders, and I will probably be working on that.

I should probably use some platform to keep track of all the features, lol.

ingnelson commented 4 years ago

@Effanuel i am so glad you like that, this is a great project. one question : Talking about the trailing order , is possible this order always keep pushing or fighting to get filled , because there is something the price is moving sideways but every bar is moving up or down only $0.5, so on that $0.5 is possible the trailing order fight to get filled ?

Effanuel commented 4 years ago

@ingnelson Someone who is pushing the market will always have his orders place first. There is no way to place the order first unless you are doing a market order - some part of the order gets filled, and the other parts gets placed first in the order book.

Apart from market orders, if the spread bigger than the ticksize, this trailing order should try and minimize that gap by moving the order as close as possible to the other side. However, I don't think that happens very often, especially when voume is high.

ingnelson commented 4 years ago

@Effanuel it is good to know that . I hope you have time to implement most of the features .

ingnelson commented 4 years ago

@Effanuel if you have time , please fix the Trailing order too , because as i told you most of the time bitmex close the order order had excint of parcitipate do not initiate. thank man.

Effanuel commented 3 years ago

I currently don't know how to fix the ammending issue. If you have an order placed, and you try to ammend to an invalid price, the whole order gets canceled, which is pretty bad for a trailing order, since you want the program to atleast retry.

ingnelson commented 3 years ago

@Effanuel even if I do not have order placed bitmex does not let place the trailing order and bimex cancel the order.

I see this happen when there is too much volume on the same side I am trying to place the trailing order or the orderbook is filled with the green color or red color like bitmex does , by the way it does not matter if I use a few contracts .

So something happen that create the problem when there is too much volume on the same side we are trying to place the order.

If you think it is not possible to fix it how about this :

is it possible add a ckeck box when the box is checked the program let us place the limit buy order at "current price" minus 0.5 for buy order . we can place the limit sell order at "current price" plus 0.5 . Please. What do you think ?

ingnelson commented 3 years ago

@Effanuel happy new year . What do you think add a button to automatically select and delete the "placed orders " , this would be useful instead to delete one by one when we have many orders example on scale orders.

I will wait your response

Effanuel commented 3 years ago

@Effanuel happy new year . What do you think add a button to automatically select and delete the "placed orders " , this would be useful instead to delete one by one when we have many orders example on scale orders.

I will wait your response

Released a new version, where you can see your unfilled orders, and you are able to cancel them there.

Effanuel commented 3 years ago

Number 4:

You can now use arrow keys to increment/decrement price

zhoudaqing commented 3 years ago

@Effanuel I only want to use your program and not the Bitmex website. This are the improvement that needs the program are:

Number 1: Scale order using the current price , contracts , order count , apart feature This improvement use a apart feature instead range start and range end. This improvement speed up place the a scale order . This improvement do not waste time typing a range .

Example:

scale apart

scale_apart

Number 2: Limit order with post only with a feature to place the order at the current price if the option is checked or place a normal limit order at the price that we want and has a stop-loss too.

This impovement is helpful , because we can place a limit order at a specific price or at the current price when we see a imminent reversal in price.

Number 3: Trailing order automatically reopen the order until it got filled , but do not duplicate the order or stop if we manually stop it. This happen when the order is rejected by bitmex. Sometimes when we use trailing order bitmex close it and there is this error : order had excint of parcitipate do not initiate

image

i search on github, i found something that could solve the problem ? ctubio/Krypto-trading-bot#969 (comment)

Number 4 : feature to paste the current price maybe a little button or just clicking the current price and a feature to increment or decrease the price just clicking a arrow up or arrow down for this button too. stop-loss , range start , range end .

This improvement speed up place a order and we can concentrate on technical analysis and we do not waste time typing the orders.

example : current_price , increase, decrease

please commnet, tell me your thought,

@ingnelson hi ingnelson, What app is the screenshot? Features that look great

ingnelson commented 3 years ago

@zhoudaqing it is called GoLiquid.

https://play.google.com/store/apps/details?id=com.bitmex_trading

zhoudaqing commented 3 years ago

@zhoudaqing it is called GoLiquid.

https://play.google.com/store/apps/details?id=com.bitmex_trading

thanks bro

ingnelson commented 3 years ago

@Effanuel Hello ! it is a long time. Breakeven Quantity Do you know how to calculate the Quantity to add to a position to get breakeven when the trade is against my bias ?

example : entry a buy order with 100 contract at the price 48000 , but the current price goes down to 47999.5 ; i know if i add 200 contracts to the position i am at breakeven again and if the price goes to 47999 and i add this time 600 i am at breakeven again.

is it possible add a little button that when i click it , it place the Quantity for breakeven ?

Effanuel commented 3 years ago

For that to happen, there would need to be a current position implementation available to calculate that.

ingnelson commented 3 years ago

@Effanuel that would be useful , because it would help us when there is quantity on the account and sometimes the volume increment and shows good opportunity.

Effanuel commented 3 years ago

@Effanuel Hello ! it is a long time. Breakeven Quantity Do you know how to calculate the Quantity to add to a position to get breakeven when the trade is against my bias ?

example : entry a buy order with 100 contract at the price 48000 , but the current price goes down to 47999.5 ; i know if i add 200 contracts to the position i am at breakeven again and if the price goes to 47999 and i add this time 600 i am at breakeven again.

is it possible add a little button that when i click it , it place the Quantity for breakeven ?

The thing with this feature that calculates breakeven quantity is that the actual quantity will get incrementally big as your current position price is away from the current price. Your example shows that

ingnelson commented 3 years ago

@Effanuel yes. But if we use for example 5% or 10%for the first trade the rest quantity should be enough to cover the breakeven. Also this help us to know at what price we still can add more quantity to be at breakeven .

By the way you should add a feature that tell us at what price we still can be at breakeven with the quantity that we have in our account after we are in a trade.

This way we add quantity with logic and not randomly.

zhoudaqing commented 3 years ago

@Effanuel How many QUANTITY contracts can be opened for the account balance,This makes it easy to enter the quantity

zhoudaqing commented 3 years ago

@Effanuel @ingnelson
Other order types / strategies (https://www.sierrachart.com/index.php?page=doc/OrderTypes.html)

Effanuel commented 3 years ago

@Effanuel @ingnelson

Other order types / strategies (https://www.sierrachart.com/index.php?page=doc/OrderTypes.html)

Very useful

ingnelson commented 3 years ago

@Effanuel do you have Telegram account ? Because sometimes I have some ideas , but I feel bad sometimes , because I do not if the idea or the feature would like you. If you have Telegram account it would be more faster .

Effanuel commented 3 years ago

I don't use Telegram much, but you should be able to find me by @vecordis