God of thoughts Version: 1.0

×

"Master the Market with Precision – Let the God of Thoughts Guide Your Trades!"

🔹 Expert Advisor Overview

Name: God of Thoughts.mq4

Developer: R.KH 1001

Source: RoboMQL


This Expert Advisor (EA) is designed to trade based on a moving average (MA) crossover strategy, with additional features for risk management, position averaging, and trade timing control. It uses a combination of MA signals, pip-step entry rules, and dynamic stop-loss adjustments to optimize trade execution.


📌 Key Features & Strategy

1. Entry Conditions

Uses Simple Moving Average (SMA) of either:


Close prices (MAtype=0)


High/Low prices (MAtype=1)


Enters trades when price deviates by a user-defined percentage (Percent) from the MA.


PipStep (PipStep) ensures new trades are only opened if price moves favorably by a set pip distance from the last entry.


2. Trade Management

Averaging Down: If the market moves against open positions, the EA can add to losing trades at predefined intervals (PipStep).


Dynamic Stop-Loss: Adjusts stop-loss based on the average entry price of all open trades to limit total risk (Stoploss).


Take Profit: Fixed take-profit level (TakeProfit).


3. Risk Controls

Stoploss (Stoploss): Total allowed loss (in pips) across all open positions.


Friday Trading Control (TradeOnFriday): Option to disable trading on Fridays.


Spread Awareness: Detects stop-loss hits to avoid immediate re-entry in the same direction.


4. Position Sizing & Execution

Fixed lot size (Lots).


Slippage control (slip).


⚙️ Input Parameters

ParameterDescription

MA_lengthMA period for signal generation

PercentPercentage deviation from MA to trigger trades

TradeOnFridayEnable/disable Friday trading (1=enable, 0=disable)

MAtypeMA price source (0=Close, 1=High/Low)

LotsFixed trade size

TakeProfitTake-profit in pips

StoplossMax allowed loss (in pips) across all trades

PipStepRequired pip distance to open a new trade

IncreasementTypeScaling factor for PipStep (0=fixed, 0=dynamic increase)

📊 How It Works

Checks market conditions (MA deviation, PipStep distance, Friday trading rule).


Opens trades if criteria are met (BUY if price is below MA, SELL if above).


Modifies stops & targets based on the average entry price when multiple trades are open.


Avoids immediate re-entry after a stop-loss hit to prevent overtrading.


🚀 Final Words

"Trade with the wisdom of the markets – where strategy meets discipline!"


Developer: R.KH 1001

Official Website: RoboMQL


This EA is ideal for traders looking for a systematic, rule-based approach with controlled risk. Test it thoroughly in a demo environment before live deployment! 🚀



Leave a comment

$45