Off-topic posts - page 99

 

based on this doc "https://www.mql5.com/en/docs/matrix/matrix_initialization/matrix_copyindicatorbuffer"

why  CopyIndicatorBuffer does not work? 

int ATRHandle;
ATRHandle=iATR(NULL,NULL,14);
vector<double> a(100);
a.CopyIndicatorBuffer(ATRHandle,0, 1, 100);

I get error " 'CopyIndicatorBuffer' is not a member of 'vector' type"



Documentation on MQL5: Matrix and Vector Methods / Initialization / CopyIndicatorBuffer
Documentation on MQL5: Matrix and Vector Methods / Initialization / CopyIndicatorBuffer
  • www.mql5.com
CopyIndicatorBuffer - Initialization - Matrix and Vector Methods - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
tarokh #:

based on this doc "https://www.mql5.com/en/docs/matrix/matrix_initialization/matrix_copyindicatorbuffer"

why  CopyIndicatorBuffer does not work? 

I get error " 'CopyIndicatorBuffer' is not a member of 'vector' type"



This function is new and only available from build 3800 (and some previous beta build).
 
MUHHAMAD AZRI #:

Hello, how are you my friends, how can we discuss this

...

Real account / demo account, time value I change it to MT4/MT5 platform MAKING DEPOSIT.

I see the REAL/DEMO is the same as the rate I have in the MT4/MT5 platform.

...

MetaQuotes-Demo account is used to update MT5 to the new build and to test beta builds of Metatrader (because MetaQuotes is not a broker).
And the trading accounts of the brokers (demo or live/real) should be used in any other cases (backtesting, trading, etc).
Because the trading accounts, money for trading, the price on the chart (quotation), and time of the price on the chart, the symbols to trade and so on - all of the them are related to the broker only.

Forum on trading, automated trading systems and testing trading strategies

How to Start with Metatrader 5

Sergey Golubev, 2023.05.19 08:07

Just a suggestion for newbies (for the people who want to start trading with Metatrader 5 but have no idea about where to start to):

----------------

You need to read the manual: MetaTrader 5 Help - Trading Platform — User Manual 

Open demo account with any broker and try to trade.

Find Metatrader broker (there are a lot of Metatrader brokers, use google to find), and open the account according to their condition on their websites.
Try with demo first.

1. The article - MQL5.community - User Memo 

2. MetaTrader 5 Help - Open an Account

3. Where Do I start from?
https://www.mql5.com/en/forum/212020 

4. MetaTrader 5 Help - Trading Platform — User Manual 

5. How to make a search on the forum
https://www.mql5.com/en/forum/193510 

6. Find a Server by the Broker's Name: 
https://www.mql5.com/en/forum/214820


 
tarokh #: why  CopyIndicatorBuffer does not work? 
int ATRHandle;
ATRHandle=iATR(NULL,NULL,14);
vector<double> a(100);
a.CopyIndicatorBuffer(ATRHandle,0, 1, 100);
  1. Your posted code is without context. Are those lines together, or is the iMA/iCustom call in OnInit (where it should be) and the others not? Always post all relevant code (using Code button) or attach the source file.

  2. 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)

 
Hello everyone please help me I want to create my own trading robot to auto replace orders after blown by stop loss please help me 
 
2000527635 #:
Hello everyone please help me I want to create my own trading robot to auto replace orders after blown by stop loss please help me 
You can use the freelancer section to look for developers 
 
Hi I would like to ask that is the indicator able to install in phone Android 
 
@199607 #: Hi I would like to ask that is the indicator able to install in phone Android 
MetaTrader mobile application does not support custom indicators, nor any MQL program for that matter.
 
Need a broker
 
n1dkjer #:
Need a broker

Read here then: https://www.mql5.com/en/forum/446683

Reason: