Volume Momentum

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Volume Momentum

Postby isamegrelo » Wed Aug 30, 2017 6:00 pm

This is formula:

study(title ="TheLark Volume Momentum",overlay=false)

//inputs
Length = input(14,minval=1)
atype = input(1,minval=1,maxval=3,title="1=sma, 2=ema, 3=wma")
mv = input(false, title="Multiply the volume?")
cc = input(false,title="Change color?")
//calc
avg = atype == 1 ? sma(volume,Length) : atype == 2 ? ema(volume,Length) : wma(volume,Length)
avgm = mv ? (avg - avg[Length]) * volume : (avg - avg[Length])
//plot
col = cc and avgm >= avgm[1] ? #0094FF : #FF006E
plot(avgm,style=histogram,linewidth=5,color=col)
isamegrelo
 
Posts: 38
Joined: Mon May 29, 2017 3:36 pm

Re: Volume Momentum

Postby Apprentice » Fri Sep 01, 2017 3:45 am

User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17407
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 5 guests