Australian (ASX) Stock Market Forum

Amibroker FAQ

Haven't looked at the video (too long).
Just show a screen capture of the pattern or different versions of the pattern or simply describe what is missing.



So the current bar is allowed to be outside of previous most recent bar and both being inside the one of 3 days ago? Or current bar inside previous most recent bar and previous bar inside the bar before previous bar?

And .... last two days -> current bar and previous bar and 3 days ago -> Ref(..., -2) ?
Or last two days -> previous bar and bar before previous bar and 3 days ago -> Ref(..., -3)?

To me is sounds like this
Code:
Cond1 = High < Ref( High, -2 ) AND Low > Ref( Low, -2 ); 
Cond2 = Ref(High, -1) < Ref( High, -2 ) AND Ref(Low, -1) > Ref( Low, -2 );

And what's up with the close condition?

Either is ok, but the inside day inside the inside day has more weight, its more indicative of potential volatility, so it should be differentiated somehow....

Many thanks Trash...:xyxthumbs

CanOz
PS. The video was just for those interested in a method to apply the scans...
 

Attachments

  • aa inside days.PNG
    aa inside days.PNG
    2.3 KB · Views: 161
Either is ok, but the inside day inside the inside day has more weight, its more indicative of potential volatility, so it should be differentiated somehow....

Code:
Cond1 = Sum( Inside(), 2 ) == 2; // double inside bar

temp1 = High < Ref( High, -2 ) AND Low > Ref( Low, -2 ); 
temp2 = Ref(High, -1) < Ref( High, -2 ) AND Ref(Low, -1) > Ref( Low, -2 );
Cond2 = temp1 AND temp2; // 3 bars range

Filter = Cond1 OR Cond2; // either this or that

SetOption("NoDefaultColumns", True);
AddTextColumn(Name(),"Ticker", 1.0, colorBlack, colorGold, 70);
AddColumn(DateTime(), "Date/Time", formatDateTime, colorLightYellow, colorDarkGrey, 120);
AddColumn( Cond1, "Double Inside", 1,  IIf(Cond1, colorLightYellow, colorDarkGrey), IIf(Cond1, colorDarkGreen, colorDarkGrey));
AddColumn( Cond2, "3 bar Range", 1, colorBlack, IIf(Cond2, colorPaleGreen, colorDarkGrey));
 
Here is a different version in regards to 3 bars range

Code:
Cond1 = Sum( Inside(), 2 ) == 2; // double inside bar
Cond2 = HHV( High, 3 ) == Ref( High, -2 ) AND LLV( Low, 3 ) == Ref( Low, -2 ); // 3 bars range

Filter = Cond1 OR Cond2; // either this or that

SetOption("NoDefaultColumns", True);
AddTextColumn(Name(),"Ticker", 1.0, colorBlack, colorGold, 70);
AddColumn(DateTime(), "Date/Time", formatDateTime, colorLightYellow, colorDarkGrey, 120);
AddColumn( Cond1, "Double Inside", 1,  IIf(Cond1, colorLightYellow, colorDarkGrey), IIf(Cond1, colorDarkGreen, colorDarkGrey));
AddColumn( Cond2, "3 bar Range", 1, colorBlack, IIf(Cond2, colorPaleGreen, colorDarkGrey));

it covers cases like this one
image.png
 
Different column display if you prefer it short and simple

Code:
Cond1 = Sum( Inside(), 2 ) == 2; // double inside bar
Cond2 = HHV( High, 3 ) == Ref( High, -2 ) AND LLV( Low, 3 ) == Ref( Low, -2 ); // 3 bars range

Filter = Cond1 OR Cond2; // either this or that

SetOption("NoDefaultColumns", True);
AddTextColumn(Name(),"Ticker", 1.0, colorBlack, colorGold, 70);
AddColumn(DateTime(), "Date/Time", formatDateTime, colorLightYellow, colorDarkGrey, 120);
//AddColumn( Cond1, "Double Inside", 1,  IIf(Cond1, colorLightYellow, colorDarkGrey), IIf(Cond1, colorDarkGreen, colorDarkGrey));
//AddColumn( Cond2, "3 bar Range", 1, colorBlack, IIf(Cond2, colorPaleGreen, colorDarkGrey));
AddColumn( Cond1 + Cond2, "Sum Signals", 1, IIf(cond1 + cond2 == 2, colorBrightGreen, colorLightGrey), colorDarkGrey);
 
