Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 303

 

Where is the assignment? Specify, please.

 
buyanov:

Where is the assignment? Specify, please.


Sorry. Read a reference or a book first.

You must know the operations so you don't ask silly questions.

 

about the book, that's interesting.

I've read the reference.

And to point out specifically where the error is?

 
buyanov:

about the book, that's interesting.

Can you point out exactly where the mistake is?


You have already been told.

 

So no concrete answer?

 
buyanov:

So, no specific answer?


All assignments in this function. If that answer is satisfactory.

 
buyanov:   So, no specific answer?

The compiler message contains the line number and position number - use them to find the error. Show us the line - we'll give you the error.

 

Who can help!

Forum on trading, automated trading systems & strategy testing

Questions from Beginners MQL5 MT5 MetaTrader 5

Aleksey Vyazmikin, 2017.09.04 22:45

Such a question about the indicator, I need to read the data from two instruments from the selected TF and make their calculations.

I do not understand how to tell the indicator with which time series to work I read the help for OnCalculate and do not see the answer there :(((


 

Can you tell me if there is a primitive "indicator"?

  {
//---
   equBuffer[0]=AccountEquity();
   balBuffer[0]=AccountBalance();
//--- return value of prev_calculated for next call
   return(rates_total);
  }

When you run it in the tester, it takes data from the real terminal. But if you useAccountEquity andAccountBalance in Expert Advisor, it takes data from tester.

How to make the INDICATOR, when running in the tester, take data from the tester and not from "reality"?

 
Aleksey Vyazmikin:

Maybe someone here can help.


Use CopyXXX()