Jump to content
Medved Trader Forums

weekly and monthly % change


SBCM

Recommended Posts

there is no such column available built in. However, you can implement it using scanning. Create a scan that does not do any conditional. Just sets the scan result to be Close-Close[1]

select that scan on the portfolio SCANNER tab, set it to be HISTORICAL and then set the frequency to scan to be week or month.  DO NOT set the FILTER option.  Now when you run the scan, the scan result will be the weekly or monthly change.  if you want, you can even set the column name accordingly.

Link to comment
Share on other sites

Thank you for taking the time and responding to my question. 

I must be doing something wrong. I get an error on the saved scan and if wont scan as a result. attached is a screen shot of the scan I created. 

there is no flter and the timeframe is set for weekly. 

I also tried inputting Close-Close[1] imn the to scan result box but it aslo didnt work. 

what am I doing wrong? 

Screenshot 2024-10-04 at 9.30.59 AM.png

Link to comment
Share on other sites

You can't do it in "simple" mode. Click on the button on top to switch to Advanced, then just make the scan:

public void MainCalculation()
{
    SetScanResultColumnName(0, "CustClose");
    SetScanResult(Close-Close[1]);
}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...