No line showing in my indicator
Many thanks to those of you who have replied. I am working diligently to take in all your suggestions. I am reworking the code completely, as there are certain things that I did not understand before. My goal is to get the program working, and then post the code back here so that other newbies can benefit from what I have learned. Thanks. I'll be posting the results here, hopefully in a few days, when I get it working.
No line showing in my indicator
_MAHA, thanks for your reply. I didn't understand this: 'Optimize and debug your code. Don't loop over precalculated bars unless needed. Prevent your your indicator from such errors as if there isn't enough bars for calculation. ' I'm not sure how to give LineBuffer a default value. (PRICE_OPEN + PRICE_CLOSE) / 2) is supposed to be the Midpoint between the Open and the Close price. I have developed an indicator which draws a line through the middle of each candlestick. Here is the code for that indicatorL
No line showing in my indicator
I just need a little help to get off the ground. I'm new to MQL5, and I have copied code from here and there. I am missing something in my code. The code compiles, but the indicator line does not show. Thanks.
Are recursive algorithms allowed on MQL5 for automated trading?
ange, thanks for the reply. I look forward to investigating MQL5 further.
Are recursive algorithms allowed on MQL5 for automated trading?
I am new to MQL5. I have been writing scripts for years using thinkorswim's Thinkscript. There is an automated trading feature on thinkorswim, but as soon as you try to use the best trading indicators, which all seem to use recursive algorithms, you run into severe restrictions. I have a technique which will work, but I need a platform which allows for recursion. Am I in the right place? Or should I try another platform? Thanks.