help is need in a Market Scanner study

Questions about MultiCharts and user contributed studies.
User avatar
arnie
Posts: 1593
Joined: 11 Feb 2009
Location: Portugal
Has thanked: 481 times
Been thanked: 512 times

help is need in a Market Scanner study

Postby arnie » 23 Aug 2009

Hi.

I'm trying to implement the following study in the Market Scanner,

Code: Select all

variables:
dROC (0),
wROC (0),
mROC (0),
yROC (0);

//if CloseD(1) > 0 and CloseW(1) > 0 and CloseM(1) > 0 and CloseY(1) > 0 then
dROC = ((close / CloseD(1)) - 1) * 100;
wROC = ((close / CloseW(1)) - 1) * 100;
mROC = ((close / CloseM(1)) - 1) * 100;
yROC = ((close / CloseY(1)) - 1) * 100;


Plot1(dROC, "Daily ROC");
Plot2(wROC, "Weekly ROC");
Plot3(mROC, "Monthly ROC");
Plot4(yROC, "Yearly ROC");
but as we can see in the image attached, things aren't happening as expected :(

Since I need a years data to plot the yearly ROC indicator, obviously I chose a years resolution. The problem appears to be the fact that I cannot plot daily, weekly and monthly ROC using that resolution.

Is it me or this makes no sence? :?

When plotting the same indicator on a chart all works perfectly.

Another question, that NetChg and Net%Chg is based on what? With that yearly resolution those values are not the year and even less the daily performance :?


Fernando
Attachments
scanner.GIF
(88.27 KiB) Downloaded 289 times

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 11 Sep 2009

You need to have more than a year of history data.


NetChg = lastprice - previous close ;

Net%Chg = ( NetChg / (previous cose) ) * 100 ;


Return to “MultiCharts”