Forum

Where do the values an indicator shows come from?

Hi, I'm trying to replicate a graphic Price Channel indicator and I've decided to right away copy and paste its code in my EA. The problem is that the indicator shows a value of 4 decimals when you hover the mouse on it, and I have no idea what's it doing: it's not rounding and it's not trimming

Price channel of 55 periods fails when it crosses with the PC of 20 periods

Good afternoon, I am programming an EA that needs to check whether the previous bar has crossed at anytime the Price Channel indicator or not. I'm using a PChannel indicator I downloaded as a graphical guide, but I've programmed my own in the EA. The PC I've programmed works fine, except when the PC

Converting double to integer function fails with some operations

Good morning, I need to get the last digit of a price and "round it" according to some rules of my own, it's not just rounding it. To detect a price's last digit I'm multiplying the price for 100000 and %10 to obtain it. However, and even when a large part of operations I run this way works, there

Backtester opens a pending order before the Bid actually achieves its price

Hi, this is the first post I create on the forum and I'd like to start by thanking you for the help you've been providing; I've used this forum countless times and it's been almost always useful. That being said, the problem I need help with is the following. I am backtesting an EA that places a