Hi, I would like to use a filter BASED ON 5-MINUTE BARS for a 1-MINUTE PAINTBAR.
For example, I would like a doji-bar 1-minute (Condition1 below) only to show when my filter (Condition2 below) is satisfied IN A 5-MINUTE TIMEFRAME.
code:
------------------------------------------------
inputs:
Price( Close),
Length( 14),
OverSold( 0),
OverBought( 100),
OverSColor( Red),
OverBColor( Red) ;
variables: MyRSI( 0 ) ;
MyRSI = RSI( Price, Length ) ;
Condition1 = Open = Close ;
Condition2 = MyRSI > 60 ;
If Condition1 AND Condition2
then begin
PlotPB(Low, High, "doji-bar") ;
end
Else NoPlot(1) ;
------------------------------------------------
If I use this paintbar on a 1-minute chart, the RSI-values (Condition2) will be calculcated based on 1-minute values as well ... BUT I want Condition2 to be based on 5-minute values!
Would that be possible? Help would be greatly appreciated!
Thanks, SonnyPlunger

For example, I would like a doji-bar 1-minute (Condition1 below) only to show when my filter (Condition2 below) is satisfied IN A 5-MINUTE TIMEFRAME.
code:
------------------------------------------------
inputs:
Price( Close),
Length( 14),
OverSold( 0),
OverBought( 100),
OverSColor( Red),
OverBColor( Red) ;
variables: MyRSI( 0 ) ;
MyRSI = RSI( Price, Length ) ;
Condition1 = Open = Close ;
Condition2 = MyRSI > 60 ;
If Condition1 AND Condition2
then begin
PlotPB(Low, High, "doji-bar") ;
end
Else NoPlot(1) ;
------------------------------------------------
If I use this paintbar on a 1-minute chart, the RSI-values (Condition2) will be calculcated based on 1-minute values as well ... BUT I want Condition2 to be based on 5-minute values!
Would that be possible? Help would be greatly appreciated!
Thanks, SonnyPlunger