Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
BioMicro Center
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
Pivot Levels Pro EA
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<br>Pivot Levels Pro: Professional Trading System Based on Pivot Levels for MetaTrader 5<br><br><br><br>For traders specializing in trading from key price levels, Pivot Levels Pro provides a revolutionary solution for automatic calculation and visualization of support and resistance levels with complete position management, including trailing stops and break-even functions while simultaneously supporting multiple pivot calculation methodologies.<br><br><br><br>Pivot Calculation System and Support for Multiple Methodologies<br><br><br><br>Pivot Levels Pro includes support for five main pivot level calculation methodologies, each with its own characteristics and applied in different market conditions. Classical methodology (PIV_CLASSIC) calculates levels based on average value of previous period high, low, and close, being the most traditional and proven method. Fibonacci methodology (PIV_FIBO) uses golden ratio coefficients (0.382, 0.618, 1.0, 1.618) to calculate resistance and support levels based on price range, providing mathematically justified levels.<br><br><br><br>Camarilla methodology (PIV_CAM) calculates levels based on expanded previous day range (H * 1.1), creating levels that often coincide with price reversal points. Woodie methodology (PIV_WOODIE) uses special calculation with double-weighted closing price, making it especially useful for intraday trading. DeMark methodology (PIV_DEMARK) uses conditional logic based on opening and closing price ratio, providing unique way of determining critical levels.<br><br><br><br>The system allows trader to select preferred calculation methodology through simple PivotType parameter, providing complete flexibility in approach selection. Each methodology is recalculated on each new bar in selected time period (from M1 to MN1), ensuring constant level relevance.<br><br><br><br>Pivot Level Visualization with Automatic Extension<br><br><br><br>Pivot Levels Pro implements advanced pivot level visualization system on price chart with automatic horizontal extension of levels for specified number of days forward. The system draws horizontal lines from current moment in time for period defined by PivotExtendDays parameter, allowing trader to see long-term support and resistance levels. Each level uses separate color: Pivot level shown in blue, R1-R4 resistance levels displayed in green, S1-S4 support levels displayed in red.<br><br><br><br>The system includes ShowLineLabels option for displaying text labels on each level showing level name (for example, "R1(0.382)=1.0850" for Fibonacci methodology or "R1(H/12)=1.0925" for Camarilla methodology). Each label is anchored to line beginning and displayed right of the line, ensuring complete information visibility without price overlap. PivotLineStyle parameter allows selecting line style (solid, dashed, striped), and PivotLineWidth parameter controls line thickness.<br><br><br><br>Automatic Signal Detection System from Pivots<br><br><br><br>Pivot Levels Pro includes automatic trading signal detection system based on price position relative to Pivot level. The system analyzes current closing price and determines whether price is above or below main Pivot level. When price is above Pivot level, the system generates buy signal (BUY_SIGNAL), assuming continuation of uptrend. When price is below Pivot level, the system generates sell signal (SELL_SIGNAL).<br><br><br><br>The system tracks signal activity and prevents repeated position opening on same signal using isActive flag for each signal. The system also analyzes last trade time and requires minimum interval between trades (MinutesBetweenTrades parameter), preventing excessively frequent trading.<br><br><br><br>Position Size Management System with Risk Adaptability<br><br><br><br>Pivot Levels Pro implements intelligent position size management system that can operate in two modes. LOTMODE_FIXED mode uses fixed lot size (FixedLotSize), providing consistent trading volume for each trade regardless of market conditions. LOTMODE_PERCENT mode automatically calculates lot size based on selected risk level (RISK_LOW, RISK_MEDIUM, RISK_HIGH) and current account balance.<br><br><br><br>When using percentage method, the system determines maximum allowable loss on single position as percentage of balance (1% for LOW, 2% for MEDIUM, 5% for HIGH). The system then calculates lot size such that when stop-loss is triggered, loss does not exceed set percentage. The system automatically normalizes calculated lot according to broker requirements (minimum size, maximum size, increase step).<br><br><br><br>Support for Hedging and Netting Modes<br><br><br><br>Pivot Levels Pro automatically determines account operating mode (hedging or netting) and adapts trading logic accordingly. In hedging mode, the system allows opening opposite positions simultaneously, creating hedged positions for protection from adverse movements. In netting mode, the system allows opening only one position in each direction simultaneously, converting opposite signals into modification of existing position or its closure.<br><br><br><br>The system uses AccountInfoInteger(ACCOUNT_MARGIN_MODE) function to determine account mode and automatically adapts CheckGridAddPositions logic, which in hedging mode prevents adding new positions of same type, while in netting mode is not applied at all.<br><br><br><br>Grid Trading System Based on Pivots<br><br><br><br>Pivot Levels Pro includes optional grid trading system (Grid Trading), which can only be used in hedging mode. MaxGridPositions parameter defines maximum number of simultaneous positions in one direction the system can open. GridStep parameter defines distance in pips between grid levels.<br><br><br><br>When system opens initial position based on pivot signal, it tracks entry price (g_lastBuyPrice or g_lastSellPrice). When price moves by GridStep distance in position direction, the system opens additional position provided that current position quantity is less than MaxGridPositions and minimum interval between trades is observed.<br><br><br><br>Trailing Stop System for Profit Maximization<br><br><br><br>Pivot Levels Pro includes sophisticated trailing stop system, which dynamically moves stop-loss level higher as profitable position develops. TrailingStart parameter defines minimum profit in pips at which trailing stop is activated. TrailingDistance parameter defines distance in pips at which stop-loss is placed from current price.<br><br><br><br>Upon reaching profit position above TrailingStart, the system begins automatically pulling up the stop-loss, following price at TrailingDistance distance. TrailingStep parameter defines minimum change in pips necessary to move the stop-loss, preventing unnecessarily frequent position modifications. DoTrailing function checks each position and when necessary calls SafePositionModify to update stop-loss.<br><br><br><br>Break-Even Function for Eliminating Losses<br><br><br><br>Pivot Levels Pro automatically moves the stop-loss to break-even point when a position reaches certain profit level, eliminating possibility of losses on that position. BreakEvenStart parameter defines minimum profit in pips at which break-even function is activated. BreakEvenOffset parameter sets small offset above entry point where break-even stop-loss is placed.<br><br><br><br>DoBreakEven function checks each position and when condition is met, moves stop-loss to break-even plus small offset, ensuring zero risk while maintaining potential for continued profitable movement. The system uses ValidateSL function to check new stop-loss compliance with broker requirements before setting it.<br><br><br><br>Application on Major Trading Instruments<br><br><br><br>Pivot Levels Pro is effectively applied to all major currency pairs EURUSD, GBPUSD, USDJPY, AUDUSD due to clear bounces from pivot levels and predictable patterns. On precious metal XAU (gold), the system demonstrates high accuracy due to distinct support and resistance levels and regular pullbacks to Pivot level. On energy commodities WTI and Brent, the system shows reliable results due to cyclic price behavior and frequent returns to Pivot level.<br><br><br><br>On cryptocurrencies BTC and ETH, the system operates with good effectiveness due to technical price behavior and distinct support and resistance levels that well coincide with pivot levels.<br><br><br><br>Spread Check and Trading Conditions System<br><br><br><br>Pivot Levels Pro includes strict trading condition checks before opening each position. The system checks current instrument spread and halts trading if spread exceeds set MaxSpread value, preventing trading in unfavorable conditions. The system also checks instrument availability for trading and symbol trade mode.<br><br><br><br>Margin Check System with Automatic Position Size Adaptation<br><br><br><br>Pivot Levels Pro includes comprehensive available margin check system before opening each position. CheckMarginAndAdjustLot function automatically checks whether there is sufficient free margin to open position of requested size. If margin is insufficient, the system automatically reduces lot size by 50% and repeats the check. This process repeats up to 8 times, allowing the system to find optimal lot size that can be opened with available margin.<br><br><br><br>Control Panel with Real-Time Statistics Tracking<br><br><br><br>Pivot Levels Pro includes built-in control panel displaying key profit indicators in real-time. The panel shows daily profit (Day Profit), weekly profit (Week Profit), monthly profit (Month Profit), and total profit (Total Profit), updating these values based on closed trade history. DisplayPanel, DisplayProfitStats, and DisplayTradeHistory parameters allow disabling the panel and its individual elements when needed.<br><br><br><br>Trade History Visualization System on Chart<br><br><br><br>Pivot Levels Pro displays entire history of executed trades directly on the price chart using color coding and information labels. Entry positions are marked with arrows, exit positions are marked with different arrows. The system connects entry and exit trades of the same position with dashed lines for visual tracking of complete trading cycle. Each closed position is accompanied by text label showing final trade result (profit or loss) in monetary terms.<br><br><br><br>Trade Timing Tracking System<br><br><br><br>Pivot Levels Pro includes minimum trade interval control mechanism through MinutesBetweenTrades parameter. The system tracks time of last opened trade (g_lastTradeTime) and does not open new trade until established interval passes. This mechanism prevents excessively frequent trading and ensures higher quality trades with more significant price movements.<br><br><br><br>Debug Mode for Detailed Analysis<br><br><br><br>Pivot Levels Pro includes DEBUG_MODE (DEBUG_MODE = false by default), which outputs detailed logs of all system actions to terminal journal. When DEBUG_MODE = true is set, the system outputs information about detected signals, position opening, stop-loss modification, and other key events, facilitating analysis and algorithm optimization.<br><br><br><br>Strategy Implementation and Optimization<br><br><br><br>Before implementing Pivot Levels Pro on live accounts, traders should conduct testing on historical data using the built-in MetaTrader 5 Strategy Tester. It is recommended to start by testing different pivot calculation methodologies (Classic, Fibo, Camarilla, Woodie, DeMark) on one instrument to determine the most effective methodology for that particular instrument. It is also recommended to test different timeframes (H1, H4, D1) to determine optimal pivot calculation period.<br><br><br><br>On a demo account, it is recommended to test pivot level visualization, ensure correct line and label drawing. Verify that signals are generated correctly and that trailing stops and break-even work as expected. Starting on a real micro account with minimum lots allows testing algorithm behavior under real trading conditions without significant financial risk.<br><br><br><br>Conclusion<br><br><br><br>Pivot Levels Pro represents a comprehensive solution for trading from pivot levels, combining multiple calculation methodologies, level visualization on chart, automatic signal detection, and complete position management with trailing stops and break-even functions. Support for multiple pivot methodologies, flexible position size management, and adaptability to different account modes ensure universal applicability across different instruments. Built-in control panel and trade history visualization provide complete control over trading process. Whether you are just learning pivot level trading or optimizing existing strategy, this system provides complete toolkit for effective pivot-based trading necessary for success on modern financial markets with minimal psychological stress and maximum effectiveness.<br><br><br><br>In case you have virtually any queries concerning exactly where in addition to the best way to employ [https://www.cadocrea.ma/quantum-forex-ea/ Forex EA platform], it is possible to e-mail us on our own web site.
Summary:
Please note that all contributions to BioMicro Center may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BioMicro Center:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)