PureBytes Links
Trading Reference Links
|
Should I believe my code has no problem ??
I don't think so and any help will be appreciate
Thank's
MG
--- In amibroker@xxxxxxxxxxxxxxx, "miche1a" <mguibert@xxx> wrote:
>
> Hi
>
> I want to draw jacob support on an intraday graph
> The formula is based on previous day daily data and is
> High2 = Average + High1 - Low1
> High1 = 2*Average - Low
> Average = (High + Low + Close)/3
> Low1 = 2*Average - High
> Low2 = Average + Low1 - High1
>
> I Wrote this formula (sorry but I am a rookie in formula writing)
>
> _SECTION_BEGIN("Supports");
>
> TimeFrameSet (inDaily);
> Average= Ref((High + Low + Close)/3,-1);
> High1= Ref((2*Average)-Low,-1);
> Low1= Ref((2*Average)-High,-1);
> High2= Ref((Average + High1 - Low1),-1);
> Low2= Ref(Average+Low1-High1,-1);
> Plot(LastValue(Average), "Average", colorBlue, styleThick );
> Plot(LastValue(High2),"High2",colorRed,styleThick);
> Plot (LastValue(High1),"High1",colorRed,styleLine);
> Plot(LastValue(Low1),"Low2",colorDarkGreen,styleThick);
> Plot (LastValue(Low2),"Low1",colorDarkGreen,styleLine);
>
> TimeFrameRestore ();
>
>
> _SECTION_END();
>
> The number were I based my calculation (ER2 feb 21)
> High 720.40
> Low 693.20
> Close 694.20
>
> In excel my results are
> H2 729.80
> H1 712.00
> Av 702.60
> L1 684.80
> L2 675.40
>
>
> With my amibroker formula , results are
> H2 723.66
> H1 716.73
> Av 703.83
> L1 691.93
> L2 687.86
>
> I don't understand why the numbers are differents
>
> Any help appreciate
>
> Thank's
>
> MG
>
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|