markft wrote:Hi Peter,fx8000 wrote:
Hi Mahmut,
Attached below is a setup application I mentioned earlier.
Cheers,
Peter
Thanks for sending the installer. I could see the US30 with this one; so then found and fixed the issue. Please see updated version attached.
This should probably go to the Shell EA.
The issue occurs as the symbol US30 has 0 digits! In addition to failing the spread check, SL and TP would always be set to 0 with this one so it is quite dangerous.
Simplest solution is; in init:initialise multiplier to non-zero value to cater for all possibilities. That is:Code: Select all
int init() { //---- //Adapt to x digit criminals int multiplier; if(Digits == 2 || Digits == 4) multiplier = 1; if(Digits == 3 || Digits == 5) multiplier = 10; if(Digits == 6) multiplier = 100; if(Digits == 7) multiplier = 1000;
Code: Select all
int multiplier = 1;
Hi Mahmut,
Thanks for the fix. I will install the latest version of EA and report back.
Cheers,
Peter