When you saved the Indicator did you rename it from Pivot Points - Daily (Shifted).mq4 to something else ?
I downloaded it twice. I have one called Pivot Points - Daily (Shifted).mq4 and one called Pivot Points. Neither work when I put it in the code
I downloaded it twice. I have one called Pivot Points - Daily (Shifted).mq4 and one called Pivot Points. Neither work when I put it in the code
But you are not calling either of them in your code . . you are calling Pivot Points Daily(Shifted).mt4
iCustom(Symbol(),PERIOD_M30, "Pivot Points Daily(Shifted)" ,-2,1,0)
My EA compiles with no error, but for some reason It will not start test in the strategy tester? Is there any error in my code that creates a bug.
I downloaded the pivot points from https://www.mql5.com/en/code/8685.
- Not starting has nothing to do with the iCustom. Look in the journal. Add a Print to start so you know if it is starting or not.
R2 = iCustom(Symbol(),PERIOD_M30,"Pivot Points Daily(Shifted)",-2,1,0);
From https://www.mql5.com/en/code/8685 name of the file is "Pivot Points - Daily (Shifted).mq4" not "Pivot Points Daily(Shifted).mq4"
Thats "Pivot Points - Daily (Shifted).mq4" unless you renamed it.
#define PPD_S "Pivot Points - Daily (Shifted)" R2 = iCustom(Symbol(),PERIOD_M30,PPD_S,-2,1,0); R3 = iCustom(Symbol(),PERIOD_M30,PPD_S,-2,0,0); S2 = iCustom(Symbol(),PERIOD_M30,PPD_S,-2,5,0); S3 = iCustom(Symbol(),PERIOD_M30,PPD_S,-2,6,0);
But you are not calling either of them in your code . . you are calling Pivot Points Daily(Shifted).mt4
R2 = iCustom(Symbol(),PERIOD_M30,"Pivot Points - Daily(Shifted)",-2,1,0);
I changed it to this but it still does not work
- Not starting has nothing to do with the iCustom. Look in the journal. Add a Print to start so you know if it is starting or not.
-
From https://www.mql5.com/en/code/8685 name of the file is "Pivot Points - Daily (Shifted).mq4" not "Pivot Points Daily(Shifted).mq4"
Thats "Pivot Points - Daily (Shifted).mq4" unless you renamed it.
I tried this suggestion. But how will the print statements help if it the strategy tester will not start the EA. is there another way to use the print statements?
I deleted all my pivot point indicators and downloaded fresh without renaming it. and tried your suggestion but it still did not work.
R2 = iCustom(Symbol(),PERIOD_M30,PPD_S,-2,1,0); R3 = iCustom(Symbol(),PERIOD_M30,PPD_S,-2,0,0); S2 = iCustom(Symbol(),PERIOD_M30,PPD_S,-2,5,0); S3 = iCustom(Symbol(),PERIOD_M30,PPD_S,-2,6,0);
I tried this suggestion. But how will the print statements help if it the strategy tester will not start the EA. is there another way to use the print statements?
I deleted all my pivot point indicators and downloaded fresh without renaming it. and tried your suggestion but it still did not work.
Could it be that I dont have an ex.4 file for the Pivot Points - Daily (Shifted) indicator?
Did you copy the Pivot Points Daily(Shifted).mq4 file into your \experts\indicators directory and then restart MT4 ? when MT4 starts it will compile the mt4 file and make an ex4 file.
Yes I did do that. So I guess I cant find the problem
Yes I did do that. So I guess I cant find the problem
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
My EA compiles with no error, but for some reason It will not start test in the strategy tester? Is there any error in my code that creates a bug.
I downloaded the pivot points from https://www.mql5.com/en/code/8685. My server is GMT +2, so my input for using iCustom() with pivots is -2.
here is my code