Rafael Caetano Pinto
Rafael Caetano Pinto
  • Information
9+ years
experience
7
products
100
demo versions
0
jobs
0
signals
0
subscribers
Programmer at Brazil
Rafael Caetano Pinto
Added topic CTrade improvement sugestion - MQL5 Developers - Default Libs
Can the MQL5 developers add a comment parameter into the close positions CTrade methods? I sugest to change these CTrade methods, adding the comment with a default value, like this:   
Rafael Caetano Pinto
Added topic Build 2085 - Pointer data returned are cleaned after return from a function
I dont known the build that broken this, but the code below does not work anymore: #include <Generic\ArrayList.mqh> CArrayList< int >* GetList(){    CArrayList< int > list;    list.Add( 123 );   
Rafael Caetano Pinto
Added topic BackTest symbol change automatically to the previous one
I think that it is another bug: After run a backtest, if you only thange the symbol and play again, the backtest symbol changes automatically to previous value. How to replicate: - Open any EA on metaeditor - Click on backtest on history data - Stop
Rafael Caetano Pinto
Added topic OnTradeTransaction weirdnesses
I implemented a EA that uses OnTradeTransaction on stock markets. My intention was to remove the SLTP check from the OnTick function and improve the speed of my optimizations. Firstly I noticed that the events are extremely different among
Rafael Caetano Pinto
Added topic Deposit currency is changing automatically to USD
I work in Brazil, with the BRL currency. Since the currency field was added to test, this field is changing every time to USD. Its very annoying. This field only works when I set BRL in debug specified settings. There is some way to do it not change
Rafael Caetano Pinto
Added topic OnCalculate() bug? TickVolume returns 1 on OnCalculate()
My VWAP indicator stopped to work recently, after an update. I noticed that the volume_tick array returns 1 in the last iteration. In the next iteration the before values are right. I coded the follow indicator to show the problem: #property
Rafael Caetano Pinto Published product

30.00 USD

This indicator uses VWAP and projects this VWAP into up to 3 levels, shifted by a percentage of the chart's symbol. How to configure: Choose the symbol and desired graphic time Set the start time of the symbol (in bovespa, WIN and WDO start at 9 o'clock). This time is used as the cutoff reference for VWAP. Check which VWAP period fits the chart better: Ideally, a period when VWAP is not too distant from the chart Set percentage levels: Ideally, you should set levels based on history, so that

Rafael Caetano Pinto Published product

This indicator uses volume and volatility information to indicate the trend or to indicate the market reversion/correction. There are 2 indicators in one. The indicator works in two styles: values ​​per candle and accumulated values. Using the volume and volatility information, when well adjusted, this indicator has a good probability to indicate the right direction, both in lower (M1, M2, M5) and higher (M15, M30) timeframes. Strategy 1: Trend indicator Indicates the operation direction. To use

Rafael Caetano Pinto
Added topic Generic pointer to access subclass methods
I tried to use generic pointers to access the subclasses methods but I was unable to access the correct methods.  Can you help me to do it right? I expected the direct and indirect access with the same output. class Super { public :   
Rafael Caetano Pinto
Added topic How to hide/show a subwindow indicator in a EA?
My EA uses some indicators that open subwindows (volume, RSI, Bulls bears, etc). How can I hide these subwindow indicators? It is hard to see the candles with a lot of subwindows... Tks by advance
Rafael Caetano Pinto
Added topic PositionCloseBy not working in real accounts
My EA is operating with Buy/Sell Limit orders on hedge accounts. When the buy and sell positions are equals, the EA uses CTrade.PositionCloseBy() to close a buy position with a sell position with the same volume. This strategy works very well in the
Rafael Caetano Pinto
Added topic Best way to do a visual comparison between two EA's
I'm running two similar EA's on the same symbol in a demo account to compare the behavior between them. But it is very difficult to understand the visual comparison because the MT5 join the indications of trade of both EA's in the symbol graph
Rafael Caetano Pinto
Added topic hotkeys.ini
Anyone knows how to use the hotkeys.ini file? The doc says that I can use this file to customize my shortcuts, but I was unable to find any example about how I can do it. 
Rafael Caetano Pinto
Added topic Weird behavior on MQL5
I want a event that trigger always when a position is closed by SLTP. I found nothing native from MQL5 to do it, so I'm trying approaches to do myself an OnSLTP() function . A piece from my code to do it uses the history:     
Rafael Caetano Pinto
Added topic Can EA detect if it's in Test Strategy?
Is there any way to know if the EA is running on Strategy Tester ? My EA uses the symbolInfo.MarginMaintenance() to make some equations to trade but these values are zero in strategy tester. To work around this problem, I created a parameter to set
Rafael Caetano Pinto
Added topic Order price theshold and deviation points
I have a problem that only occurs in the real account: On WIN$D, I operate with ORDER_FILLING_IOC and deviation points = 15. The EA sent a buy order at 74,000, the order ended up buying at 74100. I imagined that point deviation was a parameter that
123