[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: Backtest: specifying position size in terms of compounded capital c,ount


  • To: amibroker@xxxxxxxxxxxxxxx
  • Subject: Re: [amibroker] Re: Backtest: specifying position size in terms of compounded capital c,ount
  • From: Kevin Glenn <kbglenn@xxxxxxxxx>
  • Date: Thu, 10 May 2007 03:03:29 -0700 (PDT)

PureBytes Links

Trading Reference Links

I'll give that one a shot and see if it works...now for a really simple question that I am unable to find an answer to looking through the documentation.

If I'm using the plotshapes function and I want to highlight something that happened two bars ago (i.e. I know it happened two bars ago but only after two bars passed since the event) how do I get the shape to show up at the event and not when it becomes evident?  Here's my current code...basically I'm just using a three bar high/low pivot.

PlotShapes(IIf(L > Ref(L,-1) AND Ref(L,-1) > Ref(L,-2) AND Ref(L,-2) < Ref(L,-3) AND Ref(L,-3) < Ref(L,-4), shapeUpTriangle, shapeNone), colorRed, 0, ypostion=Ref(L,-2), Offset=-5);
PlotShapes(IIf(H < Ref(H,-1) AND Ref(H,-1) < Ref(H,-2) AND Ref(H,-2) > Ref(H,-3) AND Ref(H,-3) > Ref(H,-4), shapeDownTriangle, shapeNone), colorGreen, 0, ypostion=Ref(H,-2), Offset=-5);


Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A. __._,_.___

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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___