In your call of the Indicator what is the 3 value in this iCustom(NULL,15,"PLDot",3,0,0)
ForexSurfr:
Yup . . . as far as I know you can only pass externs and read from buffers.
RaptorUK,
This is a passed parameter of the averaging period for the indicator. It though is not an external parameter though. Does this make a difference?
ForexSurfr
- There are NO external variables in the indicator, therefor your call is BOGUS. Drop the 3
SetIndexBuffer(0,MovingBuffer); SetIndexBuffer(1,UpperBuffer); SetIndexBuffer(2,LowerBuffer); SetIndexBuffer(3,ResBuffer); SetIndexBuffer(4,SupBuffer); SetIndexBuffer(5,TempBuffer);
Document your calls#define PLDOT_MOVING 0 #define PLDOT_UPPER 1 #define PLDOT_LOWER 2 #define PLDOT_RES 3 #define PLDOT_SUP 4 #define PLDOT_TEMP 5 ... iCustom(NULL,15,"PLDot", PLDOT_MOVING, 0)
ArraySetAsSeries(MovingBuffer,true); ArraySetAsSeries(UpperBuffer,true); ArraySetAsSeries(LowerBuffer,true); ArraySetAsSeries(ResBuffer,true); ArraySetAsSeries(SupBuffer,true); ArraySetAsSeries(TempBuffer,true);
Unnecessary(iClose(NULL,0,i)+iLow(NULL,0,i)+iHigh(NULL,0,i))/3)
Why use function calls when you can use the simple arrays(Close[i]+Low[i]+High[i])/3)
WHRoeder:
- There are NO external variables in the indicator, therefor your call is BOGUS. Drop the 3
- Document your calls
- Unnecessary
- Why use function calls when you can use the simple arrays
WHRoeder & RaptorUK,
Thank you for your comments. I will make these suggested changes.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am currently testing an EA that contains a custom indicator. The custom indicator has a 0 value for the time interval so that it computes off of the active chart. I currently have a 15 minute chart open with the custom indicator on the chart. When I ran the EA through the tester, I ran a number of variables to the journal for review. In the journal I noted that the tester utilized data from the M1 time interval even though I have a 15 minute chart open. Can someone help me with why the EA did not utilize the chart time interval or the time interval specified in the custom indicator in the EA? In other words, as stated above, my custom indicator has a 0 value for the time interval. I expected to see the custom indicator pick up the time interval specified in the EA which was 15 minutes. In other words the EA uses the custom indicator with a 15 minute parameter in the indicator formula.