CanOz
Home runs feel good, but base hits pay bills!
- Joined
- 11 July 2006
- Posts
- 11,543
- Reactions
- 519
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....
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));
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));
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);
I look at my code versus trash's and it's like I'm speaking pigeon AFL!:
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
Thank you, I do feel like an idiot for missing it though
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".
Does Amibroker have the ability to search Movers By Gains & Movers By Volume?.
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 ?.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?