Hello! I have one question … lets say that I set pending order open price at 0.1234… and the price… from 0.1230 jumps to 0.1238… let’s say during High Volatility times like news or rollover or something. At what price will the pending order turn into
Hi! I have recently found out that indicators can be loaded in EA as a resource. I was wondering if include .mqh files can be loaded in the same manner?!
Hi! One question: I am testing this EA with strategy tester , I test using open prices, and on 1Hr I get positive results. Then I test again on 4Hr and I get negative results. And I change again to 1Hr and I get negative results. I am using always
Hello! So I have made this EA which is very simple, once a condition is met it will open a trade. And it will keep adding another 4 trades if conditions are met. All ticket numbers are stored in global area int Ticket1= 0 ,Tikcet2= 0 ,Ticket3= 0
Hello! I have one question: If I calculate margin like this: double lot=0; for(int i =OrdersTotal()-1; i>=0; i--) { if(OrderSelect(i,SELECT_BY_POS)) { lot+= OrderLots(); } } int leverage= (int)AccountInfoInteger(ACCOUNT_LEVERAGE); double
Hi guys, trying to make an indicator to plot sr lines on main chart on macd crossover...like My MACD S/R from tradingview... I have this code, it compiles, but is not what I want...:)... I can see a spike on that chart line at macd crossover but the
Hi guys, Am trying to understand why I get ZeroDivideError for the indicator at the end of the calculation loop. Last 20 candles SlowMa is 0.... This is code of the indicator: int init() { SetIndexBuffer(0, CurtaBuffer, INDICATOR_DATA);
Hi guys! About Magic Number… I read materials about Magic Number using, but just before I do changes in my EA I would like an opinion. So I have one EA that is opened on each particular pair. I do not use it on same pair twice ( like different
Hi guys! I have one issue...so I have this EA which is having, avoiding major news events among filtering trades. This function is downloading news events from forexfactory and writhting in one csv file. All good and working fine if I load this EA to
Hello guys! I have an issue with my EA. It is giving this Error 3 Invalid Trade Parameters but only if I use it on lower timeframes ( lower then M4). On M4 or Daily time is working fine. My SL and TP are calculated as per ATR value...also
Hello guys, I have an issue with calling an indicator in my EA. It is loading multiple times as. I call this EA in a function as below: void OnInit () { double BV( int buff, int shift){ return ( iCustom ( _Symbol , 0 , "BetterVolume 1.4"
Hello guys! I am trying to add a buy/sell condition to my EA. As if buy/Sell only if ATR(1)<ATR(14). So I have called atr indicator into my EA, add the condition but my EA will not care about this condition. What am I doing wrong? input int