FINANCIAL CHRONICLE™
Dear Reader,

Registration with the Sri Lanka FINANCIAL CHRONICLE™️ would enable you to enjoy an array of other services such as Member Rankings, User Groups, Own Posts & Profile, Exclusive Research, Live Chat Box etc..

All information contained in this forum is subject to Disclaimer Notice published.


Thank You
FINANCIAL CHRONICLE™️
www.srilankachronicle.com


Join the forum, it's quick and easy

FINANCIAL CHRONICLE™
Dear Reader,

Registration with the Sri Lanka FINANCIAL CHRONICLE™️ would enable you to enjoy an array of other services such as Member Rankings, User Groups, Own Posts & Profile, Exclusive Research, Live Chat Box etc..

All information contained in this forum is subject to Disclaimer Notice published.


Thank You
FINANCIAL CHRONICLE™️
www.srilankachronicle.com
FINANCIAL CHRONICLE™
Would you like to react to this message? Create an account in a few clicks or log in to continue.
FINANCIAL CHRONICLE™

Encyclopedia of Latest news, reviews, discussions and analysis of stock market and investment opportunities in Sri Lanka

Click Link to get instant AI answers to all business queries.
Click Link to find latest Economic Outlook of Sri Lanka
Click Link to view latest Research and Analysis of the key Sectors and Industries of Sri Lanka
Worried about Paying Taxes? Click Link to find answers to all your Tax related matters
Do you have a legal issues? Find instant answers to all Sri Lanka Legal queries. Click Link
Latest images

Latest topics

» TAFL is the most undervalued & highly potential counter in the Poultry Sector
by bkasun Tue Apr 30, 2024 8:48 pm

» COCR IN TROUBLE?
by bkasun Tue Apr 30, 2024 8:43 pm

» EXPO.N - Expo Lanka Holdings De-Listing
by eradula Tue Apr 30, 2024 3:21 pm

» Maharaja advise - April 2024
by celtic tiger Tue Apr 30, 2024 12:01 am

» Srilanka's Access Engineering PLC think and Win
by Dasun Maduwantha Mon Apr 29, 2024 11:40 pm

» PEOPLE'S INSURANCE PLC (PINS.N0000)
by ErangaDS Fri Apr 26, 2024 10:24 am

» UNION ASSURANCE PLC (UAL.N0000)
by ErangaDS Fri Apr 26, 2024 10:22 am

» ‘Port City Colombo makes progress in attracting key investments’
by samaritan Thu Apr 25, 2024 9:26 am

» Mahaweli Reach Hotels (MRH.N)
by SL-INVESTOR Wed Apr 24, 2024 11:25 pm

» THE KANDY HOTELS COMPANY (1983) PLC (KHC.N0000)
by SL-INVESTOR Wed Apr 24, 2024 11:23 pm

» ACCESS ENGINEERING PLC (AEL) Will pass IPO Price of Rs 25 ?????
by ddrperera Wed Apr 24, 2024 9:09 pm

» LANKA CREDIT AND BUSINESS FINANCE PLC (LCBF.N0000)
by Beyondsenses Wed Apr 24, 2024 10:40 am

» FIRST CAPITAL HOLDINGS PLC (CFVF.N0000)
by Beyondsenses Wed Apr 24, 2024 10:38 am

» LOLC FINANCE PLC (LOFC.N0000)
by Beyondsenses Wed Apr 24, 2024 10:20 am

» SRI LANKA TELECOM PLC (SLTL.N0000)
by sureshot Wed Apr 24, 2024 8:37 am

» Sri Lanka confident of speedy debt resolution as positive economic reforms echoes at IMF/WB meetings
by samaritan Mon Apr 22, 2024 9:28 am

» Construction Sector Boom with Purchasing manager's indices
by rukshan1234 Thu Apr 18, 2024 11:24 pm

» Asha Securities and Asia Securities Target AEL (Access Enginnering PLC )
by Anushka Perz Wed Apr 17, 2024 10:30 pm

» Sri Lanka: China EXIM Bank Debt Moratorium to End in April 2024
by DeepFreakingValue Tue Apr 16, 2024 11:22 pm

» Uncertainty over impending elections could risk Lanka’s economic recovery: ADB
by God Father Tue Apr 16, 2024 2:47 pm

