The relationship between EA(Expert Advisors ) and Indicator in MT4 MT5 MQL4 MQL5


Basically, the EA (Expert Advisor) is an autotrader that trades automatically by itself.
The trading rules of the EA may involve more than one indicator.

Indicator is the scripts that plot data related to Technical Analysis on chart, such as SMA(simple moving average).

The indicators used by an EA are built-in with it, any indicator you have on chart will not affect the EA. The indicators and EA on chart work separately, they will not interfere with each other.

For example, you have an EA which has the following trading rules:

  • Long: when SMA(9) cross above SMA(30)
  • Short: when SMA(9) cross below SMA(30)


Attention:

  • The EA will trade without any SMA on chart.
  • Even if you add RSI, MACD, SMA(15) and EMA(55) on chart, the EA will still trade by those rules listed above.
  • If you run the EA on chart, it will not plot any SMA unless you add the SMA indicator.
  • The chart type you used will NOT affect the EA,
  • If you have SMA(9) and SMA(30) on chart, and you changed them to SMA(5) and SMA(45) , it will NOT affect the EA. EA will still trade by those rules listed above.
  • You can only change the way the EA trade by adjusting its input.

Since you may load the indicators that the EA used on chart as reference, please make sure you have the same input value for both EA and the Indicators, otherwise you will see inconsistency. 

 

For example,  you have an EA which has the following trading rules:

  • Long: when SMA(9) cross above SMA(30)

You add SMA(14) and SMA(50) on chart and you also add the EA. 

But the EA did not enter/exit the trades when the 2 SMA on chart cross over.

That’s because your EA was trading by the rule of SMA(9) and SMA(30).

What you see on chart is SMA(14) and SMA(50).

 

 

 

 

Advertisements

Auto ZigZag Fibonacci extension indicator Ninjatrader NT8

Fibonacci retracement is a method of technical analysis for determining support and resistance levels. They are named after their use of the Fibonacci sequence. Fibonacci retracement is based on the idea that markets will retrace a predictable portion of a move, after which they will continue to move in the original direction.

This custom Ninjatrader indicator will plot Fibonacci extension lines automatically from previous Zigzag High or Low. It works on any timeframe and chart type that supports ZigZag, such as Renko, Heiken Ashi, Range and Tick.

It uses the built-in version of Zigzag from NT8, but instead of plotting Zigzag on chart, it draws the Fibonacci extension lines.

It has all the inputs of Zigzag and two additional inputs for Fibonacci extension, if you checked “Show Extra lines”, it will plot the Fibonacci retracement of 0.236, 0.382 and 0.618 above and below the 0% and 100%.

 

If “Use Recent ZigZag” is enabled, the indicator will use the most recent stable ZigZag, otherwise it will use the previous one. Please check the images below for a better understanding.

The indicator may not work properly if there was not enough bars on the chart.

In general, 800 bars is good, but it also depends on the ZigZag Deviation value you set.

The bigger the Deviation value is the more bars you need to load.

You can change “bars to load” by following the pic below.


The fastest way to access your fav inputs is saving it as Templates.

The price percentage change of Stock, Forex and Futures vary widely in the same timeframe.

In most case, Stocks have higher percentage change than Forex and Futures.

Deviation percent value 0.01-0.065 is good for Forex in 1 to 5 minutes chart, but it may not work well for stocks or futures.

Please check the screenshots below to get some ideas of how to properly set the inputs.

Example of Heiken Ashi:

Example of Renko:

Example of Tick.

Example of  Range:

Example of minutes:

Stock Option data (Strike, Volume, Open Interest, Last, High, Low, Net Change, Percent Change) indicator for Thinkorswim TOS

This customized Thinkorswim indicator shows stock option data as a panel on chart.

It makes possible for option traders to track multiple strikes with different underline stocks in one single chart. You don’t have to check every symbol and strike manually anymore. It will save you a lot of valuable time and improve your efficiency.

Features:

  1. Shows Strike, Volume, Open Interest, Last, High, Low, Net Change, Percent Change from any given symbol’s Call data.
  2. Shows Strike, Volume, Open Interest, Last, High, Low, Net Change, Percent Change from any given symbol’s Put data.
  3. Shows Strike, Volume, Open Interest, Last, High, Low, Net Change, Percent Change from current chart symbol’s Call.
  4. Shows Strike, Volume, Open Interest, Last, High, Low, Net Change, Percent Change from current chart symbol’s Put.
  5. Alert when the Last of a Call or Put is greater than the input value.
  6. Set up any proper strike price you want.
  7. Set up the expire date of an option.
  8. Enable to use this indicator for current chart’s symbol only.
  9. Enable to use this indicator for any optionable symbol.
  10. Show option data for as many symbols as you want.

Understanding the inputs

  • use Current Symbol: if set it to YES, then it will only show option data of the current chart symbol, it will ignore the symbol that you entered. if set it to NO, it will only show option data from the symbol you entered.
  • symbol: it only works when you set  “use Current Symbol” to NO.
  • expire date: the expiration of the option in format of YYMMDD
  • strike price: the option strikes, if you entered a invalid number it will show nothing on chart.
  • CallAlertPrice: the price value used to compare with Call’s Last traded price.
  • PutAlertPrice: the price value used to compare with Put’s Last traded price.
  • uncheck the “Enabled” option to disable alert.

The best way to know how it works is to begin with an example.

If you want it to show the option data of ‘SPY’ with strike 230 and expires: April 13, 2017,

and get alerts if the Last of Call or Put is greater than $2.

Then you can use the following inputs if the current chart is ‘SPY’.


