DislikedThere is this line in the code:
int i, ssp, ssp1; //choosing "int" instead of "double" drops decimal portion of value
Try changing from "int" to "double:
double i, ssp, ssp1; //choosing "int" instead of "double" drops decimal portion of value
Also, there is no safeguard in the code if you do this that it will not take more than two number entered, so it is worth trying and then entering either last two, or last three digits to see what happens. Since I do not have a 5-digit platform, there is no way for me to test such code.Ignored
I am going to test it on a 4 digit platform and if successful will post the corrected indicator (found this piece of code on the net:
Inserted Code
int init() { //Checking for unconventional Point digits number if (Point == 0.00001) Poin = 0.0001; //5 digits else if (Point == 0.001) Poin = 0.01; //3 digits else Poin = Point; //Normal return(0); }
Here's then the corrected indicator, I tested it on FXDD and it works perfectly now in any 4 or 5 digits platform and with any pair.
Thanks for all the help!
(Edited: I also added 2 levels with 66 and 33 customizable lines as I have noticed that price usually also bounces and stops at those - probably fib related, and especially 66 which is also a psych level - 666 muhahaha, no, it's true, who knows what occult meaning it has to big boys out there...) I decided to leave only the latest and complete version, as the lines can be set to "false" as well if you don't want them on your chart.
MP6L:
MP is for MultiPlatform (two options: 4 decimal points or 5 decimal points for EUR, GBP, etc... and 2 or 3 for JPYs)
6L is for "6 line levels".
Note: Remember that if you have an earlier version of MT4 you shouldn't copy the ex4 file to the indicators folder as it has been compiled on build 220 (which sometimes doesn't recompile new added indis at start) and would crash any older build.
Attached File(s)
SDX-SweetSpots_v4_MP6L.mq4
10 KB
|
1,031 downloads
SDX-SweetSpots_v4_MP6L.ex4
6 KB
|
720 downloads