Articles by: David Williams

Reversal Expert Advisor Drawing

Reversal Expert Advisor Drawing

The attached VTS system is a single-drawing that implements a reversal system.

It uses the function fnGetOpenOrderInfo twice:

  • once get the number of open orders (MyTotal)
  • once to get the type of open order (MyOrderType)

It uses 2 Logics

  • one to set the order type (OP_SELL or OP_BUY) if an order is open (AreThereAnyOpenTrades)
  • one to open a trade if none are opened, a SELL if the last trade (held in _MyOrderType) was a BUY, or vice-versa

Notice I try to give the names of each Element a descriptive name.

Notes:

  • The MetaTrader MQL built-in variables for order types are OP_SELL and OP_BUY.
  • In VTS, when you create a function that returns a value, a variable is automatically created to hold the value with the same name as the function with a preceding underscore.

This logic is a little tricky, I may add a function to VTS to automatically run a reversal.

I’ll add a video to this post shortly.

ReversalSystem

Fuzzy Logic Made Easy

Fuzzy Logic Made Easy

Not everything about trading is black and white.

One of the major limitations of modern trading systems is the inflexible logic used to generate standard trading signals. You know, rigid trading rules like “If today’s close price is higher than yesterday’s close price, then buy“.

Signal Aggregate Plug-in for VTS-Connect Expert Advisor Builder

Signal Aggregate Plug-in for VTS-Connect Expert Advisor Builder

Sometimes a rule that will work, sometimes it won’t.

It’s not always black and white. There is a “gray” area.

Until now, it’s been difficult to code “gray” area fuzzy logic into an Expert Advisor without writing thousands of lines of custom MQL code.

That’s what the Signal Aggregator Plug-in is for: It allows you to assign a different level of importance to each of your trading rules. We call these “weights”.

Assigning a weight to a trading rule allows you to describe it’s relative importance to your trading strategy, without letting the rule to dominate the behavior of your EA.

The  Signal Aggregator let’s you implement fuzzy logic and take advantage of those gray area decisions in the FOREX market.

You can learn more about the  Signal Aggregator here

This is a link to the documentation:  Signal Aggregator User Guide

Checkout the latest VTS-Connect Expert Advisor Builder and Plug-in Specials Here