Download MetaTrader 5
To add comments, please log in or register
Add our Twitter channel to friends and follow the news!
Wemerson Guimaraes
560
Wemerson Guimaraes 2015.04.27 17:44 

Hi,

I'm have a good indicator that gives-me great signals with arrows that indicates the moment to make mu operations.

I'm making an EA that need to get the moment of the arrow, and the direction of the arrow, to analyse it with other metrics... There are a way to do this?

whroeder1
14457
whroeder1 2015.04.27 20:57  
Wemerson Guimaraes
560
Wemerson Guimaraes 2015.05.06 21:39  
Thanks WHRoeder!
Wemerson Guimaraes
560
Wemerson Guimaraes 2015.07.02 23:50  

Hi, i'm using iCustom and works fine... thanks for the  link.

I realize that iCustom returns a calculated data. But, there are some indicators that only prints an arrow or other graphic indication. There are a way to detect the moment that the indicator graphical element is printed?

 

Sorry for my poor english, make my text with google translator help! 

 

--- Edited ---

 

Forgot to mention: The Arrows not appear on the Objects List!

Keith Watford
Moderator
9597
Keith Watford 2015.07.03 04:19  
wemersonrv:

Hi, i'm using iCustom and works fine... thanks for the  link.

I realize that iCustom returns a calculated data. But, there are some indicators that only prints an arrow or other graphic indication. There are a way to detect the moment that the indicator graphical element is printed?

 

Sorry for my poor english, make my text with google translator help! 

 

--- Edited ---

 

Forgot to mention: The Arrows not appear on the Objects List!

Open the data window on the platform (Ctrl D) and most indicators will show values for the buffers that paint the arrows. You can usually work out which buffers are responsible for the arrows. Hover your mouse cursor over the arrow and you should see which buffer shows a value.
Wemerson Guimaraes
560
Wemerson Guimaraes 2015.07.03 12:30  
Great my friend... thanks.
Wemerson Guimaraes
560
Wemerson Guimaraes 2015.07.03 16:02  
GumRai:
Open the data window on the platform (Ctrl D) and most indicators will show values for the buffers that paint the arrows. You can usually work out which buffers are responsible for the arrows. Hover your mouse cursor over the arrow and you should see which buffer shows a value.

Tried to do as you say, but not shows me a value for the arrow, and not the buffer... i try to call iCustom on all buffers... but only returns me: 0 or the value 2147483647.0

iCustom(Symbol(), PERIOD_CURRENT, "Shat-05", ......., TheBuffer, shift) ; 


Arrow

whroeder1
14457
whroeder1 2015.07.03 16:32  
You can't see the buffer, only the value of one element of the buffer, the element you have your cursor on. We have no idea what the value of TheBuffer and shift are.
Wemerson Guimaraes
560
Wemerson Guimaraes 2015.07.03 17:43  
WHRoeder:
You can't see the buffer, only the value of one element of the buffer, the element you have your cursor on. We have no idea what the value of TheBuffer and shift are.

TheBuffer is my variable setted with the buffer value, because i call all buffers to inspect... and shift is because i am testing on previous bars too... just to see the results...

As you can see on the print, i need to get the value 1.1083 on one of the buffers, right? But only returns me: 0 or the value 2147483647.0

honest_knave
Moderator
2152
honest_knave 2015.07.03 17:47  
2147483647 is EMPTY_VALUE
JD4
1101
JD4 2015.07.03 17:47  
WHRoeder:
You can't see the buffer, only the value of one element of the buffer, the element you have your cursor on. We have no idea what the value of TheBuffer and shift are.

WH is right.  The buffer is basically like a temporary storage area, you don't really care what the container looks like at this point anyway, since it has little bearing, other than how to get at the information, on the code.  You just want to get at the information stored inside the buffer.


Edit: Went back through and re-read the OP, and thought of something that might change how to look at this whole problem.  People who know more than me (which is probably everybody else) about coding in MQL probably already have considered this, but not sure wemersonrv has.  In reality, you don't care about the arrows themselves.  Just the fact that they showed up, and what specifically triggered them to appear.  If it was a price crossing a certain calculated value, then the direction the crossing happened, from higher to lower, or lower to higher.

/ /12
To add comments, please log in or register