Forum

Lose Long and Short?

Hey there venerable MQ4 programmers. A quick question. Not going to include code or anything because its not really necessary. I was messing around with an EA yesterday and decided to try something. You can do it yourself pretty easy. S/L is X and T/P same X; So maybe 50 and 50 or 100 and 100, or

Problem with Indicator painting current bar

I seem to have this problem sometimes when doing mult colored line plots: the current bar paints to zero or EMPTY_VALUE... I came across it once a few weeks back, and in that situation moved the code from a library to the indicator code and it worked fine. This time I want to leave it in the

Gaps or breaks in Indicator line

I guess I dont understand this part of building an indicator as well as I thought. I want to have a single price line, with three different colors, bullish, bearish, or neutral. In the beginning I thought it was easy, since I had looked at the slopeline indicator as an example, which just sets the