If the current chart is QQQ, and you want to watch the option data of ‘SPY’ with strike 230 and expires: April 13, 2017. Then set:

input useCurrentSymbol=no;

input symbol=”spy”;

input expireDate = “170413”;

input strikePrice = 230;

input CallAlertPrice=2;

input PutAlertPrice=2;

It will alert if the Last of Call or Put is greater than $2. You could uncheck the “Enabled” option to disable the alerts.

If you only want to track the options for the current symbol displayed in chart, then simply set

input useCurrentSymbol=Yes, then specify strike prices and expiry dates you are interested in.

The screenshot shown below is an example of adding this indicator 6 time with useCurrentSymbol=Yes and different strike and different expiry date.

MTF Trend 4 in 1 multi time frame consistence check indicator for Tradingview

Price can be up trend and downtrend simultaneously in different timeframes.

Experienced traders know the importance of looking at Multiple Time Frames.

Analyzing multi time frame chart allows trader to have a greater view on the price action.

This MTF trend indicator shows the trend of current time frame and 3 higher time frames in a single chart. In addition, it will check the consistence of all 4 time frames. It will not repaint.

It will only work on time based charts. Tick and range charts are not supported.

The green dots represent uptrend, and the red dots represent downtrend.

The ‘trend period’ is used to measure the direction of price within the given number of bars.

The dots of value 1 at the bottom is the trend of ‘timeframe 1’

The dots of value 2 is the trend of ‘timeframe 2’

The dots of value 3 is the trend of ‘timeframe 3’

The dots of value 4 is the trend of current timeframe.

If current and 3 higher time frames are in the same direction, the dots at the top will appear.

Otherwise, there will be no dots at value 5.

‘timeframe1’ ‘timeframe2’ and ‘timeframe3’ must be higher than current timeframe, if your chart is 15min, ‘timeframe1’ ‘timeframe2’ and ‘timeframe3’ must be 20min or higher.

It will highlight bars when trends are inconsistent in different timeframes.

You can change the highlight color, or disable this feature.

The highlighted bars represent the situation where price may change its direction from previous trend, or in a short-term adjustment.

Probability Cone backtest indicator for Thinkorswim

The Probability Cone indicator uses statistical data to predict future price range with specified probability and implied volatility.
It plots a standard deviation curve designating ranges within which prices are predicted.

Thinkorswim has a Probability Analysis tool which is very popular for option trading.

It also has a chart study (ProbabilityOfExpiringCone) that can plot Probability Cone on the most recent bar.

The limitation of the Probability Cone provided by Thinkorswim is that we can only view the cone on the last bar.
It is impossible to know the relative position of current price and previous Probability Cones.

The purpose of this indicator is to give us the ability to back test the Probability Cone.

Features and inputs.

  1. Probability: The probability with which price will stay within the calculated range.
  2. Bar: the number of bars used to shift backward.
  3. Implied volatility(IV): the value of implied volatility to calculate the cone.
  4. It only works on Daily, Weekly and Monthly timeframes.
  5. It works for all kind of securities, not only Stock, but also Forex and Futures.

For example, if we have Probability=68.3, IV=0.11 and Bar =20.

The Probability Cone will be calculated and plotted from 20 bars back of the last bar on chart.

Normally, the Probability Cone is used for stock options analysis, but we can also use it in Forex.

The chart shown in below is a perfect example of applying it on FX.

When I test this indicator, I noticed that sometimes we can get better results if we plot the cone from previous swing high and low.


The extension lines of two Cones may form a support and resistance zone.

Tradingview double top chart pattern detector indicator with alert

Double top is a very common chart pattern, as its name indicates, it consists of two tops, and these two tops need to be in a relative flat price level. One of the top can’t be much higher or lower than the other.

This indicator will detect and highlight double top pattern automatically on chart and alert you via SMS, email and sound.

Features:

  • Adjust the threshold between two tops.
  • Adjust the number of bars used to form each top.
  • Check if the first top is the highest in a given number of bars
  • Adjust the number of bars between two tops.
  • Switch of alert.

 

A detailed instruction will show you how to properly adjust each input.

 

It works on all timeframes and any symbol.

You can also load more than one with different inputs to get more results on chart.

Auto Trendline, Upper Descending Trend line indicator with alert for Tradingview

VIP price: $89   This is a Permanent access license, please provide your Tradingview ID along with your payment.
Get it at: https://goo.gl/DK5lt2

This is a custom Tradingview indicator that automatically plots descending trend lines above price bars. It will alert when the price closes above the trend line.

The concept is straightforward: the trend line is formed by two adjacent peaks when the price is in a downtrend. It will save a lot of time for people (just like me) who uses trendline often.

By deploying this indicator, should the condition meet, you don’t need to draw the trend lines by hand anymore. You can also consider it as a trend line reminder.

It’s also very easy to use, just load it on chart and set your desired inputs.

Features:

  • Adjust the strength of the 2 peaks that form the trend line.
  • Set price difference between two peaks in two variables: amount or percentage.
  • Turn on/off the cross above alert.
  • It works on all symbols and all timeframes.
  • never paint

A detailed instruction will show you how to properly adjust each input.

By using different inputs, you can easily filter out some unwanted trend lines.

For example, in the chart below, the first 2 trend lines on the left side consist of 2 peaks which had very small price difference. Those 2 trend lines are nearly flat.

The chart in below is the same as the above one, but with a higher price different input, we can filter out these 2 flat trend lines.

You can also load more than one of this auto trend line detector, such as  one for long term and another one for short term trend. Just like the chart shown in below, the aqua trend line is a longer term compared to the red ones.

Please check more screenshots: