Scanning output & few other queries of amibroker

cheap

Active Member
#1
Hey,

Code:
SetOption("NoDefaultColumns", True ); 

AddColumn( Null, "Symbol", 1, colorDefault, colorDefault, 70 );
AddColumn( Null, "DateTime", 1, colorDefault, colorDefault, 150 );
AddColumn( Null, "BULLBAR", 1, colorDefault, colorDefault, 70 );



dt = DateTime(); 


for(i=1; i<=60; i++) { 

   TimeframeSet(i * in1Minute);
   
   O1 = Ref(O,-1);  C1 = Ref(C,-1); MP = (H+L)/2;  R = H-L;
    blEngulf = ((O1>C1) AND (C>O) AND (C>=O1) AND (C1>=O) AND ((C-O)>(O1-C1)));
    bullbar= C>O; 


 
   addRowStr = Name() + "\t";
   addRowStr = addRowStr + DateTimeToStr(LastValue(DateTime()))+ "\t"; 
 

   x= StrFormat("%02g-min", i);
   addRowStr = addRowStr + WriteIf(bullbar,    x, "\t");

 filter = 1;
  if(LastValue(Filter))
    {
        addRow(addRowStr );
    }
  TimeframeRestore();  
 
}


when we do exploration , value get changed.
in alert , Is it possible to get value of certain pattern or desire output and it doesn't change there >>

this exploration gives bullbar output .

aLL THE RESULT OF BULLBAR GOES TO ALERT OUTPUT LIST AND IT DOES GET UPDATED AND NOT GET DELETED, when we DO EXPLORATION, NEW VALUE COMES AND IT GET UPDATED IN ALERT OUTPUT AND THAT PREVIOUS VALUE NOT GET CHANGED AND FURTHER EXPLORATIONG CONTINUES.

cHow to do it?

I've posted this query , query might be long, so I made separate thread.
http://www.traderji.com/amibroker/90119-simple-coding-help-no-promise-412.html#post1152933
 

cheap

Active Member
#2
Hi,
I guess question is clear, if not let me know.



apart from main question, why column is not sorting out results without leaving gaps between rows?

it's showing gap between timeframe , it's not sorting out? I'm not talking about clicking on column and then sorting out.

one answer before raws it was filter =1; that does scan everything.
when i put filter =0 ; it's showing nothing .
How to sort out gaps in between them? you need to scroll every time if you're having long loop.


2 . i.e. Can you send alert output to exploration like whatevery signal comes under column within last 5 minute timeframe => that goes to Alertif section to see,
and yes again , it doesn't go away , and after that another signal get added there. basically it's same question as first one with just adding within last 5 minute,
i.e. in last 5 min.

x y z
1m 5m 10m
15m 25m 100m

whatever it's it just goes to alertif column and if it's possible to see any other application that goes there and it just get added. same first question.
 
Last edited:

cheap

Active Member
#3
Hi,
I guess question is clear, if not let me know.



apart from main question, why column is not sorting out results without leaving gaps between rows?

it's showing gap between timeframe , it's not sorting out? I'm not talking about clicking on column and then sorting out.

one answer before raws it was filter =1; that does scan everything.
when i put filter =0 ; it's showing nothing .
How to sort out gaps in between them? you need to scroll every time if you're having long loop.


2 . i.e. Can you send alert output to exploration like whatevery signal comes under column within last 5 minute timeframe => that goes to Alertif section to see,
and yes again , it doesn't go away , and after that another signal get added there. basically it's same question as first one with just adding within last 5 minute,
i.e. in last 5 min.

x y z
1m 5m 10m
15m 25m 100m

whatever it's it just goes to alertif column and if it's possible to see any other application that goes there and it just get added. same first question.
Anyone? I guess iexplained it with a pic.

How to remove those gap between timeframe i showed it with diagram ,
 

cheap

Active Member
#5
>>>How to remove those gap between timeframe i showed it with diagram

filter = bullbar;
Hey boufalo,
If we're using more than two column
How do we do it?

I tried to use
i.e. three column bullbar xbar ybar it's three vertical column

How to we remove all gaps of timeframe between them?

I've tried to use
filter = bullbar OR xbar OR ybar;
but it didn't helped. it again showing same way timeframe with gaps between them as showed in pic.

then i used filter = bullbar AND xbar AND ybar;

it showed nothing .
 

sr114

Well-Known Member
#6
Hey boufalo,
If we're using more than two column
How do we do it?

I tried to use
i.e. three column bullbar xbar ybar it's three vertical column

How to we remove all gaps of timeframe between them?

I've tried to use
filter = bullbar OR xbar OR ybar;
but it didn't helped. it again showing same way timeframe with gaps between them as showed in pic.

then i used filter = bullbar AND xbar AND ybar;

it showed nothing .
try to understand the difference between "AND" and "OR"
 

cheap

Active Member
#7
try to understand the difference between "AND" and "OR"
OR select one among them, and AND scan condition that is presented there.

what do i need to use for this ? this both way not working .

Code:
i.e. three column bullbar xbar ybar it's three vertical column

How to we remove all gaps of timeframe between them?

I've tried to use 
filter = bullbar OR xbar OR ybar;
but it didn't helped. it again showing same way timeframe with gaps between them as showed in pic.

then i used filter = bullbar AND xbar AND ybar;

it showed nothing .
if any confusion in question, kindly let me know.
you already made afl for more than two columns, if you want to remove gap between what would you use it ?

this is from your pic


If you want to remove gap between timeframe, as i mentioned above in pic. hows you do it in all columns? just leave that barback column, then?if there's no barback in afl
I ain't talking about tell me whole afl, just how do you sort out that columns in upper case? without gap between them in all columns?
 
Last edited:

sr114

Well-Known Member
#8
OR select one among them, and AND scan condition that is presented there.

what do i need to use for this ? this both way not working .

Code:
i.e. three column bullbar xbar ybar it's three vertical column

How to we remove all gaps of timeframe between them?

I've tried to use 
filter = bullbar OR xbar OR ybar;
but it didn't helped. it again showing same way timeframe with gaps between them as showed in pic.

then i used filter = bullbar AND xbar AND ybar;

it showed nothing .
if any confusion in question, kindly let me know.
you already made afl for more than two columns, if you want to remove gap between what would you use it ?

this is from your pic


If you want to remove gap between timeframe, as i mentioned above in pic. hows you do it in all columns? just leave that barback column, then?if there's no barback in afl
I ain't talking about tell me whole afl, just how do you sort out that columns in upper case? without gap between them in all columns?
Because in that particular time frame the condition never happened. simple
 

cheap

Active Member
#9
Because in that particular time frame the condition never happened. simple
Can you differentiate difference between




In upper pic he never made it like because 1 to 19 minute timeframe there's nothing so there should be 19 rows should be blank , and in his next column it's 28 minute,not 27 rows gonna be blank.
I guess you got question now. need to make columns like him.

I guess you didn't read my question .
 

sr114

Well-Known Member
#10
Can you differentiate difference between




In upper pic he never made it like because 1 to 19 minute timeframe there's nothing so there should be 19 rows should be blank , and in his next column it's 28 minute,not 27 rows gonna be blank.
I guess you got question now. need to make columns like him.

I guess you didn't read my question .
so how r u going to make columns like him?