And what is its problem with DAX?1- How can I do to this fantatic inticator works well with DAX?
There is a lot of stuff to change if you want to make it a working EA. To fix this particular problem, you should look for errors in the Experts tab.It was easy and fast, but the problem is, when I change the time frame more than 3 times, the indicator panel was crazy, like the picture.
/* Swaps Nominal Long */ if (!m_EdtSwapsNominalLong.Text(DoubleToString(swap_long, 2))) return(false); // swap_long_decimal_places /* Swaps Nominal Short */ if (!m_EdtSwapsNominalShort.Text(DoubleToString(swap_short, 2))) return(false); // swap_short_decimal_places
And what is its problem with DAX?
The problem is the LotSize, is vary big, not a correct calculation!
There is a lot of stuff to change if you want to make it a working EA. To fix this particular problem, you should look for errors in the Experts tab.
I am not sure, but you might want to try removing all calls of SeekAndDestroyDuplicatePanels() function.I'm send a image:
I don't see a problem on this screenshot. Could you please elaborate?
I am not sure, but you might want to try removing all calls of SeekAndDestroyDuplicatePanels() function.
I don't see a problem on this screenshot. Could you please elaborate?
Yea, but for huge majority of users it shall do, since swaps are presented in currency form, for which 2 places shall do. Please explain why do you need more digits? Just curious.Unfortunately, just normalizing it to 2 decimal places is not a proper solution as the number of decimal places in the swap varies.
Now the code to run in Expert mode.
I changed just the "PositionSizeCalculator.mq4"
Yea, but for huge majority of users it shall do, since swaps are presented in currency form, for which 2 places shall do. Please explain why do you need more digits? Just curious.
Here is the screenshot of PSC v2.03, Swaps tab, Nominal Short value. It shows too much number.
Modifying PositionSizeCalculator.mqh (line 784) -
MQL4:/* Swaps Nominal Long */ if (!m_EdtSwapsNominalLong.Text(DoubleToString(swap_long, 2))) return(false); // swap_long_decimal_places /* Swaps Nominal Short */ if (!m_EdtSwapsNominalShort.Text(DoubleToString(swap_short, 2))) return(false); // swap_short_decimal_places
displays only 2 decimal places.
Using Pepperstone broker, EUR USD pair.
if (MathFloor(number) == number) return(i);
What are trying to achieve? Merge PSCScript with PSCv2? Please explain the purpose of this EA.
Simon
S love nia