Or use AddRow() function to get vertical output with patterns being column header.
Hi,
AddRow() is not giving output.
This is the code get used
How to add bull bear column with Addrow with timeframe?
AddRow() is not giving output.
This is the code get used
Code:
SetOption("NoDefaultColumns", True );
AddTextColumn( Name(), "Ticker",1, colorDefault,colorDefault, 50);
AddTextColumn( FullName(), "Company",1, colorDefault,colorDefault,250);
AddColumn( DateTime(), "Date", formatDateTime, colorDefault,colorDefault, 80 );
[COLOR="Red"][B]AddTextColumn("#", "BullBar");
AddTextColumn("#", "BearBar");
AddTextColumn("#", "Bull Engulfing")[/B][/COLOR];
for ( i = 20; i <= 50; i++ ) // 1minute to 30minute
{
TimeFrameSet( i * in1Minute );
O1 = Ref(O,-1);
C1 = Ref(C,-1);
MP = (H+L)/2;
R = H-L;
//-- Condition
blBar=C>MP AND O>MP;
brBar=C<MP AND O<MP;
blEngulf = ((O1>C1) AND (C>O) AND (C>=O1) AND (C1>=O) AND ((C-O)>(O1-C1)));
brEngulf = ((C1>O1) AND (O>C) AND (O>=C1) AND (O1>=C) AND ((O-C)>(C1-O1)));
ss = ((R>4*(O-C)) AND ((H-C)/(.001+R)>= 0.75) AND ((H-O)/(.001+R)>= 0.75));
filter = blBar OR brBar or ss OR blEngulf OR brEngulf;
[COLOR="Red"][B]AddRow( StrFormat( ""+i+"%g minutes" ) );
[/B][/COLOR]
TimeFrameRestore();
}
Last edited: