DCA Mode: Required change

Once more with a little more explanations

Example with Take Profit

Starting Information:

  • Take Profit (TP): 5%
  • Base Price: $100
  • Base Size: $10
  • Required Change (RC): 25%
  • DCA Price: $50

Step 1: Calculate the Take Profit Price

To find the take profit price, add 5% to the base price:

Take Profit Price = 100 × 1.05 = 105

Step 2: Calculate Deviation at DCA Price (from Last Order)

The deviation is the difference between the DCA price and the base price:

Deviation = (50 / 100) = -50%

This shows that the DCA price is 50% below the base price.

Step 3: Calculate Deviation at DCA Price (from Current Take Profit)

Next, calculate the deviation between the DCA price and the new take profit price:

Deviation = (50 / 105) = -52.38%

This shows the DCA price is 52.38% below the take profit price.

Step 4: Calculate Required Change to Break-Even (Before Adding a Safety Order)

To break even at the DCA price, calculate how much the price would need to rise:

Required Change = (100 / 50) = +100%

So, the price needs to rise by 100% from $50 to reach the original base price of $100.

Step 5: Calculate Required Change to Take Profit (Before Adding a Safety Order)

Next, calculate the required change to hit the take profit price at $105:

Required Change = (105 / 50) = +110%

The price needs to increase by 110% from $50 to reach $105.

Step 6: Calculate the Volume Scale (for Safety Order)

To figure out how much volume we need to add, use this formula:

Volume Scale = ( (1.05 - 1.25 × (50 / 100)) / (1.25 - 1.05) ) = 2.125

This gives us the multiplier for adjusting the volume of the safety order.

Step 7: Calculate the New Volume

Now, find out the total volume needed for the safety order:

New Volume = 10 × 2.125 = 21.25

So, the required volume for the new safety order is $21.25.

Step 8: Calculate the New Average Price

The new average price after adding the safety order can be calculated as:

New Average Price = (100 × (100 / 10) + 50 × (50 / 21.25)) / (100 / 10 + 50 / 21.25) = 59.52

So, the new average price of the position is $59.52.

Step 9: Calculate the New Take Profit Price

With the new average price, calculate the new take profit price by adding 5%:

New Take Profit Price = 59.52 × 1.05 = 62.50

So, the new take profit price is $62.50.

Step 10: Calculate the Required Change to Take Profit (from Current Price)

Finally, the required change to hit the new take profit price from the DCA price is:

Required Change = (62.50 / 50) = +25%

Result

As we have configured it, a 25% increase is needed from $50 to reach the new take profit price of $62.50.

@aressanch Do you have any questions about what I wrote above?

Yes, everything is a big question. Can you explain what you want in less than 300 characters?

Word of advice, don’t write so much text when you are trying to convey an idea, it places too much cognitive strain and people won’t bother. Also using chatgpt to output even more information makes things worse.

How shall I do it?

I briefly pointed out, why I think that Gainium’s required change doesn’t work and shouldn’t be used.

You claimed not-bug but missed to explain why you think so and also doubted my formula.

So I added a detailed example that shows that my calculations are correct and gives you the required safety order volume, such that the required change to (the separately configurable!) take profit is as configured.

Since Gainium apparently gets other results, it’s up to you to either find the bugs in my or your calculation or explain what Gainium does, so we can validate it together.

Without a solution I again want to warn everyone to use it!

I’m not going to take a pen and paper to do the formulas. I already told you I need a clear explanation. What the bot does, and what you expected it to do I less than 300 characters. If you can’t do that please stop and don’t waste my time.

I understand that you’re busy, and I appreciate you taking the time to review my report. I’ve done my best to provide a clear and concise explanation of the issue. But I also believe that a more collaborative approach would be beneficial in resolving this problem.

I also understand that the previous explanation might have been too detailed. I’ll try to simplify it once more. Here’s a concise summary of what the bot is doing and what I expected it to do.

What Gainium does

image

I cannot configure required change and take profit separately, so both become 25%!

What I expect

image

  • Required price to close the deal with a 25% required change is 0.625
  • 5% of 31.25 is 1.5625

What Gainium does

Adding funds even though the required change matches the current required change. The same is true if the configured value of it is bigger than the current.

image

What I expect

image

  • Required price to close the deal with a 25% required change is 1.05
  • 5% of 10.00 is 0.50

What Gainium does

Required change shows up under Technical Indicator and Custom but isn’t functional and then disappears forever until reload.

What I expect

Shows up under Technical Indicator and Custom and is fully functional.

What Gainium does

Hasn’t got a limit for the Maximum deal amount.

What I expect

A limit for the Maximum deal amount.

What Gainium does

Setting not-bug before the reporter agreed to it. Discourage those spending a lot of time to write detailed bug reports and provide solutions for little or even no rewards.

What I expect

You may have a guess what.

You really don’t know how to make things concise. Stop wasting my time. Dont force me to ban you.