Click here to Login





                                                   guru ,Accumulation Swing Index(asi)

  0

0
srishail
2010-11-20 05:06:41


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.

s1:String
s2:String



QuantShare
2010-11-20 05:29:51

  0

Best Answer
ABS = Absolute
IF = IFF
String IF = IffStr

The formula is:

LC=Ref(CLOSE,1);
AA=Absolute(HIGH-LC);
BB=Absolute(LOW-LC);
CC=Absolute(HIGH-REF(LOW,1));
DD=Absolute(LC-REF(OPEN,1));
R=Iff(AA>BB and AA>CC,AA+BB/2+DD/4,Iff(BB>CC and 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);
plot(SI, "");



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Accumulation Swing Index
Accumulation Swing Index (To measure long term trends)
Swing Index Indicator
Swing Indicator
Swing Point Function (SP)

How-to Lessons
How to create a correlation matrix of several securities
How to run a screen or a watchlist from a script
How to drag & drop a stock to a static watchlist
How to automate the data downloading process
How to quickly add several positions to your portfolio

Related Forum Threads
guru The ticker symbol for
guru Unable to update
guru Ichimoku Kinko Hyo - Trading Indicator.
guru link problem
guru , forex -eod of usd and inr

Blog Posts
Custom Indicator: Accumulation Distribution Line
Create indicators, composites and trading systems using QL and CS...
QS Trading Software: Global Script
How to create the advance/decline market breadth indicator
Custom Indicator: Moving average spread









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



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.