PATI Trading Assistant automates the placement of stop losses and take profits, specifically managing range breakout and pullback setups. The EA includes risk controls such as the Two Minute Rule for pending orders and automatic closure when a price closes back inside a range. It features a graphical user interface for manual drawing and order execution but requires external DLL imports for its UI components.
Read from PATITradingAssistant.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
General
string
===General===
Testing
bool
false
PairOffsetWithinSymbol
int
0
AlertOnTrade
bool
true
MakeTickVisible
bool
false
SaveConfiguration
bool
false
ConfigureStops
string
===Configure Stop Loss Levels===
DefaultStopPips
int
12
ExceptionPairs
string
EURUSD/8;AUDUSD,GBPUSD,EURJPY,USDJPY,USDCAD/10
SendSLandTPToBroker
bool
true
SetLimitsOnPendingOrders
bool
true
AdjustStopOnTriggeredPendingOrders
bool
true
Show all 40 inputs
Name
Type
Default
Description
ConfigureDisplay
string
===Configure Trade Display===
ShowEntry
bool
true
ShowInitialStop
bool
true
ShowExit
bool
true
ShowTradeTrendLine
bool
true
EntryIndicator
int
2
WinningExitColor
color
Green
LosingExitColor
color
Red
TradeTrendLineColor
color
Blue
ConfigureNoEntryZone
string
===Configure No-Entry Zone===
ShowNoEntryZone
bool
true
NoEntryZoneColor
color
DarkGray
MinNoEntryPad
double
15
ConfigureTP
string
===Configure Take Profit Levels===
UseNextLevelTPRule
bool
true
MinRewardRatio
double
1.5
ConfigureRangeLines
string
===Configure Draw Range Lines feature===
ShowDrawRangeButton
bool
true
RangeLinesColor
color
Yellow
RangeLineLabelColor
color
Blue
RangeLineLabelSize
int
1
SetPendingOrdersOnRanges
bool
false
MarginForPendingRangeOrders
double
1.0
ObserveTwoMinuteRule
bool
true
AutoCloseOnCBIR
bool
true
AlertOnCBIR
bool
false
ConfigureYellowLines
string
===Configure Draw Yellow Lines feature ===
ShowDrawYLButton
bool
true
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone daveh551/PATITradingAssistant from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
3Copy the filesCopy the .mq4 file into Experts, and any .mqh files into the Include folder the code expects.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This repository features a diverse collection of expert advisors and trading utilities for MetaTrader 4 and MetaTrader 5. It includes automated robots based on trendline analysis, session breakouts, and technical indicator crossovers using MACD, RSI, and Williams Percent Range. The library provides various tools for ri
This MetaTrader 5 expert advisor implements a box breakout strategy designed for the foreign exchange market. The robot identifies price ranges during specific time windows and enters trades upon a breakout. It features a trend filter using fast and slow moving averages to align entries with broader market direction. R
This repository contains a collection of MetaTrader 4 expert advisors, including the Ariel Turtle Bot and several named variants like Elisa, Cary, and Faith. The primary logic utilizes Donchian Channel breakouts combined with Simple Moving Average filters to identify trend-following entries. The software includes compr
Binario is a breakout expert advisor for MetaTrader 4 and 5 that utilizes a price channel constructed from two moving averages of the same period. By default, it uses a 144-period exponential moving average applied to both highs and lows. It enters trades when the price moves outside this band by a predefined pip dista
This repository contains a collection of MetaTrader 4 expert advisors and utilities primarily focused on breakout and trend-following strategies. The featured EA, ttnFullTurtle, implements the classic Turtle Trading rules using dual breakout systems, ATR-based position sizing, and pyramiding logic. It includes risk con
This MetaTrader 4 expert advisor executes a regime-gated breakout strategy specifically optimized for XRP and ETH markets. It operates on the H4 timeframe, utilizing Bollinger Bands for entry signals coupled with ADX and ATR filters to identify high-volatility trend environments. The EA employs a one-shot entry approac