Other News

How to View Multiple Time Frames using the VTS EA Builder

 

Q:
Does the VTS EA Builder have the ability to build and veiw mult-time frames?  For example, if I use an indicator on the 5m time frame, am I able to confirm that entry by looking at another indicator on the 15m time frame?
A:
Yes, very easily. All MQL indicators (both standard and custom) have a parameter to select the desired timeframe.
To configure any indicator, click the (+) button along the bottom of the element:
This will open the configuration window, which allows you to select all of the parameters for that particular indicator, including the timeframe:
Note: Selecting CHART will use the timeframe of the chart to which the Expert Advisor is attached. CHART is the default value.

To get notified about the latest questions and answers, follow us!

RAQ

Expert Advisor that Finds Absolute Value of EMA’s and Sends Email

 

Q:  Hi!  I would like to create an EA that compares the distance between two EMAs (EMA10 and EMA20) across two periods say the current and the previous period.  Can I do this in the VTS? 

 

A: Yes, you can. Wach the video below to see how.

In this video I get the absolute value of two sets of Exponential Moving Averages (EMA).   Then I  compare them and send an email if one is greater than the other.

The key to this EA is using the MQL function MathAbs to find the  absolute value.  In this case, you need to manually type the values into the variable assignment field like this:
MathAbs(_EMA13_0 – _EMA26_0)
MathAbs(_EMA13_1 – _EMA26_1)

This is not ideal because you can create a syntax error entering this text. As a matter of fact, I did exactly that when I created this video. (I swear it was not on purpose for dramatic effect!)  I also show how to find and correct the error.

I’m always looking for better ways. There is an “equation editor” on the variable assignment field, but I don’t think it’s real useful.  if you have any ideas, please pass them along.



https://youtu.be/NKiVD7-0CZs

 

 

To get notified about the latest questions and answers, follow us!

 

RAQ