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
FXCodeBase: Initiate
 
Posts: 114
Joined: Mon May 29, 2017 3:36 pm



Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 23 guests