Re: MTF timeframe scan output (Scanning Timeframe not Pattern with single timeframe)
I guess i tried fully simplify question as much as i can .
Kindly give your suggestion.
THINGS NEEDED:
1. BUY CONDITION , WITHOUT THIS NEITHER CAN PLOT ALERTIF NOR PLOT ARROW.
AlertIF( Buy, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 1 );
PlotShapes( shape, IIf( Buy, colorGreen, colorRed )
Buy = Exrem(Buy,Sell);
Sell =Exrem(sell,Buy);
2. WE NEED TO MAKE BUY CONDITION :
FIND BULLBAR PATTERN BETWEEN 10min. to 15min. AND FIND BULLBAR
PATTERN BETWEEN 1min. to 5min.
if there are bull bar between in both two condition . we make it buy condition .
for(i=1; i<=5; i++) {
bullbar = C > O; [if there is a bullbar, between 1 to 5 min.]
}
HOW DO YOU APPROACH IT? AGAIN KINDLY ANSWER IN CODING WAY.
1. BUY CONDITION , WITHOUT THIS NEITHER CAN PLOT ALERTIF NOR PLOT ARROW.
AlertIF( Buy, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 1 );
PlotShapes( shape, IIf( Buy, colorGreen, colorRed )
Buy = Exrem(Buy,Sell);
Sell =Exrem(sell,Buy);
2. WE NEED TO MAKE BUY CONDITION :
FIND BULLBAR PATTERN BETWEEN 10min. to 15min. AND FIND BULLBAR
PATTERN BETWEEN 1min. to 5min.
if there are bull bar between in both two condition . we make it buy condition .
for(i=1; i<=5; i++) {
bullbar = C > O; [if there is a bullbar, between 1 to 5 min.]
}
HOW DO YOU APPROACH IT? AGAIN KINDLY ANSWER IN CODING WAY.
Kindly give your suggestion.
Code:
SetOption("NoDefaultColumns", True );
AddColumn( Null, "Symbol", 1, colorDefault, colorDefault, 70 );
AddColumn( Null, "DateTime", 1, colorDefault, colorDefault, 150 );
AddColumn( Null, "bar", 1, colorDefault, colorDefault, 70 );
dt = DateTime();
for(i=1; i<=60; i++) {
TimeframeSet(i * in1Minute);
up= C>O;
bar= Name() + "\t";
bar= bar+ DateTimeToStr(LastValue(DateTime()))+ "\t";
x= StrFormat("%02g-min", i);
bar = bar+ WriteIf(up, x, "\t");
filter = up;
if(LastValue(Filter))
{
addRow(bar );
}
TimeframeRestore();
}
Last edited: