DDFX 2 Neuro Trade v3

Download script
Author: Repro from Neuro Trade
DDFX 2 Neuro Trade v3

This script is a technical analysis tool designed to identify market trends and provide visual entry signals based on price action behavior. It works by calculating dynamic price levels and monitoring how the current market price interacts with those levels.

Core Logic Overview

The indicator operates by establishing two distinct "price zones" or boundaries. These boundaries are calculated automatically based on the historical high and low prices over a specific number of preceding candles. By looking at these recent highs and lows, the script creates a reference frame to determine where the market is currently positioned relative to its recent volatility.

How it Processes Market Data

  1. Dynamic Boundary Identification: The script constantly scans recent price history to identify key support and resistance points. It uses two different look-back periods to create two sets of boundaries. These are not fixed numbers but fluctuate as the market moves, allowing the tool to adapt to changing conditions.

  2. Price Position Tracking: The logic compares the closing price of each candle against these calculated boundaries.

    • If the price is moving in one direction relative to these boundaries, it updates the "active" level to reflect that movement.
    • It effectively tracks whether the price is trending upward or downward by identifying which boundary the market is currently interacting with.
  3. Trend Analysis & Volume Visualization: The script includes a histogram component that visualizes the relationship between the closing price and these boundaries. This helps in observing the "strength" of the current price action—essentially showing how far the market has pushed into a specific territory compared to its recent extremes.

Signal Generation

The most important feature for a user is the visual signaling system. The script triggers specific signals based on "breakout" behavior:

  • Bullish Signals: When the price closes significantly above both calculated boundaries, the script identifies a potential upward momentum. It places a specific visual marker (an arrow) to highlight this shift in sentiment.
  • Bearish Signals: Conversely, when the price closes significantly below both boundaries, it identifies downward pressure and places a corresponding marker to signal a potential sell opportunity.

Summary of Visual Output

To make this information easy to read on a chart, the script translates these complex calculations into four main visual elements:

  • Trend Lines: These show the current dynamic levels the price is reacting to.
  • Histograms: These provide a visual representation of price strength and movement.
  • Entry Arrows: These serve as the final "decision" points, appearing only when the price successfully breaks through the established boundaries in a specific direction.

In simple terms, this tool filters out the "noise" of the market by identifying the boundaries of current price action and highlighting the exact moments when the price breaks out of those boundaries to start a new move.

Miscellaneous
Implements a curve of type %1
13 Views
1 Downloads
0 Favorites
DDFX 2 Neuro Trade v3
/*
   Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
   Website: http://purebeam.biz
   E-mail : purebeam@gmail.com
*/
#property copyright "Repro from Neuro Trade"

#property indicator_chart_window
#property indicator_buffers 6
#property indicator_color1 Red
#property indicator_color2 CLR_NONE
#property indicator_color3 Red
#property indicator_color4 Blue
#property indicator_color5 Blue
#property indicator_color6 Red

int gi_76 = 3;
int gi_80 = 8;
int gi_84 = 0;
int gi_88 = 2;
double gd_92;
double gd_100;
double gd_108;
double gd_116 = 0.0;
double gd_124;
double gd_132 = 0.0;
double gd_140;
double gd_148;
int gi_156 = 0;
double gd_unused_160 = 0.0;
int gi_unused_168 = 0;
double g_ibuf_172[];
double g_ibuf_176[];
double g_ibuf_180[];
double g_ibuf_184[];
double g_ibuf_188[];
double g_ibuf_192[];
double g_ibuf_196[];
double g_ibuf_200[];

