MaxContractProfit  [SOLVED]

Questions about MultiCharts and user contributed studies.
kiyi0317
Posts: 40
Joined: 13 Apr 2016
Has thanked: 17 times
Been thanked: 1 time

MaxContractProfit

Postby kiyi0317 » 21 Nov 2018

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

kiyi0317
Posts: 40
Joined: 13 Apr 2016
Has thanked: 17 times
Been thanked: 1 time

Re: MaxContractProfit

Postby kiyi0317 » 27 Nov 2018

what is the difference with OpenEntryMaxProfitPerContract?

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

brgds
Chan

User avatar
Anna MultiCharts
Posts: 464
Joined: 14 Jul 2017
Has thanked: 31 times
Been thanked: 113 times

Re: MaxContractProfit  [SOLVED]

Postby Anna MultiCharts » 14 Dec 2018

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.


Return to “MultiCharts”