Questions from a "dummy" - page 227

 
tol64:
Is this a joke? )) In the same code everything can be checked from beginning to end.

Ah, I've got it, I just paid attention to declaration of the variable 'st' and the inscription

#property script_show_confirm
//---- show input parameters
#property script_show_inputs

and I thought that's not how it's implemented in the EA

 

Added currency selection in the standard MACD indicator

input string Currency="EURUSD";
//---
void OnInit()
{ // ...
   ExtFastMaHandle=iMA(Currency,0,InpFastEMA,0,MODE_EMA,InpAppliedPrice);
   ExtSlowMaHandle=iMA(Currency,0,InpSlowEMA,0,MODE_EMA,InpAppliedPrice);
}

When the currency for the indicator and trading instrument is the same, the indicator is visible. With other combinations sometimes appears sometimes not, I haven't found any correlation between the combinations. Does anyone know what's wrong?

 
Check error after CopyBuffer. I suspect 4401.
 
paladin800: Added currency selection in the standard MACD indicator. When the currency for the indicator and the trading instrument are the same, the indicator is visible. With other combinations sometimes it appears sometimes not, I haven't found any correlation between the combinations. Does anyone know what's wrong?
So far you have received handles of two indicators. It takes some time to calculate the values of the indicators themselves. Try to use the BarsCalculated() function to check if the values are ready. An example is given in the function description.
 

How to insert comments _Section 1-2-3_ as in the EA, so that variables can be separated in sequence, as here, or a more convenient way

https://www.mql5.com/ru/market/product/460

Торговый робот (Expert Advisor) ROMAN5 HeikenAshi TrailingStop
Торговый робот (Expert Advisor) ROMAN5 HeikenAshi TrailingStop
  • 10.00 USD
  • Anton Nel
  • www.mql5.com
ROMAN5 Heiken Ashi TrailingStop выполняет функцию переноса в безубыток. TrailingStop автоматически двигает Стоп Лосс, используя уровень Heiken Ashi. ROMAN5 Heiken Ashi TrailingStop можно использовать на любом графике. В утилиту также встроена...
 
lazarev-d-m:

How do you make the same thing in an EA?

https://www.mql5.com/ru/code/1005

To display some text of similar content in the corner of the screen

The source code of the program is available there:

https://www.mql5.com/ru/code/viewcode/1005/18081/infoaccount.mq5

 
lazarev-d-m:

How to insert comments _Section 1-2-3_ as in the EA, so that variables can be separated in sequence, as here, or a more convenient way

https://www.mql5.com/ru/market/product/460

input string _Section_1_="Секция №1";
 
Didn't see a thread about the platform, thought I'd post here.

I would like to know - how can I reconcile the times on the chart with the real time in the settings? My time on the chart is 2 hours behind - very uncomfortable to calculate!
 
Lester:

I would like to know how you can adjust the chart time vs. real time? My time on the chart is 2 hours behind the real time - it is very uncomfortable to carry out calculations!

None

The time on the chart shows the time on the trade server where you have your current account

 
you need to display one of the indicators as a background, is this possible?