P_Cherry / Publications
Forum
How to access 10min data on 1 day indicator?
Hi, I have indicator working on daily timeframe (comparing today close with yesterday close etc....). Now I would like to compare not today's close but close 10min before the daily close. Is is possible to access 10min value on 1day indicator or should I solve the whole indicator as 10min indicator
Error 4806 on closed market (with no new ticks)
Hello, my MTF (multi-timeframe) indicator works fine on opened market (when new ticks are received -> starting OnCalculate() function ). E.g.: I see D1 moving average values on 10min chart... Problem is on the closed market where no new ticks are received. I get error 4806 (BarsCalculated function
Set indicator color from EA?
Hi, is it possible to set indicator color from EA? Indicator is added to the the chart from EA by the ChartIndicatorAdd (0,0,indicatorHandle) method. Thanks for help Peter
Comment to trade in MQL Wizard
Hi, please help how to pass comment from signal module into the following method to see comments in trade history? bool CExpertTrade::Buy( double volume, double price, double sl, double tp, const string comment= "" ) Thanks Peter
PositionType() access in Signal module (wizard)
Hi, I am learning and writing my first Wizard Signal module and have trading signal depending on position type. Is it necessary to create object to excess PositionType() within LongCondition() code part? CPositionInfo m_position; m_position.PositionType() Or can I access it via pointer
Trade comment and color from Signal module?
Hi, I am not experienced programmer, so I don't know if it is possible and how to fill comment field in CTrade class ("Buy Trade", "StopLoss") from the Wizard signal modele? For example: if((prev_fast_value > prev_close)) signal = 100; CTrade. comment = "Buy trade" I would like to have
No multi-currency trading with MQL5 Wizard
Hi, new MQL5 Wizard gives the possibility of multi-currency analysis, but not multi-currency trading (all the EAs generated with MQL5 Wizard can be single-currency only)! Is it possible to add support for multi-currency trading into MQL5 Wizzard (useful for pair-trading, spread and statistical
Symbol1 and Symbol2 pair trading
Hi, I have read many articles here about multi- currency trading systems, but none of them is able to trade and backtest 2 or more Symbols simultaneously. It means to buy Symbol1 and simultaneously sell Symbol2 based on some signal (sperad, correlation etc.). How can I enhance following systems to
How to access an indicator value from different timeframe?
Hi, I would like to compare 5min Close with 1H indicator value in my strategy. But I am not sure about proper shift. if (NewBarOpened == true) // In my case it is every 5min { double Indicator=iCustom(NULL, 60, "Indicator name", Parameter ,0,0); // What number should I use there instead of 0? With
MTF indicator not displayed as line within timeframe
Hi, I experienced strange charting behavior: 15min multi-timeframe moving average is charted good for historical data, not for new real-time data. Everything gets fine when I reload indicator. But for new data it will do the same... and again and again and again. It it standard MTF indicator I saw