PureBytes Links
Trading Reference Links
|
Please do not post the same question multiple times. I have posted an answer to your original question here:
http://finance.groups.yahoo.com/group/amibroker/message/139867
If that does not answer your question, it would be better to add a new reply instead of starting a new thread.
Mike
--- In amibroker@xxxxxxxxxxxxxxx, "schnitt_tt" <schnitt_tt@xxx> wrote:
>
> Hi,
>
> just make my first steps in AFL, to get a "Debugging" functionality I
> try to put a shape on a chart if a condition is met. (Software
> development is givin`.
>
> target: if "GAP DOWN" appears show a shape.
>
> "ARRAY"-Version
>
> it_gap = GapDown();
>
> PlotShapes( IIf( it_gap, shapeDownTriangle , shapeNone ), colorRed );
> PlotShapes( IIf( GapUp(), shapeUpTriangle , shapeNone ), colorGreen);
>
> does function !!!! [:)]
>
> "LOOP"-Version:
>
> it_gap = GapDown();
> for( i = 1; i < BarCount; i++ )
> {
>
> if( it_gap[i] == True )
> {
> PlotShapes( shapeUpTriangle , colorGreen );
> }
> else
> {
> PlotShapes( shapeNone , colorRed );
> }
> }
>
> ->result is .... on every single bar a shape is drawn.
>
> here is how I think the "LOOP-Version" is function ...
>
> 1) the array it_gap is filled via function "GAP_DOWN()"
>
> in it_gap is for every bar that has a gap the "number" 1.
>
> 2) FOR loop
>
> doesn`T work ... I thought in the For loop I look at every single
> day. if it is true (1) a green shape should appear,
> otherwise no shape will be drawn ..
>
>
>
> thx for your reply schnitt ...
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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/
|