Pedro Severin
Pedro Severin
Pedro Severin
Added topic Calculating currency indexes?
Hi, I was looking at this formulas: USD_INDEX= 50.14348112 × EURUSD^-0. 576 × USDJPY^0. 136 × GBPUSD^- 0.119 × USDCAD^0. 091 × USDSEK^0. 042 × USDCHF^0. 036 and EUR_INDEX =   34.38805726 x (EURUSD^( 0.3155 ) x EURGBP^( 0.3056 ) x EURJPY^(
Pedro Severin
Added topic Streaming data from MT4
Hi, I'm trying to stream tick data from the MT4 terminal to a postgres database, but I have a couple of questions that I would like to try to clarify first. 1. I'm considering on using ZMQ for this purpose. Have anyone tried this before? Is there a
Pedro Severin
Added topic Currency strength or index? Which is better and why?
Hello everyone, I recently came with an idea of doing trading based on currency strength or currency index. The thing is that I'm having a little bit of confusion when deciding which one to use, so I came here seeking for your enlightment and wisdom
Pedro Severin
Added topic webrequest
Hello everyone! Is it possible to use webrequest function of mt4 to enter a X website with a login and pw and get a signal (buy/sell/hold,etc) from that request? Is there any example, besides the image upload example? And do I need to have all the
Pedro Severin
Added topic Virtual Trailing Stop
Hello guys, I'm trying to do a virtual trailing stop to replace the normal one. The main idea is to use it in a scalper, but the results I'm getting are not even close when using the normal TS. Why is that? I'll leave my code here to see if anyone
Pedro Severin
Added topic Many trades in one month
Hello everyone! I'm trying to create /find an EA that's capable of doing many trades in one month (the more it makes, the better). It doesn't need to be profitable, as long as it doesn't destroy the account. For example, in 1 year, it should not lose
Pedro Severin
Added topic Foward testing
Hello everyone! Is there anyway to do forward testing in mt4 as in mt5? Or someway to make a forward testing "faster" and not going result per result? Thank you in advance
Pedro Severin
Added topic Abnormal termination
Hello guys! I have an issue regarding an EA I recently coded. I detected that sometimes it freezes the mt4 platform and I have to restart it or wait until it responses. I manage to identify that the function that was causing the issue is this one
Pedro Severin
Added topic Indicator error
Hello everyone. I found an interesting indicator on this forum (vq indicator) and I was willing to try it. When I tried to compile it, it throws me 6 errors that are all related to this line  for (i= 0 , int y= 0 ;i<limit;i++) { if
Pedro Severin
Added topic Neural Networks for trading
Hello eveyone! I was wondering on how a NN works in forex and how to "train" it depending on the peformance. The idea is this: based on 3 indicators, I create a NN that consist on 4 neurons(N). N1 recieves data from indicator 1 and 2. N2 recieves
Pedro Severin
Added topic Translating from MQL4 to MQL5
Hello everyone! I'm trying to translate (without much success) this indicator from MQL4 to MQL5. The code compiles, but there is no plot at all. What I'm missing? MQL4 code: //+------------------------------------------------------------------+
Pedro Severin
Added topic Task rejected by tester agent error
Hi! I am getting frequently an error that says "genetic pass (x,yyy) tested with error "task rejected by tester agent " in 0:00:00.000". The result of that pass is 0 and it seems that it doesn't try to execute that pass again.  Anyone else is
Pedro Severin
Added topic How to correctly hedge?
Hello everyone! I'm trying to code a hedge position when the price goes against me certain amount of pips. I've tried two different ways, but I'm not achieving it in a right way. The first of them is opening a pending order when a position is open
Pedro Severin
Added topic Calling icustom with variable parameters
Hello everyone! is it possible to call iCustom with different parameters that started as a string input? I'll post some photos of what I mean. This is where the user set the inputs of the indicator: and this is how I am eliminating spaces and
Pedro Severin
Added topic How to code a pullback?
Hi all! I am trying to code a pullback based on what price is doing. I want to use it when 3 moving averages are in line, so when price starts rising after a pullback I can enter the trend. I have tried to do this as a pullback to one of the MA, but
Pedro Severin
Added topic How can I add a signal to enter/exit trades on this indicator?
Hello everyone! How can I add signal/buffer to this indicator  to open and exit trades? I tried to add another buffer and read it, but I get numbers like "2.3454682334345 e-308" or just 0
Pedro Severin
Added topic Multiple calls of iCustom on backtest with more than one pair
Hi all!  I'm trying to do A backtest of an EA with more than one pair. In this case I use a custom indicator via iCustom and every time I call the handle the indicator is added to the chart and I end up with the same indicator 100 times. This
Pedro Severin
Added topic Trouble with sgnal given by indicator opens and closes tons of positions
Hi all! I am developing a trend system that opens a position depending on the signal it receives. It turns out that I am trying to incorporate an indicator that works as exit indicator (that is, when the signal is given, the trend is supposed to be
Pedro Severin
Added topic How can I know if a stoploss has been moved?
Hi all! I'm trying to do an EA that can recalculate target values when its re-initialized when the VPS restarts or when I reload the EA for any reason. The thing is that I am setting my stoploss at 1.5 * ATR value and want to take half of the profit
Pedro Severin
Added topic Error when starting EA
Hi! I'm trying to fill an array in the oninit function, but sometimes when I do the backtesting it gives me critical error because it tells me that I'm dividing by zero. The part that fills the array is as follows:    for ( int
12