MTF timeframe scan output (Scanning Timeframe not Pattern with single timeframe)

Status
Not open for further replies.

cheap

Active Member
#11

Here the sample. play yourself.
note:I not working on Minutes.

Apply to *Filter, Range: 1 recent day(s)/ 1 recent bar(s)
PHP:
SetOption("NoDefaultColumns", True );
AddTextColumn( Name(), "Ticker",1, colorDefault,colorDefault, 50);
AddTextColumn( FullName(), "Company",1, colorDefault,colorDefault,250);
AddColumn( DateTime(), "Date", formatDateTime, colorDefault,colorDefault, 80 );


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;  	

		str  =  WriteIf(blBar, "BullBar,", "")+
		        WriteIf(brBar, "BearBar,", "")+
		        WriteIf(blEngulf, "Bull Engulfing,","")+ 
		        WriteIf(brEngulf, "Bear Engulfing,", "") +
		        WriteIf(ss,       "Shooting Star,", "");
 		str = StrLeft( str, StrLen(str)-1);      
		
		AddTextColumn(str,  ""+NumToStr(i, 1.0)+"-Min"); 
	TimeFrameRestore();


}
[/QUOTE]

How to change this code to in minutes?
like this


Wht do i need to change it to looks like upper?
 

KelvinHand

Well-Known Member
#12
Here the sample. play yourself.
note:I not working on Minutes.

Apply to *Filter, Range: 1 recent day(s)/ 1 recent bar(s)
PHP:
SetOption("NoDefaultColumns", True );
AddTextColumn( Name(), "Ticker",1, colorDefault,colorDefault, 50);
AddTextColumn( FullName(), "Company",1, colorDefault,colorDefault,250);
AddColumn( DateTime(), "Date", formatDateTime, colorDefault,colorDefault, 80 );


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;  	

		str  =  WriteIf(blBar, "BullBar,", "")+
		        WriteIf(brBar, "BearBar,", "")+
		        WriteIf(blEngulf, "Bull Engulfing,","")+ 
		        WriteIf(brEngulf, "Bear Engulfing,", "") +
		        WriteIf(ss,       "Shooting Star,", "");
 		str = StrLeft( str, StrLen(str)-1);      
		
		AddTextColumn(str,  ""+NumToStr(i, 1.0)+"-Min"); 
	TimeFrameRestore();


}
How to change this code to in minutes?
like this


Wht do i need to change it to looks like upper?[/QUOTE]

use addTextcolumn to display the candlestick pattern instead of display the timeframes.
then use addrow to print the timeframe (in minutes) to the respective candlestick pattern column.

i lay out the template for you to work out trash's method 1, you complete the job for trash's method 2.
i wash my hand now.

Beside, you need to check whether your amibroker version can allow AddRow() to be used.
 
Last edited:

trash

Well-Known Member
#13
To the AB beginner who made the incorrect code of post #1 and who starts yelling like a immature insecure teen elsewhere now just because of stating the truth about something. Here is some news to you, calling a code awful is an impersonal critic of a thing having gone (completely) wrong. The fact remains that the code in post #1 contains everything that it not proper. It simply is wrong. I repeat to you it is about the code but not about you. If you can't see the difference then you are even more insecure than thought.

And it doesn't matter whether you claim "Amibroker's inbuilt explore function wont be able to do that" or if you add "Amibroker's inbuilt explore function wont be able to do that. At least with my knowledge...". Both just tell that because you can't come up with a proper solution you have to make you shining bigger than you are by making the tool you don't understand yet much smaller than it is because you can't except the fact of being on the wrong end. But it fits to the current insecurity state. Basic psychology.

BTW, such explorer outputs can be done with every AB version.
Simply except the current reality of being a beginner. Nothing wrong about that personal fact. Calm down. The future will be looking differently.
 

cheap

Active Member
#14
How to add addrow() to timeframe function? what timeframe variable do i need to use for that?
addtextcolumn(pattern, "bull bar");
addrow();
what do i type there?
How to change timeframe in minute?
 

cheap

Active Member
#15
How to add addrow() to timeframe function? what timeframe variable do i need to use for that?
addtextcolumn(pattern, "bull bar");
addrow();
what do i type there?
How to change timeframe in minute?
anyone?
never used addrow() and such stuff, so i'm asking
 

cheap

Active Member
#16
with few guys help i got this
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 );


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; 

str = WriteIf(blBar, "BullBar,", "")+
WriteIf(brBar, "BearBar,", "")+
WriteIf(blEngulf, "Bull Engulfing,","")+ 
WriteIf(brEngulf, "Bear Engulfing,", "") +
WriteIf(ss, "Shooting Star,", "");
str = StrLeft( str, StrLen(str)-1); 

AddTextColumn(str, ""+NumToStr(i, 1.0)+"-Min"); 
AddRow( StrFormat( ""+i+"%g minutes" ) );
TimeFrameRestore();


}
output is this.


output is nothing like this.


http://www.amibroker.com/guide/afl/addrow.html
 
Last edited:

cheap

Active Member
#17
How to change this code to in minutes?
like this


Wht do i need to change it to looks like upper?
use addTextcolumn to display the candlestick pattern instead of display the timeframes.
then use addrow to print the timeframe (in minutes) to the respective candlestick pattern column.

i lay out the template for you to work out trash's method 1, you complete the job for trash's method 2.
i wash my hand now.

Beside, you need to check whether your amibroker version can allehow AddRow() to be used.[/QUOTE]

yes it's ami6+, i can see addrow() function in help section
 

cheap

Active Member
#18
use addTextcolumn to display the candlestick pattern instead of display the timeframes.
then use addrow to print the timeframe (in minutes) to the respective candlestick pattern column.

i lay out the template for you to work out trash's method 1, you complete the job for trash's method 2.
i wash my hand now.

Beside, you need to check whether your amibroker version can allehow AddRow() to be used.
yes it's ami6+, i can see addrow() function in help section[/QUOTE]


Hi,
I've tried to ask few coder name , they can't able to solve it .
Can you modfiy codes, as i'd post 16.
it seems like ,other than few names, no one can solve it .
if guys who were used to do coding for 5+ years , can't solve it, how can i?
 
#19
yes it's ami6+, i can see addrow() function in help section


Hi,
I've tried to ask few coder name , they can't able to solve it .
Can you modfiy codes, as i'd post 16.
it seems like ,other than few names, no one can solve it .
if guys who were used to do coding for 5+ years , can't solve it, how can i?
Have you considered that people are not interested in spoon feeding you with the solution?

-- no1lives4ever
 
Last edited:

KelvinHand

Well-Known Member
#20
yes it's ami6+, i can see addrow() function in help section
Hi,
I've tried to ask few coder name , they can't able to solve it .
Can you modfiy codes, as i'd post 16.
it seems like ,other than few names, no one can solve it .
if guys who were used to do coding for 5+ years , can't solve it, how can i?
Very easy work. :cool:

AddTextColumn("#", "BullBar"); ....etc above the loop.


inside the loop, below the filter
just do the AddRow() according to CHANGES FOR VERSION 5.91.0.


if your coders are good, they can spot how to do.

I never do AddRow() before, this is my first time within 1 hours, my past many years of programming experience don't help.

only:
Trial by Error.
sense of documentation error.
read development log.
doing command function test.

that help.

I Not CHEAP you know!!!:lol:
 
Last edited:
Status
Not open for further replies.

Similar threads