Page 1 of 1

MaxContractProfit

Posted: Nov 21 2018
by kiyi0317
dear sir,

just a short question, if I close MC after market close and with open position, it seems that value1 = MaxContractProfit does not record the data before the last trade day, is it? I was experianced many times that MaxContractProfit seems do not calculated the record in last night, only keep record for the existing trade day after reopen MC. is it?

if not, how make it work to keep record since entry? thank you

brgds
Chan

Re: MaxContractProfit

Posted: Nov 27 2018
by kiyi0317
what is the difference with OpenEntryMaxProfitPerContract?

how can I calculate the max profit in the right way even after I restart MC?

brgds
Chan

Re: MaxContractProfit  [SOLVED]

Posted: Dec 14 2018
by Anna MultiCharts
Hello, kiyi0317!

1. MaxContractProfit returns the gain reached per each contract or share of a currently held position. If you need to remember this value overnight, then you’ll need to send it to a file and then read it from there via some dll.

2. OpenEntryMaxProfitPerContract returns a numerical value, indicating maximal profit (or loss) per contract of specified entry in dollars for the time since entry order execution.

For calculating max profit it will be required to add a corresponding calculation into your code.