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

[amibroker] Formula Language help



PureBytes Links

Trading Reference Links

Asking for help on the following formula.  "d" is an array such as
AMA().  When I plot the Buy/Sells I get each on the same bar (buy and
sell).  How is this possible?  Also how can I output variable
information such as "printf()" and to where?  Is there a way to view
the arrays Buy/Sell (+1/-1 signals and dates)?  Much thanks in advance...

myFilter = 0.15*(StDev(d-Ref(d,-1),14));
myLow = LLV(d,14);
myHigh = HHV(d,14);

printf("low = %f, high = %f, filter = %f\n",myLow,myHigh,myFilter);

Buy = d > (myLow+myFilter);
Sell = d < (myHigh-myFilter);

Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);

PlotShapes( shapeHollowUpTriangle*Buy, colorBrightGreen, 0, Low, -30 );
PlotShapes( shapeHollowDownTriangle*Sell, colorRed, 0, High, -30);





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/