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);