Desperate Trying to get Indicator with Icustom
noname2: , it's stay Constant Empty Valule !
double UP = iCustom(Symbol(),Period(),"ds_HDiv_OsMA_01",fastEMA,slowEMA,signalEMA,RightBars,LeftBars,MaxFanSize,5,1);
double DOWN = iCustom(Symbol(),Period(),"ds_HDiv_OsMA_01",fastEMA,slowEMA,signalEMA,RightBars,LeftBars,MaxFanSize,6,1);
double DOWN = iCustom(Symbol(),Period(),"ds_HDiv_OsMA_01",fastEMA,slowEMA,signalEMA,RightBars,LeftBars,MaxFanSize,6,1);
Of course, all you should ever get with those calls is EMPTY_VALUE.
You are trying to read Buy[1], but the smallest variable p ever is 1+FractRightBars.for(p=1+FractRightBars; p<limit; p++)
{
if(FrUpBuffer[p]!=0)
{
int count=0;
for(i=FractLeftBars+p; i<Bars; i++)
{
if(FrUpBuffer[i]!=0)
{
if((FrUpBuffer[i]<FrUpBuffer[p]) && (High[i]>High[p]))
{
DrawIndicatorTrendLine(Time[i],Time[p],OsmaBuffer[i],OsmaBuffer[p],Red,2);
Buy[p] = OsmaBuffer[p];- You should write a self documenting function instead of calling iCustom
directly, see Detailed
explanation of iCustom - MQL4 forum
- Why did you post in the MT5/EA forum with your MT4 code?
whroeder1:
Of course, all you should ever get with those calls is EMPTY_VALUE.
You are trying to read Buy[1], but the smallest variable p ever is 1+FractRightBars.for(p=1+FractRightBars; p<limit; p++)
{
if(FrUpBuffer[p]!=0)
{
int count=0;
for(i=FractLeftBars+p; i<Bars; i++)
{
if(FrUpBuffer[i]!=0)
{
if((FrUpBuffer[i]<FrUpBuffer[p]) && (High[i]>High[p]))
{
DrawIndicatorTrendLine(Time[i],Time[p],OsmaBuffer[i],OsmaBuffer[p],Red,2);
Buy[p] = OsmaBuffer[p];- You should write a self documenting function instead of calling iCustom
directly, see Detailed
explanation of iCustom - MQL4 forum
- Why did you post in the MT5/EA forum with your MT4 code?
Thanks for getting back
1. I tried another previous bars too , no luck. The FrUpBuffer and FrDownBuffer won't show result either
2. I will read and try that, then will inform you if it work
3. I did try to go to MQL4 it redirected me to this forum, so i thought it's the same with new name now !
Here the Indicator and my iCustom Code
double UP = iCustom(Symbol(),Period(),"ds_HDiv_OsMA_01",fastEMA,slowEMA,signalEMA,RightBars,LeftBars,MaxFanSize,5,1);
double DOWN = iCustom(Symbol(),Period(),"ds_HDiv_OsMA_01",fastEMA,slowEMA,signalEMA,RightBars,LeftBars,MaxFanSize,6,1);
Thanks for any help !