Please help me solve this! I need to draw a short line at the high of the candle
-
Below I share this project in which I need to draw a small line at the height of the candle.
Please someone with a good heart help me with this problem, I appreciate it in advance.
-
Why do you need to draw that line? You can store the value of that price level into a variable instead.
-
@l-andorrà Hello my good brother, a big brotherly hug from Ecuador, in response to your question, I made the EA according to the strategy that I saw in this forum that someone else shared. I already finished it and everything works correctly based on the strategy, but When executing it, it is sometimes difficult to visually identify what is happening in the graph, for this reason I try to make the maximum and minimum visible. I am not an expert in fxdreema and I really like doing practices like this or helping when I can do it, but I consider that an EA must be functional, friendly, adaptive, scalable, fully commented, understandable in its declared constants and variables, and also last and not least it must be visually pleasant and easy to understand in the graph, it is my Humble opinion, my brother, for this reason I try to learn the latter.
-
First, change the line style to the regular solid one or set the width to 1 for the dotted. You can't go above 1 in width for dotted or dashed. That's just how it is in metatrader.
Second, use the time shift. Shift time 1 back a couple hours and time 2 forward a couple hours. Assuming that everything else is correct, you have to shift the trendline in order to see it. It won't be visible if you don't I believe. -
@JayPhillbrooks Thanks for the suggestion I'll try it
-
@VHV-Profit-Masters Is this a practice type of thing or are you looking to make this into an actual strategy? I solved your initial issue but after looking into it, there are other issues that should be much bigger concerns.
-
@JayPhillbrooks How interesting to read that, well this is actually a practice to help someone else on this forum solve their problem, although I have already made several adjustments and improvements to this EA, I will share the most current version with you
-
@VHV-Profit-Masters Fair enough. I'm not sure what you are helping with and I hope their problem get solved. When I downloaded the EA, I had to get rid of some stuff to make it run faster. I'm not sure why the weekday filters are needed especially when they are all activated. In my experience, the weekday filter slows the tester down tremendously. Also the account information on the chart as well. As far as the strategy itself, It seems to be taking a buy and sell at the same time everyday. The stops are too tight at 20 pips and trades are taken too frequently. XAUUSD daily swings are too big for a 20 pip stop loss. I'm visual too and I made some changes to speed it up and help visualize the trades.
-
@JayPhillbrooks Thank you for your contribution with this topic, I sent you the latest version of this project by inbox some time ago, I will review your settings and again thank you very much....
-
@JayPhillbrooks My brother, we made good changes, in response to why I use filters, I do it because of bad experiences when not placing filters in some past projects, obviously everything was not configured correctly in this project, since I am a newbie in the learning process, without However, seeing what you did in this project now you have given me many ideas, it is really very good to find people with this knowledge willing to help others, now I have many ideas... I am going to make an improved version in which I will capture a time slot of the previous market to establish the maximum and minimum, and then use them when operating at the opening of the next market, I usually place different forms of risk and capital management to the projects in addition to various filters, all with switches so that they can be You can configure at will, my brother, thank you again very much for your great help, if you want to see some of my projects, tell me, I will be happy to share the codes with you.
-

-
@VHV-Profit-Masters Happy to help. I did look at the latest version and when I adjusted to speed it up, it still took the same trades so I don't think there was a difference in execution. I think that at least when backtesting, it's important to leave off stuff that will slow it down because you don't want it to take hours to complete. It can always be added when you decide to go live with it. I added the visual because I like to see emotion on the chart and it helps understand when and where the EA does not so good.