Friday, October 14, 2016

VPA Version 4

Finally here is the next version of the VPA, V.4.0.  The earlier version was a step in refining the signal generation codes. However the signals were generated were too many creating a confusing picture. Also there was a error in coding which prevented the use Random walk  Index for the evaluation of the trend. In version 4.0 I have attempted to refine the signal generation coding  so we have lesser more accurate signals.


Another major change is the effort to indicate the high probability of change in the Trend. These are Sentiment Change Indicators. .  A green up Arrow indicates that there is a change of sentiment. The current down Trend may possibly end soon and we may see an Uptrend soon. A Red Down Arrow indicates that there is a change of sentiment. The current Up Trend may possibly end soon and we may see Down trend soon.  Like any signal in Technical Analysis there signal are never 100% accurate these seem to catch the majority of the trend changes. The users are advised not to use these as buy and sell signals. However these signals would be indeed good guiding sophomores.





I am also including a PDF file which provides some details of the various Flags generated by the AFL on the chart. This would help the beginner very much to understand the implication of the various Flags. This is very brief and we I will try to elaborate on each as and when time permits.





The AL can be downloaded from here :
VPA  Version 4
VPA Flags

32 comments:

  1. Thank you very much, Sir, from our core of the heart, truly speaking, we have been waiting for a long for such updated version, I guess its a very valuable share indeed.VPA flag idea is very innovative and definitely would resolve the queries of many enthusiasts in VSA.--Shariful Islam

    ReplyDelete
  2. Thanks a lot, sir! You have been a wonderful teacher.

    ReplyDelete
  3. Many many thanks Sir.. Really grateful to you as our lighthouse.. Wishing your all-way healthy and happy life.

    ReplyDelete
  4. Hello Karthik, do you happen to have this for NinjaTrader?

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Thanks a lot. Will follow this blog for more forex Indicators

    ReplyDelete
  7. Im using Pi from Zerodha...checking if AFL files can work on it

    ReplyDelete
  8. Thank you Karthik sir...best wishes for your effort to help peoples

    ReplyDelete
  9. Excellent script, many thanks! It helps in the study of VSA

    ReplyDelete
  10. Excellent script, many thanks! It helps in the study of VSA

    ReplyDelete
  11. Thank you for your great work.
    1 - You say "Also there was a error in coding which prevented the use Random walk Index for the evaluation of the trend." but, I don't see any difference in the Trend Analysis Module from version 3.1.0. and the trend display is the same, can you please point out where was the error?
    2 - The subjacent code of the RWI, RWILo and RWIHi functions is:
    ________________________________________________
    minperiods = Param( "Min Periods", 9, 1, 200, 1 );
    maxperiods = Param( "Max Periods", 40, 1, 200, 1 );
    RWILo=0;
    for( i = minperiods; i <= maxperiods ; i++ )
    {
    RWILo = IIf(i==minperiods,(Ref(High,-i)-Low )/ (ATR(i)*sqrt(i)),Max((Ref(High,-i)-Low )/ (ATR(i)*sqrt(i)),RWILo));
    }
    Plot(Ref(RWILo,0),"RWILo",colorred ,styleLine);

    RWIHi=0;
    for( i = minperiods; i <= maxperiods ; i++ )
    {
    RWIHi = IIf(i==minperiods,(High-Ref(Low,-i))/ (ATR(i)*sqrt(i)),Max((High-Ref(Low,-i))/ (ATR(i)*sqrt(i)),RWIHi));
    }
    Plot(Ref(RWIHi,0),"RWIHi",colorred ,styleLine);

    Plot(Ref(RWIHi-RWILo,0),"RWIi",colorBlue,styleLine);
    _____________________________________________________
    but, differs from what was written by E. Michael Poulos, which in afl language should be:
    RWILo = IIf(i==minperiods,(Ref(High,-(i-1))-Low)/ (ref(ATR(i),-1)*sqrt(i)),Max((Ref(High,-(i-1))-Low)/ (ref(ATR(i),-1)*sqrt(i)),RWILo));
    RWIHi = IIf(i==minperiods,(High-Ref(Low,-(i-1)))/ (ref(ATR(i),-1)*sqrt(i)),Max((High-Ref(Low,-(i-1)))/ (ref(ATR(i),-1)*sqrt(i)),RWIHi));

    does this influences the results?
    You once said "The RWI index and trend analysis deserves a separate dedicated post which I will do later."
    Can you post about the RWI? I can't find sufficient information on that subject.

    3 - I Don´t understand the code on the module VSA signal generation:
    noDemandBarUt = upBar AND narrowRangeBar AND lowVolume AND ClosePos> 3 AND ((upminor>0 AND upimd>0) OR (upminor<0 AND upminor>0));//in a up market
    0bs. upminor never can be greater and smaller than 0 at the same time!

    noSupplyBar = downBar AND narrowRangeBar AND lowVolume AND ClosePos<3 AND ((upminor<1 AND upimd<1) OR (upminor>0 AND upimd<1));
    Obs. upminor has to be 0 or 1, why write ((upminor<1 AND upimd<1) OR (upminor>0 AND upimd<1)) when you could simply write upimd<1 ?

    On the support resistance lines module where is written "tx10=LastValue(ValueWhen(Pk1,x,10));" shouldn´t be "tx10=LastValue(ValueWhen(Tk1,x,10));" ?



    ReplyDelete
  12. error on VPA Basic Module:
    closePosition=IIf(closeFactor=0,avgSpread,clsPosition);
    should be:
    closePosition=IIf(closeFactor==0,avgSpread,clsPosition);

    ReplyDelete
  13. code in basic definitions wrong.
    freshGndHi = C > HHV(H,5); //Fresh new high ground
    freshGndLo = C < LLV(L,5); //Fresh new low ground
    The conditions are impossible as the close of the bar can never be greater than the high or lesser than the low.
    Note that HHV Calculates the highest value in the ARRAY over the preceding periods (periods includes the current day).
    Maybe the code should be:
    freshGndHi = H== HHV(H,5); //Fresh new high ground
    freshGndLo = L== LLV(L,5); //Fresh new low ground
    or
    freshGndHi = C > ref(HHV(H,5),-1); //Fresh new high ground
    freshGndLo = C < ref(LLV(L,5);-1); //Fresh new low ground

    ReplyDelete
  14. Selam admin guzel konular ve guzel site basarilarin devamini bekleriz tanks

    ReplyDelete
  15. I tried to explore. But eod data not able to produce any explore result. Could you pls help..

    ReplyDelete
  16. Comment: Facing login issue? You can call on our Gmail Password Recovery Canada 1-888-414-1732 to get help for resetting your Gmail password.

    ReplyDelete
  17. Many many thanks Sir.. Really grateful to you as our lighthouse.. Wishing your all-way healthy and happy life. May you write some more signals: Distributions Bar, break out bar, Shake out Bar is great!May you please add VPA - 4 with Exploration.

    ReplyDelete
  18. Can you please make the Exploration display each symbol an array of 20 days of indicators ?

    ReplyDelete
  19. Can you please explain what it mean when the bar's color is changed to blue ?

    ReplyDelete
  20. Hello
    Do you have "VPA Version 4" for Ninja Trader 8?

    ReplyDelete
  21. market strategy gives a perfect solution in the right direction to improve in the market.


    Commodity Trading Tips
    Nifty Future Tips

    ReplyDelete
  22. MD.Shameem Mridha
    Looking great work dear, I really appreciated to you on this quality work. Nice post!! these tips may help me for future.

    ReplyDelete
  23. MD.Shameem Mridha
    Thank you, I’ve just been searching for information about this topic for a while and yours is the greatest I’ve discovered till now.

    ReplyDelete