Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the source file.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
We can't see your broken code.
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the source file.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
We can't see your broken code.
#define CumulativeDelta "Indicators\\Market\\Cumulative Delta MT5.ex5" #resource "\\" + CumulativeDelta /// CumulativeDelta inputs input string Label2 = "Cumulative Delta inputs"; input int Mode = 2; input int Timeframe = 0; input int DeltaDrawing = 0; input int CumDeltaDrawing = 0; input int Alerts = 0; input int AlertstoCsv = 1; input int Volumestype = 0; input int Volumesmode = 1; input bool DsSmoothing = true; input int DsPeriod = 0; input double DsContract = 0; input int RVperiod = 0; input double AlertForDemand = 0; input double AlertForsupply = 0; input int Barslevel = 0; input int Timming = 5000; int HandleCD; double CDBuy[]; double CDSell[]; double CDCumDelta[]; double CDPriceMovement[]; double CDSetofday[]; double CDSetofweek[]; double CDSetofmonth[]; double CDReversebar1[]; double CDReversebar2[]; double CDRatio[]; HandleCD = iCustom(Symbol(), Period(),"::" + CumulativeDelta, Mode, Timeframe, DeltaDrawing, CumDeltaDrawing,Alerts, AlertstoCsv, Volumestype, Volumesmode, DsSmoothing, DsPeriod, RVperiod, AlertForDemand, AlertForsupply,Barslevel,Timming ); ArraySetAsSeries( CDBuy, true); ArraySetAsSeries(CDSell , true); ArraySetAsSeries(CDCumDelta , true); ArraySetAsSeries( CDPriceMovement , true); ArraySetAsSeries( CDSetofday, true); ArraySetAsSeries( CDSetofmonth, true); ArraySetAsSeries( CDSetofweek, true); ArraySetAsSeries( CDReversebar1, true); ArraySetAsSeries( CDReversebar2 , true); ArraySetAsSeries( CDRatio, true); // Cumulatie delta CopyBuffer(HandleCD,0,0,3,CDBuy); CopyBuffer(HandleCD,1,0,3, CDSell); double CumulativeDBuyVolume = CDBuy[0]; double CumulativeDSellVolume = CDSell[0];
Did not consider it broken cause this is how I've done it for every other custom indicator and gotten the values I've wanted
What part of Be precise and informative about your problem was unclear?
Your posted code is without context. No idea if iCustom and setAsSeries is in the same function or a different function then CopyBuffer.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello there's a custom indicator that I'm loading into iCustom that has 10 buffers in the data window. The buffers I want to get values from are the first and second ones and using copy buffer on "0" and "1" returns me a random string of numbers that is not the value I want, this number doesn't change at all when I change the buffer number , tried it all the way to "9" still got the same number.
Is there a way to find the buffer number of the values I see in the data window?