ArraySetAsSeries(RSIArray, true); int RSIDefinition = iRSI(_Symbol,_Period, 15, PRICE_WEIGHTED); CopyBuffer(RSIDefinition, 0, 0, 3, RSIArray);
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)
One suggestion :
Delete all statements that are not related to the questions and clarify the statements that are related to the questions , making it easier to solve
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Good day everyone
I please need someones advise on the following. I have the attached EA that I have made. Everything is working fine but there are one problem that I cant seem to resolve and I have really tried my best. I have a maxTrade function so that when my "sellcondition" is met the EA needs to open the maxTrades that has been selected. Once the max Trades were opened then the EA needs to wait untill the market has droped below my sell condition first then wait for the sellcondition to be reached again and open the maxTrades again even if the other trades are still open. Im trying to create a crash500 EA and lets say the sell condition is met I need it to open 4 (maxTrades) sell trades. If the market then drops but does not close my open max trades yet but goes up again to the sellcondition it should again open the 4 (maxTrades) even if the previous ones are open. I manage to get the maxTrades to work but it open the maxTrades in total and not each time the sellcondition is met. I have been struggeling now for weeks with this. Please please is there anyone who can assist .