guru these are few thing i am listing ,how can we use this in quantshare,
LC:=REF(CLOSE,1);
AA:=ABS(HIGH-LC);
BB:=ABS(LOW-LC);
CC:=ABS(HIGH-REF(LOW,1));
DD:=ABS(LC-REF(OPEN,1));
R:=IF(AA>BB & AA>CC,AA+BB/2+DD/4,IF(BB>CC & BB>AA,BB+AA/2+DD/4,CC+DD/4));
X:=(CLOSE-LC+(CLOSE-OPEN)/2+LC-REF(OPEN,1));
SI:=16*X/R*MAX(AA,BB);
ASI:SUM(SI,0)
see this link http://img502.imageshack.us/img502/6687/90296060.jpg
Category Method Parameter Return Description
Basic Math functions ABS(d) :Number Number Absolate value, will return double.
Logic functions IF(f1,f2,f3 f1:Data Array Data Array If f1>0 return f2 , otherwise return f3
f2:Data Array
f3:Data Array
.String functions IF(Cond,s1,s2) Cond:Data Array String return s1 if Cond is true, otherwise return s2.
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.