amando / Publications
Forum
Is the documentation wrong?
i've tried to find a chart window according the documentation https://www.mql5.com/de/docs/chart_operations/chartwindowfind then the compiler says you must modifiy the parameters to int GetIndicatorSubWindowNumber( long chartID= 0 , string short_name= "" ) { int window=- 1 ; //--- if ((
CIATR
Hello, I tried to use for the ATR calculation the include files, but I always get Empty Value out here the script #include <Indicators\Indicator.mqh> CIndicator _indi; #include <Indicators\Oscilators.mqh> CiATR atr; void OnStart () { atr.Create( _Symbol , PERIOD_CURRENT , 14 ); Print
Tradetime
hello, i have some troubles with the trade time, i have written an expert to convert the trade time to i time i want to trade here as example the settings that works with the conversation but in the trade history i find following, its always couple of seconds before the time that it makes 2 trade
not working anymore
Hello, long time ago, that i used mql5 the last time but why i dont the right value out there? value = iHigh ( _Symbol , PERIOD_CURRENT , iHighest ( _Symbol , PERIOD_CURRENT , MODE_HIGH , 20 , 0 )); it should give me the highest price of the last 20 candles regards amando
Draw Histogram in Color
Hello, i tried to get a Histogram with 2 colors but i dont find out, how to became the second color. //+------------------------------------------------------------------+ //| MACrossHisto.mq5 | //|
Order Expire in datetime MQL4
Helle, in older days, the order expire was a function of Seconds, now it use the datetime and this is a miracle for me since i use MQL4. can someone help me, how do program on a pending order, that the expiration is after 30 minutes? OrderSend ( Symbol (), OP_SELLSTOP
CIATR Error 4806
Hello, im try to use the CTrade ATR Indicator class, void ATRGrid( const string symbol, const double bid) { ResetLastError (); ATRValue= 0 ; if (!atr.Create(symbol,ATR_TF,ATR_Periode)) Print ( "Fehler beim erzeugen des ATR" ); ResetLastError (); atr.Refresh(); ATRValue =
FileClose
Hello, i have problems with file close, I read a file, and close it after bool FileLesen( string filename, string KommeVon) { ResetLastError (); bool value = 0 ; int file_handle= FileOpen (filename, FILE_READ | FILE_CSV ); if (file_handle!= INVALID_HANDLE ) {
_Period
Hello, I always was thinking that gives back the Period in Minutes, that works pretty well till the timeframe 30min I tried it out and get following results what's happen here? thanks