Page 67 of 98

Re: Volume Indicators for MT4

Posted: Wed Nov 08, 2023 3:55 am
by mrtools
naluvs01 wrote: Wed Nov 08, 2023 3:30 am By the way, if it's not too much trouble, can you add a MA with alerts? Thanks again for your time and consideration!!!!!!!!!!!!!!!!
Ma and alerts added.

Re: Volume Indicators for MT4

Posted: Wed Nov 08, 2023 4:58 am
by naluvs01
mrtools wrote: Wed Nov 08, 2023 3:55 am Ma and alerts added.
Mr. Tools, Mr. Tools, Mr. Tools, Mr. Tools, Mr. Tools...thank you! I don't know why you do what you do, but I am forever appreciative of your work and will forever have gratitude for your time and expertise. I pray that you have eternal success in all your endeavors and thank you again for your unselfish time helping people as myself, strive to change our financial future.

It's been a journey that would have been IMPOSSIBLE without your help!!!!

Re: Volume Indicators for MT4

Posted: Thu Nov 16, 2023 1:59 am
by mades
Hello friends,

can you please point me to a multi tf volume indicator, that would show aggregated volume bars? Or plotting them on top of normal volume bars. Thank you!

Re: Volume Indicators for MT4

Posted: Sun Nov 26, 2023 4:08 pm
by Woodyz
Hello everybody.
Look I have been trying to track down an anchored VWAP.
The difference is that the fixed point of origin can set by you, simply by dragging and dropping it where you want the VWAP to start.

Re: Volume Indicators for MT4

Posted: Sun Nov 26, 2023 5:20 pm
by TransparentTrader
Woodyz wrote: Sun Nov 26, 2023 4:08 pm Hello everybody.
Look I have been trying to track down an anchored VWAP.
The difference is that the fixed point of origin can set by you, simply by dragging and dropping it where you want the VWAP to start.

Sent you a DM with a bunch of files. Let me know if they match your request.

Re: Volume Indicators for MT4

Posted: Sun Nov 26, 2023 5:55 pm
by Woodyz
TransparentTrader wrote: Sun Nov 26, 2023 5:20 pm Sent you a DM with a bunch of files. Let me know if they match your request.
Thank's for the effort Mate
I have already looked at those & not what I'm wanting.
Again thank you
Trading view has it available as one of their std indi's

Re: Volume Indicators for MT4

Posted: Sun Nov 26, 2023 6:21 pm
by TransparentTrader
Woodyz wrote: Sun Nov 26, 2023 5:55 pm Thank's for the effort Mate
I have already looked at those & not what I'm wanting.
Again thank you
Trading view has it available as one of their std indi's
Image

Here's something interesting I found: https://www.tradingview.com/support/sol ... ored-vwap/

This is a basic tutorial explaining how the default drawing tool works, along with the options you have to adjust the bands and change the colors.

To be more specific:
Bands Calculation Mode can be set to "Standard Deviation" or "Percentage"
You have the option for up to 3 sets of bands, each with their own multiplier.
Source can be: Open, High, Low, Close, HL2, HLC3, OHLC4, HLCC4
You can change the color for the VWAP line and the upper/lower lines individually for each of the 3 sets of bands included.

Since it's a drawing tool, I first thought there isn't a script for it like there is for the other open-source indicators on TradingView.

But back in October 2021, when TradingView released a new interactive input mode for Pine scripts, they used the Anchored VWAP as an example and gave away the source code for doing so.

"This is code for an Anchored VWAP indicator where the anchor point is set interactively, just as with the drawing tool of the same name:"

Code: Select all

//@version=5
indicator("Anchored VWAP", overlay=true)
src = input.source(hlc3, "Source")
startCalculationDate = input.time(timestamp("20 Jan 2021"), "Start Calculation", confirm=true)
vwap_calc() =>
    var srcVolArray = array.new_float(na)
    var volArray = array.new_float(na)
    if startCalculationDate <= time
        array.push(srcVolArray, src*volume)
        array.push(volArray, volume)
    else
        array.clear(srcVolArray), array.clear(volArray)
    array.sum(srcVolArray)/array.sum(volArray)
anchoredVwap = vwap_calc()
plot(anchoredVwap, "VWAP", linewidth=3)
"When it is necessary to select both a price and time simultaneously, use an inline parameter with the same value in both function calls:"

Code: Select all

//@version=5
indicator("Point", overlay=true)
myPrice = input.price(100, inline="Point", confirm=true)
myTime = input.time(timestamp("2020-02-20"), inline="Point", confirm=true)
lblText = str.format("Price: {0, number}\nTime: {1, date} {1, time}", myPrice, myTime)
var l1 = label.new(myTime, myPrice, lblText, xloc=xloc.bar_time)
"After adding an indicator and making an initial interactive selection on the chart, you can modify the selection points by selecting the indicator and moving the points on the chart."

Someone then turned this into a script on TradingView and the code is below:

Code: Select all

//@version=5
indicator("Anchored VWAP", overlay=true)
src = input.source(hlc3, "Source")
startCalculationDate = input.time(timestamp("20 Jan 2021"), "Start Calculation", confirm=true)
vwap_calc() =>
    var srcVolArray = array.new_float(na)
    var volArray = array.new_float(na)
    if startCalculationDate <= time
        array.push(srcVolArray, src*volume)
        array.push(volArray, volume)
    else
        array.clear(srcVolArray), array.clear(volArray)
    array.sum(srcVolArray)/array.sum(volArray)
anchoredVwap = vwap_calc()
plot(anchoredVwap, "VWAP", linewidth=3)
mrtools, kvak, or any of the programmers here: Using the information provided above, would it be indeed possible to create the type of Anchored VWAP that Woodyz is looking for? Or does it already exist on MT4 in some fashion?

Re: Volume Indicators for MT4

Posted: Mon Nov 27, 2023 6:20 am
by kvak
TransparentTrader wrote: Sun Nov 26, 2023 6:21 pm Here's something interesting I found: https://www.tradingview.com/support/sol ... ored-vwap/
Hello, sorry I dont know.....

Re: Volume Indicators for MT4

Posted: Mon Nov 27, 2023 6:51 am
by TransparentTrader
kvak wrote: Mon Nov 27, 2023 6:20 am Hello, sorry I dont know.....

No problem. Maybe mrtools or someone else might know how to implement this into MT4?

The alternative would be to start searching the MQL5 marketplace for free/paid versions to fulfill Woodyz's request.

Re: Volume Indicators for MT4

Posted: Mon Nov 27, 2023 9:06 am
by mrtools
TransparentTrader wrote: Mon Nov 27, 2023 6:51 am No problem. Maybe mrtools or someone else might know how to implement this into MT4?

The alternative would be to start searching the MQL5 marketplace for free/paid versions to fulfill Woodyz's request.
I don't know either, looking for some examples in mt4 or mt5 but not finding many.