SEARCHING FOR SIMPLE VWAP INDICATOR THAT IS COMPATIBLE WITH MT4 EA

1
Hello! I have spent DAYS searching for a simple vwap indicator that is compatible with EA'S I have one that works on mt4 but not for my EA I am building, Please help modify the current one I have which I will upload or please create one that is compatible, They are all over trading view in Pine but I cant seem to find one that works with EA, here is the calculation for VWAP, THANK YOU SO MUCH IN ADVANCE!!!

//@version=3
study("VWAP", overlay=true)

// There are five steps in calculating VWAP:
//
// 1. Calculate the Typical Price for the period. [(High + Low + Close)/3)]
// 2. Multiply the Typical Price by the period Volume (Typical Price x Volume)
// 3. Create a Cumulative Total of Typical Price. Cumulative(Typical Price x Volume)
// 4. Create a Cumulative Total of Volume. Cumulative(Volume)
// 5. Divide the Cumulative Totals.
//
// VWAP = Cumulative(Typical Price x Volume) / Cumulative(Volume)

cumulativePeriod = input(14, "Period")

typicalPrice = (high + low + close) / 3
typicalPriceVolume = typicalPrice * volume
cumulativeTypicalPriceVolume = sum(typicalPriceVolume, cumulativePeriod)
cumulativeVolume = sum(volume, cumulativePeriod)
vwapValue = cumulativeTypicalPriceVolume / cumulativeVolume

plot(vwapValue)


Who is online

Users browsing this forum: Antonov, Applebot [Crawler], BeatlemaniaSA, ChatGPT [Bot], dininurin, Facebook [Crawler], Grapeshot [Bot], IBM oBot [Bot], knglerxst, lyo99, Proximic [Bot], Seznam [Bot] and 82 guests