Hello Guys, I made a bool function to count my positive and negative trades daily, if there is more then 3 it returns true. In backtesting it works because all positionated volume closes at once. In real trades, the volume is closed in parts, so the
Hello, I'm trying to add a SMA with 20 periods from 1 hour chart to a 5 minutes chart. Tried to use the function IndicatorAdd but it didn't work... Any advices? #include <Charts\Chart.mqh> CChart
I have a doubt on my new indicator... All the calculations are correct but sometimes an error accours, there is no value on DataWindow and the indicator's line disappear. I used the following function to set to zero in case of errors but didn't
I'm trying to create a new indicator that calculates the sum of a array (matrix of 5 symbols with correlation) and divides by a specified number. The calculation is correct, but i'm having problems with the indicator plot. Probably in the OnCalculate