Finding objects on chart
-
I'm using a custom indicator called Trend Scalp. I don't really know if it's a repainter or not, I'm asking this to understand process so please indulge me either way.
It paints a buy/sell arrow when buffers 2/3 are 100/-100 respectively.
But it paints a retrace arrow that is not in a buffer, and Im trying to figure out how to capture this retrace arrow. I added custom colors to the original mq4 for this reason.
Any advice on how to accomplish this?
https://fxdreema.com/shared/PyNWlK2Tc -
Let me step this back to this setup
https://fxdreema.com/shared/HrVmvOPZd -
The only option I know if trying to find that arrow as an object instead of as a buffer. Is it visible as an object on the 'Objects' window of the platform? If so you can use it. Otherwise, you will need some custom code.
-
It's driving me bonkers because I've gotten this to work before with Loop for Each Object. You can see here https://fxdreema.com/shared/qnhnkpbOd , I'm trying with a different Indicator. (Loading manually in Strategy Tester) Im giving it name prefix, color, arrow code... How could it miss? The indicator is called RSI ma simple 1.1 if you want to try it
-
Well, that means the 'for each object ' block can find it. That's half of the solution. The other half is knowing when the arrow is drawn on the chart. I see you are using a 'once per bar' block. That measn the search for the arrow will only happen at the open of each new candle. Are you sure the arrow will be there at that moment and will not be changed later?
-
@vonxolo
As I am aware you indicator is the one from forex-station. It only repaints for the current bar. It has buffers that clearly show the object (arrow) directions. Identifying the objects is unlikely the best way to use the indicator in EA. Work on the buffers may be a better approach.