Different column display if you prefer it short and simple

Code:
Cond1 = Sum( Inside(), 2 ) == 2; // double inside bar
Cond2 = HHV( High, 3 ) == Ref( High, -2 ) AND LLV( Low, 3 ) == Ref( Low, -2 ); // 3 bars range

Filter = Cond1 OR Cond2; // either this or that

SetOption("NoDefaultColumns", True);
AddTextColumn(Name(),"Ticker", 1.0, colorBlack, colorGold, 70);
AddColumn(DateTime(), "Date/Time", formatDateTime, colorLightYellow, colorDarkGrey, 120);
//AddColumn( Cond1, "Double Inside", 1,  IIf(Cond1, colorLightYellow, colorDarkGrey), IIf(Cond1, colorDarkGreen, colorDarkGrey));
//AddColumn( Cond2, "3 bar Range", 1, colorBlack, IIf(Cond2, colorPaleGreen, colorDarkGrey));
AddColumn( Cond1 + Cond2, "Sum Signals", 1, IIf(cond1 + cond2 == 2, colorBrightGreen, colorLightGrey), colorDarkGrey);

If output is 2 then it is double inside bar, if output is 1 then it's just a 3 bars range where High and low of Ref(bar, -2) are extremes.
 
Hello everyone, I was hoping someone might be able to help me out with my Amibroker/Premium data installation.

I have been following the document by H Bandy however everytime I restart Amibroker I lose my connected database and returns to the default. I have installed PD installer, run the amibroker script, went through tools in Amibroker to run to script which links the database I think, however on restart I have to do it again each time.

Am I missing something? Any help would be great!

Thanks
 
Hello everyone, I was hoping someone might be able to help me out with my Amibroker/Premium data installation.

I have been following the document by H Bandy however everytime I restart Amibroker I lose my connected database and returns to the default. I have installed PD installer, run the amibroker script, went through tools in Amibroker to run to script which links the database I think, however on restart I have to do it again each time.

Am I missing something? Any help would be great!

Thanks

I don't use Premium Data but in order to make AB opening your custom folder at start up just go to Tools-Preferences-Data and pick the Premium Data database folder there. Then at next start of AB it should pick that Premium Data DB by default.
 
Thank you, I do feel like an idiot for missing it though :eek:

If I would tell you how many times I did feel the same way during the decades of my life you would get endless stomach-aches. So feel free being part of our "brotherhood of lost eyes". And there is an old saying "A sorrow shared is a sorrow halved" or "Misery loves company". ;)
 
If I would tell you how many times I did feel the same way during the decades of my life you would get endless stomach-aches. So feel free being part of our "brotherhood of lost eyes". And there is an old saying "A sorrow shared is a sorrow halved" or "Misery loves company". ;)

Haha thanks Trash, I am looking forward to many more such moments :D
 
Hi All,

I am looking to learn AFL and I am wondering whats the best way to get started is there any online tutorials on using AFL ?.

I am looking to create a easy Formula for scanning Buy and Sell signals, can you anyone tell me a buy & sell formula explaining what triggers it for a buy and sell ?.

Sorry for such a novice question.

Thanks in advance
 
Hi All,

I am looking to learn AFL and I am wondering whats the best way to get started is there any online tutorials on using AFL ?.

I am looking to create a easy Formula for scanning Buy and Sell signals, can you anyone tell me a buy & sell formula explaining what triggers it for a buy and sell ?.

Sorry for such a novice question.

Thanks in advance

I'd start with this....check out the AFL section...
 
Thank You.

Just a quick question is there such thing as an Intraday Buy and Sell signal Formula ?.

Well yeah, i guess you can code it to generate signals in any time frame. I don't use it for intra-day trading but there are plenty that do...

CanOz
 
Top