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

[amibroker] A couple of EL to AB conversion questions



PureBytes Links

Trading Reference Links

I hope someone has familiarity with EL code for a couple of questions I have in converting to AB.

1.  EL has a 'reserved word' called BigPointValue which is used to represent the # of dollars associated with a one integer (full point) change in the security's price.  I understand how this comes into play in a futures market such as NatGas where a 1 point move is the equivalent of $100.  But is it really necessary since the BigPointValue then is only a function of the # of shares you own or contract size of the commodity you are trading.  Does AB have anything similar or is this even a necessary variable worth defining? 

2.  EL seems to do some odd things in which a variable is defined and then again redefined in the next line.
                          mktrisk = stddev(C, 20) * sizemult * BigPointValue;
                          mktrisk = maxlist(mktrisk, 1);
What is the "logic" in this and how does AB deal with this?

As always, thanks in advance for any suggestions and help.




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