» Sri Lanka's Debt Restructuring Hits Roadblock with Bondholders
by God Father Tue Apr 16, 2024 2:42 pm

» BROWN'S INVESTMENTS SHOULD CONSIDER BUYING BITCOIN
by ADVENTUS Mon Apr 15, 2024 12:48 pm

» Bank run leading the way in 2024
by bkasun Sun Apr 14, 2024 3:21 pm

» ASPI: Undoing GR/Covid19!
by DeepFreakingValue Thu Apr 11, 2024 10:25 am

» Learn CSE Rules and Regulations with the help of AI Assistant
by ChatGPT Tue Apr 09, 2024 7:47 am

LISTED COMPANIES

Submit Post
ශ්‍රී ලංකා මූල්‍ය වංශකථාව - සිංහල
Submit Post


CONATCT US


Send your suggestions and comments

* - required fields

Read FINANCIAL CHRONICLE™ Disclaimer



EXPERT CHRONICLE™

ECONOMIC CHRONICLE

GROSS DOMESTIC PRODUCT (GDP)



CHRONICLE™ YouTube

Disclaimer
FINANCIAL CHRONICLE™ Disclaimer

The information contained in this FINANCIAL CHRONICLE™ have been submitted by third parties directly without any verification by us. The information available in this forum is not researched or purported to be complete description of the subject matter referred to herein. We do not under any circumstances whatsoever guarantee the accuracy and completeness information contained herein. FINANCIAL CHRONICLE™ its blogs, forums, domains, subdomains and/or its affiliates and/or its web masters, administrators or moderators shall not in any way be responsible or liable for loss or damage which any person or party may sustain or incur by relying on the contents of this report and acting directly or indirectly in any manner whatsoever. Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility, FINANCIAL CHRONICLE™ blogs, forums, domains, subdomains and/or its affiliates and/or its web masters, administrators or moderators shall not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information. The information on this website is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.

Further the writers and users shall not induce or attempt to induce another person to trade in securities using this platform (a) by making or publishing any statement or by making any forecast that he knows to be misleading, false or deceptive; (b) by any dishonest concealment of material facts; (c) by the reckless making or publishing, dishonestly or otherwise of any statement or forecast that is misleading, false or deceptive; or (d) by recording or storing in, or by means of, any mechanical, electronic or other device, information that he knows to be false or misleading in a material particular. Any action writers and users take in respect of (a),(b),(c) and (d) above shall be their own responsibility, FINANCIAL CHRONICLE™ its blogs, forums, domains, subdomains and/or its affiliates and/or its web masters, administrators or moderators shall not be liable for any, direct or indirect, consequential or incidental violation of securities laws of any country, damages or loss arising out of the use of this information.


AI Live Chat

You are not connected. Please login or register

How to calculate "Limit Move(T)" in Swing Index?

2 posters

Go down  Message [Page 1 of 1]

SuGi

SuGi
Manager - Equity Analytics
Manager - Equity Analytics

I'm trying to draw Swing index chart in android app using it's equation How to calculate "Limit Move(T)" in Swing Index? Swing-index-2

I cant understand the T(Limit Move) value in this equation. I found this definitions when i search it in google...

* "The largest price change allowed for a given futures contract in a single day, as determined by the exchange. also called maximum price fluctuation."

* "the maximum price changing during trade session"

if anyone can help me to get clear idea about this value or any equation to get this value, it will be a big sup to me...THaNx!!!

dpaterso


Stock Trader

Hi.

Well I'm really pleased to see that SOMEONE is trying to CORRECTLY code the Swing Index System (and therefore the ASI)!!! Other than myself that is!!! LOL!!!

Some background:

I've spent years trading Wilder's trading systems and my main trading system IS INDEED the Swing Index System. It cannot be beat in my opinion. Anyway: I like to think I'm an authority on ALL of J. Welles Wilder Jnr.'s work so hence my posting here and attempting to give you a helping hand.

In short: limit moves TODAY are VERY different to what they were in 1978 which is when he developed and published the system. VERY VERY VERY few instruments TODAY have a FIXED limit move. This was NOT the case in 1978. The Dow for example has TOTALLY different limits or circuit breakers than it had in 1978 and they are not fixed anymore but based rather on certain percentage moves and timed moves. So to solve your problem or answer your question: simply remove the "* K/T" from the equation (and actually as per the original system it should be "K/L" where "L" is the limit move). That's it. Trust me when I say that there is no other way to do it. I spent at LEAST a year perfecting my Swing Index System "indicator" and this was the ONLY way I could get it right and still have the Trailing INDEX SAR working correctly and behaving as it should and as described in the book.

