signal tester - jan and feb is negative ;how does the future look

Hi Team,

m1 = MONTH();
m2=MONTH(PERIODAMOUNT=2);
q1=m1 IsDown ;
q2=m2 IsDown ;
q3=q1 and q2;
q3 and MONTHNUM() ChangeTo 3

is the above correct?

thanks,

Hi,

The Month() function changes the time frame to monthly bars, setting it to two means each bar would consist of two months’ data. It is MonthNum() you would need to set at the start.

To mark the monthly March bar after Jan and Feb were both down, I would use this script (designed to be run on a monthly time frame):

//Find Month Numbers
V1 = MONTHNUM() ;
//Find where Close is Down from Open
V2 = CLOSE() < OPEN() ;
//Find where Feb is Down
V3 = V1 == 2 and V2 == 1;
//Find where Feb and Jan are both Down
V4 = V3 and V2[1] == 1;
//Find March
V5 = V1 == 3;
//Find March after Feb and Jan are both down
SIGNALAFTER(V4,V5)

Here is how it looks on the chart (blue arrows):

Ex5