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

[amibroker] Exploration



PureBytes Links

Trading Reference Links

Using the code below to do exploration with line studies.
 

Short = Cross(High,Study("RE",1923));

Buy = Cross(Study("SU",1923),Low);

Filter = Buy OR Short;

AddColumn(Close,"Close");

AddTextColumn(WriteIf(Buy,"Buy",WriteIf(Short,"Short","xx")),"Trade");  // Always results in "xx"

AddColumn(IIf(Buy,1,IIf(Short,-1,0)),"Trade2");   //  Works OK

 

The last 2 lines are the issue. Last line works OK. Prior line does not.

Anyone see the problem?

Ara



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 other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS