- Trend Deviation (TRD)
- how is it possible that an expert advisor be coded to do the following: buy when the price trend is going up and sell when its going down. (this is only a part of my ea plan)
- Drag and drop SL and TP in the tester.
Your topic has been moved to the section: Expert Advisors and Automated Trading
In the future, please consider which section is most appropriate for your query.
Your topic has been moved to the section: Expert Advisors and Automated Trading
In the future, please consider which section is most appropriate for your query.
int trix_handle = iCustom(_Symbol,_Period,"Examples\\trix-arrows - 2",InpPeriod,InpMethod1,InpMethod2,InpMethod3,InpPeriodSig,InpMethodSig,InpAppliedPrice); CopyBuffer(trix_handle,1,0,10,trix_buffer);
Solution: stop creating millions of indicators in RAM.
Perhaps you should read the manual, especially the examples.
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
They all (including iCustom) return a handle (an int). You get that in OnInit. In OnTick/OnCalculate (after the indicator has updated its buffers), you use the handle, shift and count to get the data.
Technical Indicators - Reference on algorithmic/automated trading language for MetaTrader 5
Timeseries and Indicators Access / CopyBuffer - Reference on algorithmic/automated trading language for MetaTrader 5
How to start with MQL5 - General - MQL5 programming forum - Page 3 #22 (2020)
How to start with MQL5 - MetaTrader 5 - General - MQL5 programming forum - Page 7 #61 (2020)
MQL5 for Newbies: Guide to Using Technical Indicators in Expert Advisors - MQL5 Articles (2010)
How to call indicators in MQL5 - MQL5 Articles (2010)
Solution: stop creating millions of indicators in RAM.
Perhaps you should read the manual, especially the examples.
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
They all (including iCustom) return a handle (an int). You get that in OnInit. In OnTick/OnCalculate (after the indicator has updated its buffers), you use the handle, shift and count to get the data.
Technical Indicators - Reference on algorithmic/automated trading language for MetaTrader 5
Timeseries and Indicators Access / CopyBuffer - Reference on algorithmic/automated trading language for MetaTrader 5
How to start with MQL5 - General - MQL5 programming forum - Page 3 #22 (2020)
How to start with MQL5 - MetaTrader 5 - General - MQL5 programming forum - Page 7 #61 (2020)
MQL5 for Newbies: Guide to Using Technical Indicators in Expert Advisors - MQL5 Articles (2010)
How to call indicators in MQL5 - MQL5 Articles (2010)
Thank you very much Mr. William Roeder. I will follow your advice carefully and update this thread.
It was great. Using the first link you posted, I was able to modify the code and the performance is great now. It's strange that I've seen that thread before but I didn't succeed in the first attempt. Now I proceeded with the reverse engineering method and the result was good. Instead of modifying my own codes, I changed the expert codes that were mentioned in the topic according to my expectations.
Now I came across a strange thing. Error 4003. Of course, it has been solved, but the cause of its occurrence is unknown to me. When I call Trix indicator normally:
In the visual test mode, there is no problem, but in the backtest mode without visual, it shows error 4003. I disabled the indicator window and the problem was solved. But is there a way to not see the error when the indicator display window is active?
Please excuse my grammar mistakes as English is not my first language
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use