Roger Posted April 27, 2021 Report Posted April 27, 2021 Hello, Would it be possible to put a Pace column in Portfolios? Thanks, Roger Quote
0 Jerry Medved Posted April 27, 2021 Report Posted April 27, 2021 Not directly. However, as a workaround, you can do so using the scan machinery in the portfolio. Create a paintbar/scan that has PACE indicator on it. Can be anything. Then switch to “Advanced Mode” on top. Replace the code displayed to just be: public void MainCalculation() { SetScanResult(Pace_Line); } That way there is no computation. It just sets the result of the scan to the Pace value. Save that paintbar. Let call it "Pace Display". Then, on the portfolio, go to the SCANNER tab. 1. Select the "Pace Display" Scan (the one you just created or imported) 2. UN-Select the FILTER option – you don’t want it filtering. You just want the scan to run and show results for all rows 3. Click the START button. MT will start the scan and will automatically add “Scan Result” and “Scan Date” columns. You can get rid if the Scan Date column if you want. The Scan result (or may show as just “Scan”) is the Pace value Quote
0 Roger Posted April 28, 2021 Author Report Posted April 28, 2021 Jerry, worked great. How do I change the default period and average period of the scan results to match my chart pace settings? Also how can I eliminate the digits past the digits? Results example: 4791.08449 Thanks, Roger Quote
0 Roger Posted April 28, 2021 Author Report Posted April 28, 2021 I just noticed the default settings on the scan setup. Thanks, Roger Quote
0 Jerry Medved Posted April 29, 2021 Report Posted April 29, 2021 you can changeSetScanResult(Pace_Line); to be SetScanResult(Pace_Line.ToString("#,###,##0.00")); Quote
Question
Roger
Hello, Would it be possible to put a Pace column in Portfolios?
Thanks, Roger
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.