How do I use several buffers at the same time?
-
I think you missed the point.
The 8 buffers are not important.
if I just use it as you wrote,
then every candle would have a buy or sell signal!
The important thing is the appearance of the arrow on the chart!!
Then I'll just buy or sell. Only when the candle is closed and the arrow appears above/below it.
-
If what I think you are saying is this, then: no trade block->indicator is visible block to check buffer->indicator appears block (to react when arrow appears)->buy/sell block.
-
@jstap
Sorry I do not understand.
The arrow is not a buffer, it has no color that can be selected.
Just an object that the indicator draws on the chart when all times are the same color.
Only when the arrow appears and the candle closes does the EA sell or buy.
But just once!
I have no idea how to do it. -
@clubdio
Buffers indeed are the data you see on the Data Window.
Sure buffers can be assigned colors. -
@clubdio The arrow will almost certainly be a buffer, try this and test on back test, indicator appears with different buffers, one will likley work when arrow3 appears.
-
@jstap
Checked on data window, the arrows are objects determined by a combination of buffers as I previously stated. -
-
Previously as stated:
@clubdio
As you care this indicator a lot so I look into it more carefully.You have 8 indicator buffers.
Buy signal if and only if 1,2,3,4 appear in 1st, 3rd, 5th and 7th buffer RESPECTIVELY.
Sell signal if and only if 1,2,3,4 appear in 2nd, 4th, 6th and 8th buffer RESPECTIVELY
You can use this logic combination to get what you want.
-
The arrow appears every time all buffers are the same colour, unfortunately sometimes it repaints.
-
@clubdio I believe you need to add an aditional block for your "trigger" signal.
i.e.: You have your 3 (slower) signals as pre-conditions reading "Candle ID" = 1, then you have your "trigger" which also uses "Candle ID" = 1, so the new block should measure the state before that (Candle ID = 2). this way the EA should not open AGAIN during the same cycle of the fastest reading when the first trade closes after taking profit (which is the problem right now).
Did I get your idea right?
Another solution is to catch the precise buffer that triggers the arrow painting, I'll try to do that.
Edit: I couldn't find it, but the rest of the buffers could be used to mimic the logic of the arrows, or better yet... Creating a MT5 version with the original CCI indicator readings (zero-cross signals) and remove the repainting "feature", it can work exactly the same or even better.
-
@clubdio, you can't always catch what you see. You need to understand how the indicator works, how is the arrow generated, what's an option other than using buffer if the arrow is not one. Right now we are not using the arrows, but we use buffer from the bottom bar, the sub window indicator. Because that bars are the condition for the arrows to come out.
-
What you wrote is almost perfect!
All four buffers are green, so you buy.
But only buy once in a green cycle! At the first 4 greens. Do not open another trade, even if I have closed the trade, but there are still four greens for a long time. The change today is due to a longer time frame.
There should be a solution for this. There should be no new buy/sell until there has been no change in at least one time frame and no change BACK.
I don't know how to solve THIS. This is the main problem. -
@jstap Past repainting is not a problem.
Then when the 4 timeframe gives you a signal, you use it.
It doesn't matter what happens later, because the CCI crossed the 0 line then.
You only use the signal with a candle close!
After that, if it reverses, it doesn't matter. -
@clubdio
Your indicator repaints not only the current open bar. It erases all previously signals that doesn't fit the trends! -
@sktsec said in How do I use several buffers at the same time?:
@clubdio
Your indicator repaints not only the current open bar. It erases all previously signals that doesn't fit the trends!Exactly.
There is only one way to make it usable: take the higher TFs all green/red and use the current TF as a trigger when it changes color. -
Yes, that's how I've used it so far.
Unfortunately, many signals do not appear this way.
Or at the end of the cycle, there will be a loss.
Well, there is still room for improvement.
Thank you all for your help and advice. -
@clubdio said in How do I use several buffers at the same time?:
Yes, that's how I've used it so far.
Unfortunately, many signals do not appear this way.
Or at the end of the cycle, there will be a loss.
Well, there is still room for improvement.
Thank you all for your help and advice.Trust an advice from a man who has tried countless times to use multi-timeframes in his EAs: they don't work.
It seems visually amusing, but in real time there is too much lag between the opening and the closing of the higher TF. Only time I saw it working is when you use the immediately upper Tf (ex. 5m on 1m chart).
Don't waste time anymore.
