VSA indicator

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

VSA indicator

Postby Alexander.Gettinger » Mon Apr 02, 2012 10:09 am

Indicator is a port of indicator from request viewtopic.php?f=27&t=5424

Formulas:
The bar is:
UP, if Close>UpPrice;
DN, if Close<DnPrice;
Middle, if DnPrice<Close<UpPrice.

UpPrice=MiddlePrice+D,
DnPrice=MiddlePrice-D, where
MiddlePrice=(High+Low)/2,
D=(High-Low)/K.

VSA.PNG


Download:
VSA.lua
(2.15 KiB) Downloaded 1446 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: VSA indicator

Postby chimpy » Mon Mar 25, 2013 8:10 am

Alexander,

Thanks so much for this. I must have missed the notification and have only just discovered it again. It seems to be popular by the look of the downloads.

I will have a good look later.

By the way, whats happened to Allpin, does he work with you guys anymore?
Are you able to look at any of the coded programs (exe) I have a small problem with the CSV project
viewtopic.php?f=27&t=4685
Is this your area of skill?

chimpy
chimpy
FXCodeBase: Initiate
 
Posts: 112
Joined: Fri Jun 10, 2011 10:32 am

Re: VSA indicator

Postby Jeffreyvnlk » Fri Jul 05, 2013 1:40 pm

Alexander.Gettinger wrote:Indicator is a port of indicator from request viewtopic.php?f=27&t=5424

Formulas:
The bar is:
UP, if Close>UpPrice;
DN, if Close<DnPrice;
Middle, if DnPrice<Close<UpPrice.

UpPrice=MiddlePrice+D,
DnPrice=MiddlePrice-D, where
MiddlePrice=(High+Low)/2,
D=(High-Low)/K.

VSA.PNG


Download:
VSA.lua


May I ask what is K for ? May I understand that Up bar is a bar which got the close higher than that of a previous bar. It was appreciated if you could explain why using Middle Price in this formula
Thank you
Jeffreyvnlk
FXCodeBase: Graduate
 
Posts: 302
Joined: Wed Apr 11, 2012 2:17 pm

Re: VSA indicator

Postby Apprentice » Sat Jul 06, 2013 11:07 am

K is a constant set by the user.
Code: Select all
 local D=(source.high[period-1]-source.low[period-1])/K;
Middle=(source.high[period-1]+source.low[period-1])/2;
    local Up=Middle+D;
    local Dn=Middle-D;

or simplified

Up = source.median[period-1] + (source.high[period-1]-source.low[period-1])/K;
Dn = sourcemedian[period-1] - (source.high[period-1]-source.low[period-1])/K;

If price is greater then Up then we will have Up Bar
If price is less then Dn then we will have Bar
otherwise we will have Middle Bar
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: VSA indicator

Postby angelalzate » Thu Mar 12, 2015 3:38 pm

Good afternoon. Could anyone explain me what is the indicator , what is its function ?. Thank you very much and happy evening .
angelalzate
 
Posts: 5
Joined: Mon Mar 09, 2015 3:42 pm

Re: VSA indicator

Postby Apprentice » Mon Oct 29, 2018 7:11 am

The indicator was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot] and 65 guests