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
Actually in the indicator they are simply drawing arrows. So I edited it to give number 1 for buying 2 for selling. That's all.
For that variable I increased the buffer. That's all. Please tell me whether the EA code is right or wrong. If wrong means why or what should I do.
Is my iCustom() is correct or not?
Does the Indicator do what you mean it to do ? how have you tested it ? if the modifications to the Indicator has caused an issue how will you know ? you will blame it on your iCustom() call.
Why don't you read the original buffers and check if they are EMPTY_VALUE or not ?
Does the Indicator do what you mean it to do ? how have you tested it ? if the modifications to the Indicator has caused an issue how will you know ? you will blame it on your iCustom() call.
Why don't you read the original buffers and check if they are EMPTY_VALUE or not ?
My modification doesn't affect the original code. I'm just setting flags. If the indicator draws a buying arrow I'm setting the flag as 1 or if selling arrow, I'm setting it as 2. Thats all. So if I access the actual buffers I ll get the Price where the indicator was set. I dont need it. I want to know whether it is a buy or sell arrow. Can you please help me with that?
My modification doesn't affect the original code. I'm just setting flags. If the indicator draws a buying arrow I'm setting the flag as 1 or if selling arrow, I'm setting it as 2. Thats all. So if I access the actual buffers I ll get the Price where the indicator was set. I dont need it. I want to know whether it is a buy or sell arrow. Can you please help me with that?
Show your modified Indicator Code. what you have described will not be accomplished by these modifications . . .
Show your modified Indicator Code. what you have described will not be accomplished by these modifications . . .
Modified Code:
You are not setting any values in the trade_signal buffer . . . and you have 2 buffers with the same name, does this code even compile ?
I'm not getting anything from those buffers. I used original code of the indicator. Please check the test EA code given below.
Please tell me why I 'm not getting any value other than 2147483647.
Is there any problem with the shift value? I have attached the original indicator below.
I'm not getting anything from those buffers. I used original code of the indicator. Please check the test EA code given below.
Please tell me why I 'm not getting any value other than 2147483647.
Is there any problem with the shift value? I have attached the original indicator below.
You are getting the buffer values for bar 0 . . .
. . . there is never an arrow at bar zero so the buffer will always hold EMPTY_VALUE for bar zero, put the Indicator on a chart and use the Data Window to understand the values in the Indicator's buffers . . .
RaptorUK,
I have an EA I made that uses multiple pairs, 28 to be exact. Using iCustom, it loads every used indicator, processes all bars, and unloads every used indicator, each time (OnTimer 10 seconds) for all 28 pairs. This fills up the log fast and embedding the EA code or having an IndicatorCounted alternative (someway to count only bars needed, and has to include special cases where indicator bar uses previous bar in calculations, and get the same values as when using iCustom. There's a valid need for me to have an alternative. Can you provide a way to use an indicator (even if all I have is ex4 since that is all that is provided these days because of copy protection and less people are sharing their source code).
Thanks in advance!
Kindest regards,
Don
I have an EA I made that uses multiple pairs, 28 to be exact. Using iCustom, it loads every used indicator, processes all bars, and unloads every used indicator, each time (OnTimer 10 seconds) for all 28 pairs. This fills up the log fast and...
Try setting the OnTimer to less than 10 sec., 1 or 2 sec. e.g. then the indicators are not unloaded.
Try setting the OnTimer to less than 10 sec., 1 or 2 sec. e.g. then the indicators are not unloaded.