Previous Open,High,Low,Close and Middle

Moderator: moderators

alichambers
rank: 50+ posts
rank: 50+ posts
Posts: 79
Joined: Wed Nov 08, 2006 4:46 pm
Reputation: 0
Gender: Male

Previous Open,High,Low,Close and Middle

Postby alichambers » Sat May 26, 2007 5:49 pm

Another indicator from the man for you Amibroker heads! (are there any of you here????) 8)

This plots yesterday's daily Open,High,Low,Close and Middle on today's data.

As the other indicators:

TimeOfOpen: This is the time that you want the new day to start from. 130000 = 13:00; 143000 = 14:30; 184300 = 18:43, etc...

doHLplot, doCOplot and MPplot: These toggle the drawing of respective lines on and off ("1" = On). Handy to turn each line off seperately if Amibroker is scaling the chart and you need to zoom in.

The indicator also writes the previous daily candle's direction (Red or Green) in the chart title area.

Have fun,
Alex
Attachments
Previous_OHLC_and_MP.txt
(1.47 KiB) Downloaded 176 times

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

mkp14
rank: <50 posts
rank: <50 posts
Posts: 2
Joined: Mon May 07, 2007 4:37 am
Reputation: 0
Gender: None specified

MarketProfile

Postby mkp14 » Wed Dec 05, 2007 11:44 pm

Hi
Can you help me to correct this AFL . I found on net and looks good for mp chart but when i try to implement in formula editor it give me syntax error.
thx in advance for help

_ SECTION_BEGIN ( "Price");

SetChartOptions ( 0 , chartShowArrows | chartShowDates ); SetChartOptions (0, chartShowArrows | chartShowDates);

_N ( Title = StrFormat ( ?{{NAME}} _ N (Title StrFormat = (((NAME))
- {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) INTERVAL - (()) ((DATE)) Open% g,% g Hi, Lo% g, Close% g (% .1 f%%)
{{VALUES}}? , O , H , L , C , SelectedValue ( ROC ( C , 1 ) ) )); VALUES (()) ", O, H, L, C, SelectedValue (ROC (C, 1))));

Plot ( C , ?Close? , ParamColor ( ?Color? , colorBlack ), styleNoTitle | ParamStyle ( ?Style? ) | GetPriceStyle () ); Plot (C, "Close" ParamColor ( "Color" colorBlack) styleNoTitle | ParamStyle ( "Style") | GetPriceStyle ());

_SECTION_END (); _ SECTION_END ();

BarEnd = EndValue ( BarIndex ()); //IIf(Bv BarEnd = EndValue (BarIndex ()) / / IIf (Bv
== 0 , LastValue(BarIndex()), EndValue(BarIndex())); == 0, LastValue (BarIndex ()), EndValue (BarIndex ()));

BarBegin = IIf ( BeginValue ( BarIndex ()) != 0 , BeginValue ( BarIndex ()), (BarEnd = 1001 )*(BarEnd- 1000 ) BarBegin = IIf (BeginValue (BarIndex ())! = 0, BeginValue (BarIndex ()), (BarEnd = 1001) * (BarEnd- 1000)
); // ) / /

//MarketProfile(num / / MarketProfile (num
Period,num BarBegin,num BarEnd,ProfileColor,Backgroundcolor); Period, num BarBegin, num BarEnd, ProfileColor, Backgroundcolor);

MarketProfile ( inDaily * 2 ,BarBegin,BarEnd, colorRed , 2 ); MarketProfile (inDaily * 2, BarBegin, BarEnd, colorRed, 2);

mkp14
rank: <50 posts
rank: <50 posts
Posts: 2
Joined: Mon May 07, 2007 4:37 am
Reputation: 0
Gender: None specified

MarketProfile

Postby mkp14 » Wed Dec 05, 2007 11:45 pm

Hi
Can you help me to correct this AFL . I found on net and looks good for mp chart but when i try to implement in formula editor it give me syntax error.
thx in advance for help
Attachments
MarketProfile.doc
(22 KiB) Downloaded 89 times

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.


Return to “AmiBroker”