Buy / Sell on Custom Indicator
-
Hi Guys
I'm struggling to get this to work.
I have my custom indicator that shows arrows for Buy and Sell conditions.
I have laoded my custom indicator and set it up as seen on some examples on this forum, but the EA still does not want to open a buy or sell trade.At first, in the tester, the custom indicator did not even show.
So fixed it as my custom indicator was under a custom folder, merely compiled it under the normal indicator folder and then it showed on the tester.As yet, no buy or sell trade has opened.
Could someone please guide me into the right direction, what did I miss.
As always, guidance is always appreciated from this community.Project link:
https://fxdreema.com/shared/1ygmkwQGTester Image:

Thx in advance
-
you put 'close trade block' above the buy and sell entry.. thats mean your ea only open a trade when a position is closed. which there is no open trade was currently running.
-
How do we set that when dealing with two moving averages
-
Hi
Thank you very much for your reply.
I found this thread regarding the issue I am experiencing and used the same setup.
https://fxdreema.com/forum/topic/11832/buy-sell-when-arrow-of-the-indicator-appears
As it worked there, with the assistance of @l-andorràI'm using the same layout and still do not understand why trades are not physically opening.
I know, I'm missing something somewhere, just cant put my finger on it LOL. -
-
Two quick questions:
- Are you sure you're using the correct buffers?
- Is this the whole project or just part of it?
You selected those buffers to appear on candle ID 1. Are you sure they can appear there? I guess they should appear on candle ID 0 instead. Try to select candle ID 0 instead. But then you'll have to check if the indicator repaints, because if it does, it will doom the bot.
-
Hi
Thank you for your response.
I'm pretty sure the Buffers are correct.

Please do have a look and let me know if I did this incorrectly.

I might have tested it with Candle 0 before, however, would retest and revert.
I'm not 100% sure if the arrows repaint, I guess it does on volatile markets.
Example:
2 MA's that cross, price sometimes just goes to a point, where the arrow would signal and then price moves the other way, so the arrow disappears, this does not happen all the time, but also why I choice 1 instead of 0, so after arrow appears to take the next candle opening.Again, always appreciate your @l-andorrà feedback and will definitely retest with your suggestion
Thank you
-
okay, somwthing is wrong, you're right.
The indicator did not load correctly.I only noticed this on the retest ( which didnt work with the 0 candle, either )
On the retest, there are only 3 MA's as where my indicator has 4
Tester Example:

My indicator example:

So, yes, something is wrong and I have no idea what it is.
Any help would be greatly appreciated.
Thx
-
@Vortrexcian
You have used 1st and 2nd buffers instead -
Hi
Thank you for your reply.
I see what you mean.
I have amended and still no buy or sell trade opens.

However, still only getting 3 MA's shown on the test as to 4 MA's ( as seen on previously posted picture )
Again, not sure what I'm doing wrong.

https://fxdreema.com/shared/C9BObqO3c
If anyone could maybe have a look at your own time, and let me know, it would greatly be appreciated.
Thanking you in advance for your most valuable time & assistance.
-
Have you tried candle ID1 (instead of 0) inside "indicator appear" blocks?
-
Hi
Yes, I have.
ID1 was the first and ID0 the second.
Still nothing.I could, re-write the conditions for buy and sell without the additional MA's, however, I do like problem solving.
But this is beyond me at the moment.Everything looks in order, but I think it's something small that I'm missing somewhere.
Again, thank you very much for your input, appreciate it.
This is going to give me sleepless nights...

-
Please, share the indicator. I'll take some test on it
-
@Vortrexcian
Have you tried Indicator is Visible rather than Appear ?Please share the indicator and we will know the problem
-

I only now see this picture, usually the buffers starts with #0
Try renumbering them, so the last two become #8 and #9 -
Hi
You are a #Legend
It worked.Thank you so very much, truly do appreciate it.
So, yes, the smallest thing was Buffer starts with 0 and I started with 1.
Cant believe I missed it.Thank you again for the assistance.

-
New issue
On MT5 tester, it works.
Can see MA's
Can see arrows
Opens Sell and Buy trades
Any timeframe.However, on live account.
No MA's
No Arrows
No opening trades either. -
Did you try other brokers? It looks like your broker is applying some restrictions on that trading.
-
Hay l-andorrà.
Managed to fix the popup's though.
I re-coded the custom indicator's notifications to "False" ( Switched off by default )I then opened a new chart, loaded the custom indicator first and then the EA.
This seemed to work slightly, experienced some "Server connection" issues, where it would not open new trades every now and then.Ran a check on my internet connection and did not pick up any connection issues.
( I ran a looped ping test as well, trying to see if there's any packet loss or delay in connection and there were none )I wouldve have liked to used my custom indicator, since the MA's changes colour as the cross, indicating a price direction, especially on higher time frames, but to fix the issue, I ended up re-coding the EA, merely using the bases for buy and Sell, excluded the "My Custom Indicator"
This works great, simple as well.
I also switched back to ID 1, to prevent false readings , however, on higher time frames this seems to have more losses, as by the time it would open the trade in that direction ( for the most part ) the movement has already ran its course and reversing.
Between M5 and m15 for most markets, its yielding high potential, I would need to look extra conditions to try and prevent unnecessary losses, for example, maybe look at adding something in such as: only take buy signals when price is above a 50 or 200 MA and sells when below.
Or something in the lines of only take signals when 50 is above or below 200.I’ll play around with a few methods and see what I can come up with.
On the one market ( year to date ) it made over $23 000, but also took $21 000 in losses, so there’s definitely something, merely need to look at a decrease in loss method.
As always, thank you all, for always assisting….
-
You're welcome.
