Hi
I have a custom indicator that I would like to automate. I have no programming skills and this has taken me a lot to get working. So now I would like it automated.. Please help!
Here is the code... for the EA
For some reason its not getting into the OP_SELL part as it should. Also I would like it to open one trade at a time and wait before opening another one. I would really appreciate If someone with skills can help out.
Maybe isee is never less than or equal to 0 ? what range of values do you get from buffer 1 of your iSee Indicator ?
I have attached an image file... have a look. iSee is a double type.
Maybe isee is never less than or equal to 0 ? what range of values do you get from buffer 1 of your iSee Indicator ?
You should answer the question. Your image tells us nothing unless we ASSUME the line is zero AND that you are selecting the correct buffer.
You should answer the question. Your image tells us nothing unless we ASSUME the line is zero AND that you are selecting the correct buffer.
iSee is a time series forecast indi and the values are calculated form price. The order is as I say it is.. Buffer 1 equal the black line.. Which is PriceBufferMA2. The Dots on iSee are zero.. When the black line passes through the zero mark then it should be negative.
extern int Fast=4; extern int Slow=21; extern bool useSlow = false; //--- buffers double PriceBufferMA1[]; double PriceBufferMA2[]; double Buy[]; double Sell[];
LOL . . . I'm getting used to having any question I ask go unanswered.
iSee is a time series forecast indi and the values are calculated form price. The order is as I say it is.. Buffer 1 equal the black line.. Which is PriceBufferMA2. The Dots on iSee are zero.. When the black line passes through the zero mark then it should be negative.
OK, add a line just after your 2nd iCustom call . . .
Comment("isee = ", isee, " matcd = ", matcd);
. . . then run your EA in the Strategy Tester and see if isee and match both go less than or equal to 0 at the same time.
To only have one order open at once, count how many orders you currently have open for your Symbol and Magic Number and if greater than 0 don't place a new order . . . .
OK, add a line just after your 2nd iCustom call . . .
. . . then run your EA in the Strategy Tester and see if isee and match both go less than or equal to 0 at the same time.
To only have one order open at once, count how many orders you currently have open for your Symbol and Magic Number and if greater than 0 don't place a new order . . . .
Thank you for your time.. I will have a look and get back to you.. :)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
I have a custom indicator that I would like to automate. I have no programming skills and this has taken me a lot to get working. So now I would like it automated.. Please help!
Here is the code... for the EA
For some reason its not getting into the OP_SELL part as it should. Also I would like it to open one trade at a time and wait before opening another one. I would really appreciate If someone with skills can help out.
Thank you.