Join our fan page
- Views:
- 1042
- Rating:
- Published:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
This indicator implements the "Quarters Theory" - a technical analysis concept that divides price movement into four quarters around a central base level. It's designed to work with multiple asset types (Forex, stocks, commodities, etc.) and provides visual quarter levels on the chart.
Quarters Theory Concept:
-
Base Level: Central reference price
-
Quarter 1: Price range from Base to Base + Quarter Range
-
Quarter 2: Price range from Base + Quarter Range to Base + 2*Quarter Range
-
Quarter 3: Price range from Base - Quarter Range to Base
-
Quarter 4: Price range from Base - 2*Quarter Range to Base - Quarter Rang
1. Flexible Base Level Calculation:
-
Current Daily Close: Latest closing price
-
Previous Day Close: Yesterday's closing price
-
Previous Week Close: Last week's closing price
-
Previous Month Close: Last month's closing price
-
Weekly/Monthly Open: Start of week/month price
-
Custom Level: User-defined price level
-
-
Pips: Forex-specific measurement
-
Points: Smallest price increment
-
Percentage: Percentage of base level
-
Absolute: Fixed price value
-
Automatically detects Forex vs. other instruments
-
Adjusts pip calculations for different symbol formats
-
Handles unavailable timeframes gracefully
2. Multiple Quarter Size Units:
3. Multi-Asset Support:
Trading Applications:
Support/Resistance:
-
Quarter boundaries act as dynamic support/resistance
-
Middle lines as potential reversal points
Trend Analysis:
-
Price in Quarter 1/2 suggests bullish bias
-
Price in Quarter 3/4 suggests bearish bias
-
Quarter transitions indicate trend changes
Range Trading:
-
Trade bounces between quarter boundaries
-
Look for reactions at quarter midpoints

Clickable button excample (close all positions)
An example of adding buttons for your advisors. In this example, a button has been implemented to close all active positions for all instruments. In addition to the button event processing functionality, methods for closing positions relative to the symbol name and counting the number of positions relative to the symbol name are also implemented.
DeltaFusionLite
DeltaFusion Lite is the simplified version of the DeltaFusionPro indicator for MT4. It calculates and displays Cumulative Delta and Net Delta, giving traders a clear view of buying and selling pressure within each candle. By analyzing the distribution of volume between bid and ask, it helps identify market sentiment shifts, potential reversals, and various types of divergences between price and volume.
Function for calculating lot size from risk per deposit
The function calculates the lot size of an open position. The opening price of a deal, the price of stop loss level and the risk per deal in per cent of the deposit are passed as parameters
Professional Close All Positions Panel
Professional panel for closing positions with 6 smart filters. Close all, by type, by symbol, or by profit/loss. Real-time P&L display. Perfect for emergency exits and risk management. Includes safety confirmations.