Be VERY careful when doing the greater than or equal to comparisons as well i.e. ensure that you trap for every possibility otherwise you'll find that at some point the "indicator" will crash or give you false readings. The best advice I can give you is to create an Excel Worksheet, input Wilder's example prices, and ensure that you get the same results. Then substitute his values for your own prices and compare the Worksheet to your Swing Index System "indicator" to ensure you're getting the same values as shown on the Worksheet.

In addition: I do NOT round the result i.e. rounding sometimes results in your missing a valid profitable trade completely.

By the way: I hope you have the ENTIRE calculation i.e. that formula that you're showing is NOT the ENTIRE calculation (in other words "C" and "O" are NOT "Open" and "Close"). If you already know that then my apologies but it may be confusing to anyone else that reads this thread.

What's more (just some useless information): I have yet to see a trading platform where even the ASI ("Accumulative Swing Index") is coded and calculated correctly as per the book. One VERY fine example is the one supplied as standard with MetaTrader!!! Can you believe that!!! I've also seen some rather interesting (and incorrect) variations of RSI, ADX, and Parabolic SAR and then people wonder why they cannot make money using Wilder's trading systems!!!

I have my own forums that are pretty much dedicated to Wilder's trading systems and how I trade and there are some examples on the forums that are publicly viewable. My forums are at techtradercentral.net.

I hope this helps.

Regards,

Dale Paterson.

By the way: I've attached a daily chart of the Spanish IBEX35 showing a CORRECTLY calculated ASI (the blue line) and the Trailing INDEX SAR (the green and red dots). It's the first "indicator" on the lower portion of the chart.

In case anybody is wondering why I'm using quote marks when referring to the Swing Index System "indicator": it's not REALLY an indicator in the true sense of the word i.e. the Swing Index System is based on price and price alone and there are no lagging components etc. such as moving averages or average calculations or anything like that. That's why I hesitate to call it an indicator!!!
Attachments
How to calculate "Limit Move(T)" in Swing Index? Attachmentibex35.PNG
Spanish IBEX35 showing CORRECT Swing Index System "indicator"!!!
You don't have permission to download attachments.
(56 Kb) Downloaded 6 times

SuGi

SuGi
Manager - Equity Analytics
Manager - Equity Analytics

dpaterso wrote:Hi.

Well I'm really pleased to see that SOMEONE is trying to CORRECTLY code the Swing Index System (and therefore the ASI)!!! Other than myself that is!!! LOL!!!

Some background:

I've spent years trading Wilder's trading systems and my main trading system IS INDEED the Swing Index System. It cannot be beat in my opinion. Anyway: I like to think I'm an authority on ALL of J. Welles Wilder Jnr.'s work so hence my posting here and attempting to give you a helping hand.

In short: limit moves TODAY are VERY different to what they were in 1978 which is when he developed and published the system. VERY VERY VERY few instruments TODAY have a FIXED limit move. This was NOT the case in 1978. The Dow for example has TOTALLY different limits or circuit breakers than it had in 1978 and they are not fixed anymore but based rather on certain percentage moves and timed moves. So to solve your problem or answer your question: simply remove the "* K/T" from the equation (and actually as per the original system it should be "K/L" where "L" is the limit move). That's it. Trust me when I say that there is no other way to do it. I spent at LEAST a year perfecting my Swing Index System "indicator" and this was the ONLY way I could get it right and still have the Trailing INDEX SAR working correctly and behaving as it should and as described in the book.

Be VERY careful when doing the greater than or equal to comparisons as well i.e. ensure that you trap for every possibility otherwise you'll find that at some point the "indicator" will crash or give you false readings. The best advice I can give you is to create an Excel Worksheet, input Wilder's example prices, and ensure that you get the same results. Then substitute his values for your own prices and compare the Worksheet to your Swing Index System "indicator" to ensure you're getting the same values as shown on the Worksheet.

In addition: I do NOT round the result i.e. rounding sometimes results in your missing a valid profitable trade completely.

