@page @model DCACalculatorModel @{ ViewData["Title"] = ""; } @section Styles { } @{ string maxCostCaption = "Initial"; }

DCA Calculator

Use this calculator to help build a proper setup for your Profit Trailer settings for DEFAULT_max_trading_pairs, DEFAULT_@maxCostCaption.ToLower()_cost and DCA PROFITPERCENTAGE buy levels.
To do so enter your available balance and adjust the values to whatever you consider the best setting for your parameters.
If you are having problems understanding the different modes, please read this wiki article.

@if (Model.PTMagicConfiguration.GeneralSettings.Monitor.DefaultDCAMode.Equals("simple", StringComparison.InvariantCultureIgnoreCase)) {
} else {
}
In simple mode the DCA calculator will only take your number of pairs, DCA levels and initial cost and will calculate the necessary fundings for you. In this mode the ANDERSON method is quite inaccurate as it will calculate the DCA steps by using the the simple proportional cost for each DCA level, regardless of what level the price may be at the time the DCA buy will happen.
In advanced mode the DCA calculator will also take your DCA PROFITPERCENTAGE buy levels into account for the calculation of the necessary fundings for you. In this mode the ANDERSON method is being calculated more accurate as it will calculate the necessary costs using your buy levels to calculate the actual cost of coins at the current price according to your triggers and percentages.
@{ double maxCostValue = Model.Summary.MaxCost; if (maxCostValue == 0) { maxCostValue = Model.Summary.MaxCostPercentage; } }

Please enter a valid balance value on the left to calculate results...

hidden }">

DCA Triggers

@for (int l = 1; l <= (int)Model.Summary.DCALevels; l++) { double dcaPercentage = Model.Summary.DCAPercentage; if (Model.Summary.DCAPercentages.ContainsKey(l)) { dcaPercentage = Model.Summary.DCAPercentages[l]; } double dcaTrigger = Model.Summary.DCATrigger; if (Model.Summary.DCATriggers.ContainsKey(l)) { dcaTrigger = Model.Summary.DCATriggers[l]; } }
DCA Level Trigger % Buy % Approx. Drop % Simple Cost / Pair Advanced Cost / Pair
0 @Model.Summary.BuyValue.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"))%
@l @dcaTrigger.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"))% @dcaPercentage.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"))%
@{ int maxDCALevels = 12; if (Model.Summary.DCALevels > maxDCALevels) { maxDCALevels = (int)Model.Summary.DCALevels; } }

DCA Overview

@for (int col = 1; col <= maxDCALevels; col++) { } @for (int row = 1; row <= Model.PTMagicConfiguration.GeneralSettings.Monitor.MaxDCAPairs; row++) { @for (int col = 1; col <= maxDCALevels; col++) { } }
DCA @col
@row Pairs
@section Scripts { }