Time Segmented Volume by Worden Brothers code

Forums ProRealTime English forum ProBuilder support Time Segmented Volume by Worden Brothers code

Viewing 10 posts - 16 through 25 (of 25 total)
  • #150445

    Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.

    Thank you 🙂

     

    #150447

    Try the code sent and you will see that it is not the same.

    #150451

    The differences are due to:

    • you do not clear variables MyVol and MyVol1 at the beginning, so in the (rare) case close and close[1] are equal instead of 0 they retain the previous value
    • in the formula there’s no evidence of the subtraction MyVol-MyVol1.

    https://usethinkscript.com/threads/time-segmented-volume.519/

    https://futures.io/thinkorswim/10957-time-segmented-volume-worden-telecharts.html#post122215

     

    #150470

    Apparently, according to the attached data, there is an error in the indicator code.
    Attached .itf file with the modified data. The appearance seems much more consistent with price tracking.

     

     

    #150477

    What seems is NOT what it is, you are posting code that is different from the formula you posted yourself!

    It’s Barrabas15‘s modified TSV, not the original  one!

    #150484

    The last code is from the Tradingview platform (not mine).
    In all the websites that comment on this indicator it is indicated that the oscillator crosses the 0 line both up and down. In this case it is fulfilled (in the edited Prorealcode not).

    #150485

    Anyway, “robertogozzi” is right. The indicator I have attached is not the official one. The indicator that I have attached is a translation by me of a code that they have made for the Tradingview platform. Therefore, if you are not convinced of its effectiveness, please do not use it.

    #150506

    Actually ALL websites (Worden’s too) talk about ZERO crossing.

    I think the formula I used (TSV=(Sum( IIf( C > Ref(C,-1), V * ( C-Ref(C,-1) ), IIf( C < Ref(C,-1),V * ( C-Ref(C,-1) ), 0 ) ) ,18));) has an unneeded “-” sign in front of the second reference of V (volume). Since it negates an already negative value, thus making it positive and affecting the subsequent sum.

    Simply removing that minus sign appears to be the solution.

    I actually found ONCE the correct formula (without the  MINUS sign), but ALL other sites had that sign, so I used the most used, which, instead is the incorrect one. I think that is due to a wrong Copy & Paste by those websites.

    Anyway, thanks to @Barrabas15 for spotting an issue that helped me work it out.

    The correct code of TSV is:

     

    #179158

    Hi,

    I’m a beginner. I’ve heard that Volume is not available on PRT on CFDs. I use PRT with IG to trade CFD. Can you confirm/explain that ? It would made this indicator useless.

    Thanks so much for your precious help !

    #179159

    It is available for all the instruments for which the broker makes it available.

    It is available for most of them, even for currency pairs since a few months ago.

     

Viewing 10 posts - 16 through 25 (of 25 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login