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 MT5-EA in Production on cloud
I need to prepare a production environment to run EAs.  I would like these characteristics: Virtual machine on an cloud environment (google cloud or aws)  MT5 start and run some pre-configurated EA on windows startup.  Run several MT5
Rafael Caetano Pinto
Added topic Doubts about BuyLimit and BuyStop (pending operations)
I make a EA to learn how pending operations works. This EA create a buyLimit and a buyStop simultaneous.  When I run the code, both operations are triggered (by log) but the operations tab is pending and the log price values are wrong (the
Rafael Caetano Pinto
Added topic SYMBOL_BID and SYMBOL_ASK always returning zero
The SYMBOL_BID and SYMBOL_ASK are always returning zero. Did I something wrong? #include <Trade\Trade.mqh> #include <Trade\SymbolInfo.mqh> #include <Trade\AccountInfo.mqh> CTrade trade; CSymbolInfo symbolInfo; CAccountInfo
Rafael Caetano Pinto
Added topic MqlTick with no ask nor bid values
I'm running a EA on WDO$D and when I try to get ask or bid values, to open position, both are zero! The value variable is zero when I use SymbolInfoDouble and SymbolInfoTick.    double BuyPrice(){       
Rafael Caetano Pinto
Added topic Error 4756 (Invalid stops) on SL modify
I caught a 4756 error [Invalid stops], but I don't known that is happening here... There is a buy position at 3284.000 with SL 3269.000 . The current price is 3296.000 .  At this moment, I tried to set a new SL to 3284.020 and I got the error
Rafael Caetano Pinto
Added topic How to log ClosePosition cause (SL, TP, EA)?
I want to implement some way to log my OpenPositions, modifyPositions (SLTP changes) and closePositions (by EA or by SLTP) to generate some metrics.   So I read the docs: onTrade  and historySelect  to implement a code to print all
Rafael Caetano Pinto
Added topic How to known if a candle is down (red) or up (green)
I need to get if the candle is green or red programatically. I already tried to use MqlRates and MarketBookGet to recover this info, but with no success. Can you help me? 
Rafael Caetano Pinto
Registered at MQL5.community
123