- (Please help me) [MT5] How to display the arrow only at the chart that open positions - close position (multiple charts of the same currency pair)
- change the time frame
- [ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3.
....object texts get cluttered and writes on top of each other. Is there a way to fix them to their bars and progress back as time goes by. Thank you in advance for all your help.
It looks like you have solved the Object Names problem with Raptor's and Whroeder's help in your previous post...and your candle code appears to work fine...so I may not understand your current question.
If you are asking how to adjust your text over and under the candles...to minimize or prevent the "clutter" on top of the candles...
I would add the following user settings:
extern int BullDist = 1000;
extern int BearDist = 500;
Then replace all your "5" under and "30" over with the externs...
One Example:
Original - ObjectCreate(PatternText[N], OBJ_TEXT, 0, Time[N], High[N] + 30*Point);
Revised - ObjectCreate(PatternText[N], OBJ_TEXT, 0, Time[N], High[N] + BullDist*Point);
I used large numbers above to start with...so they stay readable when you switch to higher TF's.
If you use it only on one TF....
The lower the TF frame...the smaller the numbers can be.
Higher TF's need a larger distance number to place them above/below the candles to be readable.
Hope this helps,
Robert
Robert,
Thanks for the reply. It is my fault that I have mentioned in my original post to attach a picture witch would describe the difficulty that I was having, but I forgot to attache it. So, I am attaching it here. As you will see that two objects are placed on top of each other, not originally as the indicator is placed on the main chart window, but later on with as time progresses. I hope this would make it more clear for you.
Thank you again,
Robert,
Thanks for the reply. It is my fault that I have mentioned in my original post to attach a picture witch would describe the difficulty that I was having, but I forgot to attache it. So, I am attaching it here. As you will see that two objects are placed on top of each other, not originally as the indicator is placed on the main chart window, but later on with as time progresses. I hope this would make it more clear for you.
Thank you again,
However, your clarification and helpful chart examples now show the problem more clearly...so I went back and took another look at Raptor/Whroeder's suggestions for you.
The problem looks like it still may be a "object naming" problem they mentioned...along with how/where the names are added to the chart positions.
I ran the indicator in the Strategy Tester...and did see how it names a candle... However, once started, it does not mark the current candle after it starts, but either changes....or writes on top of the existing past candle names...
Try to revise your code using the examples they gave you...and if you need more help...see Pattern Recognition Master v3 for how it takes care of this problem.
Hope this helps,
Robert
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use