int init() {
   IndicatorBuffers(8);
   SetIndexBuffer(6, g_ibuf_180);
   SetIndexBuffer(7, g_ibuf_184);
   IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS));
   SetIndexStyle(0, DRAW_NONE, STYLE_SOLID, 2);
   SetIndexBuffer(0, g_ibuf_172);
   SetIndexStyle(1, DRAW_NONE, STYLE_SOLID, 2);
   SetIndexBuffer(1, g_ibuf_176);
   SetIndexDrawBegin(0, gi_80 + 1);
   SetIndexDrawBegin(1, gi_80 + 1);
   SetIndexDrawBegin(2, gi_80 + 1);
   SetIndexDrawBegin(3, gi_80 + 1);
   SetIndexDrawBegin(4, gi_80 + 1);
   SetIndexDrawBegin(5, gi_80 + 1);
   SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID, 2);
   SetIndexBuffer(2, g_ibuf_188);
   SetIndexStyle(3, DRAW_HISTOGRAM, STYLE_SOLID, 2);
   SetIndexBuffer(3, g_ibuf_192);
   SetIndexStyle(4, DRAW_ARROW, STYLE_DASH, 1);
   SetIndexArrow(4, 233);
   SetIndexBuffer(4, g_ibuf_196);
   SetIndexStyle(5, DRAW_ARROW, STYLE_DASH, 1);
   SetIndexArrow(5, 234);
   SetIndexBuffer(5, g_ibuf_200);
   IndicatorShortName("Entry Signal");
   SetIndexLabel(0, "Line1");
   SetIndexLabel(1, "Line2");
   SetIndexLabel(2, "Bar1");
   SetIndexLabel(3, "Bar2");
   SetIndexLabel(4, "Sig1");
   SetIndexLabel(5, "Sig2");
   return (0);
}

int deinit() {
   return (0);
}

int start() {
   int li_0;
   int li_unused_4 = MarketInfo(Symbol(), MODE_DIGITS);
   if (Bars <= gi_80) return (0);
   int l_ind_counted_8 = IndicatorCounted();
   if (l_ind_counted_8 == 0) li_0 = Bars - 1;
   if (l_ind_counted_8 > 0) li_0 = Bars - l_ind_counted_8 - 1;
   for (int li_12 = li_0; li_12 >= 0; li_12--) {
      gd_92 = High[iHighest(NULL, 0, MODE_HIGH, gi_76, li_12)] + gi_84 * Point;
      gd_100 = Low[iLowest(NULL, 0, MODE_LOW, gi_76, li_12)] - gi_84 * Point;
      gd_108 = High[iHighest(NULL, 0, MODE_HIGH, gi_80, li_12)] + gi_88 * Point;
      gd_116 = Low[iLowest(NULL, 0, MODE_LOW, gi_80, li_12)] - gi_88 * Point;
      if (Close[li_12] > g_ibuf_172[li_12 + 1]) gd_124 = gd_100;
      else gd_124 = gd_92;
      if (Close[li_12] > g_ibuf_176[li_12 + 1]) gd_132 = gd_116;
      else gd_132 = gd_108;
      g_ibuf_172[li_12] = gd_124;
      g_ibuf_176[li_12] = gd_132;
      gd_140 = 0.0;
      gd_148 = 0.0;
      if (Close[li_12] < gd_124 && Close[li_12] < gd_132) {
         gd_140 = High[li_12];
         gd_148 = Low[li_12];
      }
      if (Close[li_12] > gd_124 && Close[li_12] > gd_132) {
         gd_140 = Low[li_12];
         gd_148 = High[li_12];
      }
      g_ibuf_188[li_12] = gd_140;
      g_ibuf_192[li_12] = gd_148;
      if (Close[li_12] > gd_132 && Close[li_12] > gd_124 && gi_156 != 1) {
         g_ibuf_196[li_12] = gd_132;
         g_ibuf_200[li_12] = EMPTY_VALUE;
         gi_156 = 1;
      }
      if (Close[li_12] < gd_132 && Close[li_12] < gd_124 && gi_156 != 2) {
         g_ibuf_200[li_12] = gd_132;
         g_ibuf_196[li_12] = EMPTY_VALUE;
         gi_156 = 2;
      }
   }
   return (0);
}

Comments