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

[amibroker] need assistance in generating buy signal with zig indicator


  • Date: Sun, 14 Mar 2010 08:42:05 -0000
  • From: "rijnaars" <rijnaa@xxxxxxx>
  • Subject: [amibroker] need assistance in generating buy signal with zig indicator

PureBytes Links

Trading Reference Links

_SECTION_BEGIN("ZIG - Zig");
P = ParamField( "Price field" );
change = Param("% change",5,0.1,25,0.1);
Plot( Zig(P, change), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );

Condition1=Zig>Ref(Zig,-1); 
Condition2=Ref(Zig,-1)<Ref(Zig,-2);
Condition2=Zig<Ref(Zig,-1);

Buy= Condition1;
Sell= Condition2;

shape = Buy * shapeUpArrow + Sell * shapeDownArrow;//No same day buy sell possible 
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low, High ) );;

_SECTION_END();

I get the next errors

ln6 col15: error 31 syntax error expecting "("
ln7 col15: error 31 syntax error expecting "("
ln8 col15: error 31 syntax error expecting "("
ln10 col16: error 29 variable condition1 used without having been initialized.
ln11 col17: error 29 variable condition1 used without having been initialized.




------------------------------------

**** 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:
    amibroker-digest@xxxxxxxxxxxxxxx 
    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/