NNFX Algo Tester Help

Setting up a Custom Two Level Cross indicator

The Two Level Cross option allows you to add an external indicator to your algorithm.

You can see examples of Two Level Cross indicators here: https://nnfxalgotester.com/help/two-level-cross/

How the Two Level Cross option works:

As you can see in the image below, the Two Level Cross option can be used to include indicators as C1, C2, Volume, Exit or Continuation. Each function will use the same indicator differently, so:

  • As Main Confirmation (C1) or Continuation Indicator: A BUY signal is generated when the element created by the indicator crosses above the second level chosen, and a SELL signal is created whenever the element crosses below the first level.

  • As 2nd Confirmation (C2): A BUY signal is accepted when the indicator element is above the second level chosen. And a SELL signal is accepted when the indicator element is below the first level chosen.

  • As Volume Indicator: A BUY or SELL signal is accepted when the indicator element is above the second level chosen or below the first level chosen (trade zone = volume in the market). The signal is blocked if the indicator element is between the first and second level (no-trade zone = market without volume).

  • As Exit Indicator: An Exit SELL signal (ie. to close a short position) is generated when the element created by the indicator crosses above the second level chosen. And an Exit BUY signal (ie. to close a long position) is generated when the element created by the indicator crosses below the first level.


Two Level Cross configuration:

To include a Two Level Cross indicator, indicator inputs, the indicator path and name, the buffer representing the line created by the indicator, and the two levels (lower level first) must be indicated in the "Indicator Parameters" section.

The indicator should be placed in MT4's indicators folder (MQL4\Indicators).

Pro tip: To invert the operating mode, simply place a minus sign before the buffer. For example, change from "2" to "-2".
And to obtain a different operation, you can also invert the
level positions, placing the upper level first. Try it!