@nmbruno Nevermind, I believe I figured this out. I need to use Epoch time in seconds...
Best posts made by nmbruno
-
RE: GMT Timestamp to Server / Chart Time *** SOLVED ***posted in Questions & Answers
Latest posts made by nmbruno
-
RE: How to define a portion of a variable name from user input as a constantposted in Questions & Answers
@jstap Thanks, I believe this will help me.
-
How to define a portion of a variable name from user input as a constantposted in Questions & Answers
Hi,
Is there a way to define a portion of a variable name using a user-defined string (as an input constant)?For instance, if I have a variable named "Lotsize_XX" in my algorithm, and I want to run the EA for XAUUSD.
I want to be able to define a string constant "XAUUSD" which will then change my variable's name from "Lotsize_XX" to "Lotsize_XAUUSD"Is there a way to do this in fxdreema?
Thanks
-
RE: Custom Indicator Helpposted in Questions & Answers
@bruno-3 I think you might need to use chart objects and their parameters to compare against candle properties. I've done this with another indicator and it works quite well. You can define a variable from chart object parameters.
-
Negative Volume Index (NVI) indicator with MQ4 and fxDreemaposted in Questions & Answers
Hello,
@fxDreema
I am trying to code an indicator in MQL4, then use fxdreema's "custom MQL Code" to view it on the chart. Ideally, I would like to use buffers to develop a strategy based on the indicator.The negative volume indicator is explained (here) quite well.
I have no experience coding MQL4, which is why I use fxdreema, however, I have experience with other coding languages. I'm not a programmer or computer scientist (I'm a mechanical engineer), but do have experience with C++, little bit of visual basic, and MATLAB coding languages.
I took the Custom Moving Average Code in MT4 and tried to modify it in MetaEditor and implement it on the chart. However, even though I get the code to compile in MetaEditor, it doesnt show me anything on the chart. There is a bug somewhere in the code and I was wondering if someone could help me fix it? Part of the strategy requires to take the moving average (period 255 ) of the NVI indicator, but I saw in another forum post that this is not possible with fxdreema. I was hoping to add on to the NVI script to automatically compute MA(255) of the first indicator's data like that shown below.
In the script, I deleted all different types of moving averages and only use the exponential (EMA). Attached is the .mq4
Really the "juice" of the code is as follows:
{... if ( volume[i]- volume[i-1] < 0)
ExtLineBuffer[i]=ExtLineBuffer[i-1]+((close[i]- close[i-1])/ close[i]);
else if(volume[i]- volume[i-1]>=0)
ExtLineBuffer[i]=ExtLineBuffer[i-1];
}
NVI_indicator_draft1.mq4
The NVI is similar to Accumulation/Distribution which is what is shown in the figure, below, but a little different. -
RE: Applying an indicator to Previous / First Indicator's Data in fxDreemaposted in Questions & Answers
@fxdreema Has there been any developments on this in the past 3 years? Or is this still impossible for MT4 with fxdreema?
-
RE: Day of month filterposted in Questions & Answers
No, I want the first friday of the month to be blocked. all other days are OK
-
RE: Day of month filterposted in Questions & Answers
Perhaps I could use hours filter in combo with the weekday filter?
i.e. if hours from start of month <=168 && if weeday == friday)
no tradeelse trade??
would this work?
I would need to make a variable for the time at the start of each month
-
Day of month filterposted in Questions & Answers
Hi, I am trying to think of how to program a filter that will block trades on the first friday of each month, but keep trading the rest of the fridays.
I was thinking something like...if (day of month <= 7) and if(weekday == friday)
then trading = inactiveelse
trading = activeI see the weekday filter, but none for the day of the month. Any advice?
thanks
-
RE: GMT Timestamp to Server / Chart Time *** SOLVED ***posted in Questions & Answers
@nmbruno Nevermind, I believe I figured this out. I need to use Epoch time in seconds...