Easy Language: MaxPositionProfit Error and Consecutive Count Error
Budget: $30 – $250 USD
have several strategies that I had translated to TS. Currently I am having an issue with the way the MaxPositionProfit (MPP) is being calculated after offsetting part of the position or after adding to the original position. The MPP jumps suddenly after the offset to a number that hasn't been hit yet on the chart. As if the MPP was being replaced with the booked profit after the partial covering of the position. When adding to the position the MPP may cut in half. I attribute this to some bad math I can't locate in the strategy.
The second issue has to do with two limit orders that sometimes count the number of consecutive up/down closes after the entry incorrectly. One of the developers I hired for this leg of the project changed the code on these two orders. I'm not sure why. It looks like it should work by my eye but it's not 100%. My original consecutive code format is used in other parts of the strategy and works fine. So, I need someone to tweak the code in this format or you can replace it with my original "consecutive" code format and adjust it to the limit orders specifications.
Of lesser importance are some inputs in the "Customize Strategy" window that were accidentally created or I do not use a variable for anymore. They should be removed.
The second issue has to do with two limit orders that sometimes count the number of consecutive up/down closes after the entry incorrectly. One of the developers I hired for this leg of the project changed the code on these two orders. I'm not sure why. It looks like it should work by my eye but it's not 100%. My original consecutive code format is used in other parts of the strategy and works fine. So, I need someone to tweak the code in this format or you can replace it with my original "consecutive" code format and adjust it to the limit orders specifications.
Of lesser importance are some inputs in the "Customize Strategy" window that were accidentally created or I do not use a variable for anymore. They should be removed.