Been working on an EA for a couple months.
I have recently found an indicator, that draws rectangles.
1. Gravity/transition zone
2. Breakout up for a buy with multiple tps
3. Breakout down for a sell with multiple tps
Will try to attach code, it's on a laptop and I'm currently on mobile.
8 iCustom lines for each variable, they add each time it puts rectangles on the chart. 1 is the long 214 number and the others are 0 every time.
Do I need to print the high and low of the rectangle, I am confused?
I dont have the mq4 file only the ex4.
If I can combine the indicators with the 5 I currently use it should provide me with a descent return. 90%+.
- cannot return number using iCustom
- I have to Code An EA with Icustom function but i do not have the mql4 file
- a box on the bar
I open the data window to watch what's going on the chart I'm seeing squares and rectangles, some with labels some without.
- iCustom does not read variables or rectangles. It reads indicator buffers, only.
- "long 214 number"
Other constants - Named Constants - Constants, Enumerations and Structures - MQL4 ReferenceConstant Description Value EMPTY_VALUE Empty value in an indicator buffer. Default custom indicator empty value 2147483647 (0x7FFFFFFF) - Without seeing the indicator, we can only guess. I may not have any buffers.
- Show us the indicator and your code.
William Roeder:
- iCustom does not read variables or rectangles. It reads indicator buffers, only.
- "long 214 number"
Other constants - Named Constants - Constants, Enumerations and Structures - MQL4 ReferenceConstant Description Value EMPTY_VALUE Empty value in an indicator buffer. Default custom indicator empty value 2147483647 (0x7FFFFFFF) - Without seeing the indicator, we can only guess. I may not have any buffers.
- Show us the indicator and your code.
So if I'm getting those number most likely there are 0 buffers?
FXVORTEX is the indicator.
I was trying to single out the individual variables, to plug them into my code, so a basic iCustom call numbered 0-7. I was attempting to plug them in as TP and SL as they were called on the chart.
double FX0=iCustom(NULL,0,"FXVORTEX",0,1)
Repeated numbering to
double FX7=iCustom(NULL,0,"FXVORTEX",7,1)
always on the closed candle.
I will try later today to login to share my exact code, from my laptop. My battery is completely done and I need to get a new one, unplug charger it dies immediately.
Had to share zip file because its what's on my phone, hope it's not against the rules. Let me know if it is.
Files:
FXVORTEX.zip
1300 kb
William Roeder:
Data Window (control-D) shows one buffer, always empty.
Buffer 0 is the 214...Data Window (control-D) shows one buffer, always empty.
Buffers 1-7 are 0
Since I am using it incorrectly is there a way to read the highs and lows of each rectangle produced?
I was assuming the buffers State the variables that I needed.
Rochelle Carter:
Buffer 0 is the 214...
Buffer 0 is the 214...
Buffers 1-7 are 0
Since I am using it incorrectly is there a way to read the highs and lows of each rectangle produced?
I was assuming the buffers State the variables that I needed.
Looks like you can wait for rectangles by the name of "Rect0"+Time[1] to "Rect3"+Time[1] to appear, then query them for the prices they represent.
Seng Joo Thio:
Thanks I'll try that
Looks like you can wait for rectangles by the name of "Rect0"+Time[1] to "Rect3"+Time[1] to appear, then query them for the prices they represent.
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