By the way: I hope you have the ENTIRE calculation i.e. that formula that you're showing is NOT the ENTIRE calculation (in other words "C" and "O" are NOT "Open" and "Close"). If you already know that then my apologies but it may be confusing to anyone else that reads this thread.

What's more (just some useless information): I have yet to see a trading platform where even the ASI ("Accumulative Swing Index") is coded and calculated correctly as per the book. One VERY fine example is the one supplied as standard with MetaTrader!!! Can you believe that!!! I've also seen some rather interesting (and incorrect) variations of RSI, ADX, and Parabolic SAR and then people wonder why they cannot make money using Wilder's trading systems!!!

I have my own forums that are pretty much dedicated to Wilder's trading systems and how I trade and there are some examples on the forums that are publicly viewable. My forums are at techtradercentral.net.

I hope this helps.

Regards,

Dale Paterson.

By the way: I've attached a daily chart of the Spanish IBEX35 showing a CORRECTLY calculated ASI (the blue line) and the Trailing INDEX SAR (the green and red dots). It's the first "indicator" on the lower portion of the chart.

In case anybody is wondering why I'm using quote marks when referring to the Swing Index System "indicator": it's not REALLY an indicator in the true sense of the word i.e. the Swing Index System is based on price and price alone and there are no lagging components etc. such as moving averages or average calculations or anything like that. That's why I hesitate to call it an indicator!!!

Thanx in advance!!! This was very helpful to me... i will post here the algorithm which is developed by me..plz show me logical errors if exists...Thanx again!!!

SuGi

SuGi
Manager - Equity Analytics
Manager - Equity Analytics

My attempt to develop the algorithm using Java......



public double CalculateSwingIndex(double today_Open, double today_Close, double today_High, double today_Low, double Yesteday_Open, double Yesteday_Close, double Yesteday_High, double Yesteday_Low)
{

double indx = 0.0;
double ret = 0.0;

double R = R_val(today_High, today_Low, today_Close, Yesteday_Open, Yesteday_Close,Yesteday_High, Yesteday_Low);
http://Log.i("R value Function:", Double.toString(R));

//double K = K_val(Yesteday_Open,Yesteday_Close,today_High,today_Low);
http://Log.i("K value Function:", Double.toString(K));

//********** OLD Equation ***********
//indx = ((Yesteday_Close - today_Close) + 0.5*(Yesteday_Close - Yesteday_Open) + 0.25*(today_Close - today_Open)) / R ;

// ******* This is New Method *******
indx = ((today_Close - Yesteday_Close ) + 0.5*(today_Close - today_Open) + 0.25*(Yesteday_Close - Yesteday_Open)) / R ;
http://Log.i("indx value", Double.toString(indx));

ret = indx * 50;
http://Log.i("final Value", Double.toString(ret));




//indx = (50.0*(( (Yesteday_Close - today_Close)+0.5*(Yesteday_Close-Yesteday_Open)+0.25*(today_Close - today_Open) )/R_val( today_High, today_Close, Yesteday_Open, Yesteday_Close, Yesteday_High, Yesteday_Low)))*(K_val(Yesteday_Open,Yesteday_Close,Yesteday_High,Yesteday_Low));

//return indx;



return ret;
}


public double R_val(double today_High, double today_Low, double today_Close, double Yesteday_Open, double Yesteday_Close, double Yesteday_High, double Yesteday_Low)
{
double val1 = today_High - Yesteday_Close;
double val2 = today_Low - Yesteday_Close;
double val3 = today_High - today_Close;

/*Log.i("value of val1 :", Double.toString(val1));
Log.i("value of val2 :", Double.toString(val2));
Log.i("value of val3 :", Double.toString(val3));*/

double rtn_value=0.0;

if(val1 > val2)
{
if(val1 > val3)
{
rtn_value = ((val1)+0.5*(val2)+0.25*(Yesteday_Close + Yesteday_Open));
http://Log.i("Return value of val1 R :", Double.toString(rtn_value));
}

else if(val3 > val2)
{
rtn_value = (val3 + 0.25*(Yesteday_Close + Yesteday_Open));
http://Log.i("values of val3 :", Double.toString(val3));
}
}
else if(val2 > val3 )
{
rtn_value = ((val2)+0.5*(val1)+0.25*(Yesteday_Close + Yesteday_Open));
http://Log.i("values of val2 :", Double.toString(val2));
}
return rtn_value;
}

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum