Improving Bitmex Macd Bot

Completed Posted 4 years ago Paid on delivery
Completed Paid on delivery

I have a Python Bot that trades on the Bitmex Exchange. Currently, it is just a basic bot that trades the MACD waves. When the Macd is positive it buys and when it is negative it sells. It is set up to buy a set amount on the first run, let's say it buys 150 on the first run. Then on the Macd cross negative, it sells 300 so there is 150 in a sell then on the next it buys 300 leaving 150 on the buy-side. This is all it does, very basic.

It is having a problem of not always trading on the crossover though. I think this is because it is using live data that can change. Here is what I need:

1. I want the bot on the first run to get the live data from BitMEX, then store that data. On the next check from BitMEX I want it to compare the live data it gets to the stored data from the previous block and make the trade based on that and so on during its entire program run time. This will ensure I get accurate trades and that it doesn't miss trades.

2. I want to incorporate take profit and stop-loss parameters. I want to be able to adjust these as I see fit, I would like them incorporated into the spreadsheet so I can just type into the spreadsheet in the correct field what I want them set at. There should also be a spot in the spreadsheet to enter what leverage I am currently using to the percentages of the take profit and stop loss are accurately calculated. The take profit and stop loss should be a percentage, as an example, I would maybe use 10% take profit and 5% stop loss. These orders should be placed at the same time as the trades and will be market orders.

3. This is how I want the bot to operate: On the first run it checks the current Macd and stores it, that is all. The second check from BitMEX will take the new Macd value and compare it to the stored last one, it will store this second value for the next check to compare against. If the Macd is positive on the first check and negative on the second it should execute a sell market order as well as a take profit market order and stop-loss order. If neither the stop loss or the take profit orders are triggered before the next crossing of the Macd then it should reverse the position, cancel the take profit and stop-loss orders and place new stop-loss and take profit orders. If either the take profit or stop-loss orders are triggered I want it to cancel the order that has not been triggered and then wait for the next Macd cross to start the whole thing again.

Please let me know if you have any questions or need clarification on this. This should not be to difficult to do since the bot is already made. I will share a google drive link with the bot when the project is awarded. I am not able to pay more than $50 for this job.

Python Software Architecture Trading

Project ID: #24612237

About the project

4 proposals Remote project Active 4 years ago

Awarded to:

Donc310

Hi , my name is Chris , I am specialized in writing bots for various systems , I am open to price negotiations , I can make the needed changes to your trading bot

$70 USD in 3 days
(41 Reviews)
5.2

4 freelancers are bidding on average $143 for this job

LanceCarlos

Greetings ! I am a Crypto Trader myself and already have knowledge of Bitmex's API. By reading through your description I can see that the main issue you might have is the price you are using to calculate the MACD, More

$250 USD in 5 days
(27 Reviews)
5.8