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
MaxContractProfit [SOLVED]
- Anna MultiCharts
- Posts: 560
- Joined: Jul 14 2017
- Has thanked: 42 times
- Been thanked: 141 times
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.
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.