EA with object on the chart
-
Hello,
Please admin can you show me or give me an example of trading with object on the chart not buffer.
Thank you
-
I also have the same problem here. Please guide us. Thanks.
-
@agbatoadesina , i hope you don't mind using your topic for the same problem.
Experts, please help. I've tried. I'm not sure maybe i don't get the right buffer??
How to use the rectangle object as buffer? -
@agbatoadesina @biztet @agbatoadesina
Every object has certain properties. You will need to FIND these properties. A shortcut is CTRL+B. Here, you can access:
name, price level, color, description, etc...
Thats how your EA will pick up the object. Usually by name.
For example Biztet, try to find the name of the red1 and red2.
red1 and red2 are drawn on a price. You will use CONDITION block as follows:
Left Parameter = Market properties. Here you can leave the ASK or change to BID or MID.
Then the condition is "Crosses above" and the right parameter is OBJECT ON CHART
See the link here.
https://fxdreema.com/shared/wsf1kK1Rb
Your job is to figure out what name red1 shares and you will do this by hovering over red1 or CTR+B and manually looking for it.
-
Thanks @TitanGeorge ,
But i have try this, and the Tester cannot load it.
For what reason i don't know.
I have also tried the Attribute both numeric and text, also cannot work.
Please help, thanks.
By the way, you did find the indicator i attached right? Fib_SR.mq4
-
Try putting "Once Per Bar" after "Condition" and Before "Buy Now"
Above "Condition" you can use the "No Trade" block or you can use the "Check Trades Count" after Condition.
I would personally use "No Trade" above condition. If you wish to have more than 1 position open at a time for that specific condition, then use the "Check Trades Count" above the "Condition" block
By putting "once per bar" above "condition" you're messing up the logic. As soon as a new bar opens, it will only run the test once. Price is static in that first tick so it's not "crossing" anything. When you fix it, try it, and let me know if it works.
Like this:
-
Done!
But still cannot load on tester...I've done change Attribute to text > Name.
Still same result, EA cannot load.
-
You don't need "indicator is visible" if the indicator draws objects.
Share your tree by going on the upper left and under PROJECTS go to CREATE A SHARED PROJECT
-
Here it is. Thank you for your time and effort.
-
-
I took off the "once per bar" feature. I think it was redundant but keep testing it, it might be needed if you wish to take multiple trades (I wouldn't recommend it)
Overall, you have a good strategy. It's difficult to test it on MT4. You'll need to constantly reload the Fibo indicator.
If you can manage your losses and let the winners run, you can make some money off this EA.
-
Yes! I like this. Thank you so much @TitanGeorge .
Is there a way we can refresh the indicator daily?
Because if we run test the indicator only, it will change place (refresh) daily. -
Your indicator doesn't refresh by itself when live?
That sounds like a coding problem, try going to Forex Station, post your indicator and ask Mr.Tools or any coder if they can fix it for you.
In the mean time, you will most likely have to refresh the indicator i.e. taking it off and putting it back on every day.
-
Yeah, that's the only way i can think of for non expert, haha.
Thanks again. -
It's a good indicator. Is it based on Fib pivot points?
-
I'm not sure about pivot points.
But it is obvious from the name and the 4 color on chart,
It is SnR. and if you look at the bottom of the codes, there is a formula containing Fibo.
So it is good.@TitanGeorge , are you a coder?
Could you write back the codes and make it simpler or even better?
Maybe we can share this EA privately.
Much better if you can help make it trade multiple pairs by just put on single chart.I've post to forex-station requesting for daily refresh.
Just waiting for respond. -
Hi @TitanGeorge ,
I've tried using your work as is, but it doesn't open a trade at all.
Do you know why? And the indi actually is okay, no need to refresh. -
On the tester?
-
Yes. It can run, but no trade open when reach the price level.
-
I'm not a coder unfortunately. I use a similar EA, only difference is that I don't use Fibs. As long as you minimize your losses, you will make money. I can lose 7 times and win 3 times and make money. That's what you need to find.

