Monthly signals to use for daily system

Hi,

I want to use a Monthly condition in a Daily system, e.g.:

Monthly_Buy_Condition = Close > MA ( C,20) ; // monthly time frame

// My Daily System

BUY = Close > MA (C, 12) // daily time frame
AND
Monthly_Buy_Condition ; // filter daily signal with monthly condition

SELL = Daily sell conditon ;

The idea is to filter daily signals with a Monthly condition.

Thanks and regards.

Rodolfo

Use TimeFrameSet() / TimeFrameRestore() to calculate your monthly condition. Then use TimeFrameExpand() to expand the monthly array into a daily array.

Matt

2 Likes

Thank u Matt.

Sorry for such a basic question.

Rodolfo