Disliked{quote} You are talking about two different things, the supplied piece of code is for a MTF shift and I suspect the inputs Bar shift is to shift the indicator back in time??Ignored
Can you introduce me similar to this indicator?
1
I will code your pivot EAs for no charge 28 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
Disliked{quote} You are talking about two different things, the supplied piece of code is for a MTF shift and I suspect the inputs Bar shift is to shift the indicator back in time??Ignored
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// :copyright: gabasco
//@version=5
indicator(title="Projected Volume", overlay=false, format = format.volume, max_bars_back=5000)
// 1. Input
volumeTypeInput = input.string(defval="Financial", title="Volume Type", options=["Financial", "Quantity"], group="Settings")
maTypeInput = input.string(defval="SMA", title="Type", options=["SMA", "EMA", "WMA", "RMA", "HMA", "VWMA", "SWMA"], group="Moving Average")
maLengthInput = input.int(defval=20, title="Length", minval=1, step=1, group="Moving Average")
maShowInput = input.bool(defval=true, title="Show", group="Moving Average")
tradingHoursInput = input.float(defval=24.0, title="Trading Hours", minval=0.5, maxval=24, step=0.5, tooltip="Affects only the daily timeframe", group="1-day timeframe (only)")
// 2. Variables
color realColor = close > open ? color.rgb(146, 210, 204) : color.rgb(247, 169, 167)
color projectedColor = color.rgb(181, 182, 187)
float realVol = 0.0
float cumVol = 0.0
float projectedVol = 0.0
float tf = 0
float tradingMinutes = tradingHoursInput * 60
float dayInMinutes = 1440
// 3 . Functions
getMA(maType, maLen) =>
switch maType
"SMA" => ta.sma(realVol, maLen)
"EMA" => ta.ema(realVol, maLen)
"WMA" => ta.wma(realVol, maLen)
"RMA" => ta.rma(realVol, maLen)
"HMA" => ta.hma(realVol, maLen)
"VWMA" => ta.vwma(realVol, maLen)
"SWMA" => ta.swma(realVol)
// 4. Calculations
if timeframe.isdaily
tf := timeframe.in_seconds(timeframe.period) * tradingMinutes / dayInMinutes
else
tf := timeframe.in_seconds(timeframe.period)
elapsedTime = (timenow - time) / 1000
if volumeTypeInput == "Financial"
projectedVol := volume * close * tf / elapsedTime
realVol := volume * close
else
projectedVol := volume * tf / elapsedTime
realVol := volume
// Check for error
cumVol += nz(volume)
if barstate.islast and cumVol == 0
runtime.error("No volume is provided by the data vendor.")
ma = getMA(maTypeInput, maLengthInput)
// 5. Drawings
plot(barstate.islast ? projectedVol : na, title="Projected", color=barstate.islast ? projectedColor: realColor, style = plot.style_columns)
plot(realVol, color=realColor, title="Real", style = plot.style_columns)
plot(maShowInput ? ma : na, title="MA", color=color.blue, linewidth=1) Disliked{quote} hello thank you for your help.. im not sure if i understand .. are u saying the hallow arrows are non repaint even on current candle? Also i noticed that when you switch time frames the arrows are all different postions, should i not chnage current time frame to prevent this or is there a fix? it was difficult to interpret what u were saying...my appoligies ...Ignored
Disliked{quote} It's not working as you expect because it's written by chatGPT, which doesn't know what it's doing as it just pieces together random things from related searches that looks like what a potential answer may be. There are several issues with it, currently chatgpt can't reliably make usable mql4/5 codes. Based on what's there, the attached indicator may do what you want. ATR_Exceeded - plots chart signals for candles that exceed a multiple of an atr - plots in the subwindow the atr, atr ratio used, and candle size, all in points - candle size...Ignored
Disliked{quote} It's an ex4 format which cannot be opened and you probably don't have the source file? Hercs.Ignored
DislikedHello, Programmers!! I found an RSI indicator, when I want to put the same indicator with another value, it deletes the arrows of the previous indicator, can it be corrected? I would be very grateful, if you can fix this problem, greetings and happy weekend!!{file}Ignored
Disliked{quote} - when developing, keep the experts tab open in the terminal toolbox; there is an error hinting what the issue is - " int i=0 buf[i]-buf[i-1]" what index is 0-1? Also you don't need to declare an i, just use 0 and 1 directly.Ignored
Disliked{quote} hola, me pregunto si alguien puede descompilar este ex4 y ajustar el indicador para que solo retrase la barra en lugar de 2. muchas gracias.... {archivo}Ignored