Tipu_Signal_Plotter
Download scriptThis script is designed for the MetaTrader 4 platform to act as a visual history logger. Its primary purpose is to read a specific trade history file from your computer and draw those historical trades directly onto your trading chart so you can see them visually.
How it Works
1. Data Loading
When you first add the script to your chart, it searches for a specific CSV file (default name is history.csv) within a designated folder on your device. It automatically skips any header lines and prepares to read the trade data.
2. History Processing The script looks at each entry in that file and extracts essential trading details, including:
- Time & Date: When the trade was opened and closed.
- Trade Details: The type of order (e.g., Buy, Sell, Limit, Stop), the symbol traded, and the specific lot size.
- Pricing: The opening price, closing price, Stop Loss (SL), and Take Profit (TP) levels.
- Performance: The profit or loss result, commissions, and swap costs.
3. Visual Plotting Once the data is loaded, the script filters the information to match the currency pair you are currently viewing on your chart. For every matching trade, it creates a visual representation:
- Trend Lines: It draws lines connecting the entry and exit points.
- Dynamic Coloring: The lines change color based on the trade type (for example, blue for Buy orders and red for Sell orders). You can also customize these colors in the settings.
- Visual Markers: It places specific icons (arrows) on the chart to highlight exactly where your Stop Loss and Take Profit levels were located at the time of the trade.
- Entry/Exit Points: Clear markers are placed at the exact price and time you entered and exited the market.
4. Dynamic Adjustments The script includes a "Smart Anchor" logic. If certain coordinate data is missing from your history file, the script is intelligent enough to automatically assign the current market price and time as the starting point, ensuring that the visual markers still appear correctly on your screen.
Summary of Benefits
Instead of manually calculating your past performance or scrolling through long spreadsheets, this tool allows you to "replay" your trading history visually. By seeing your past entries, exits, and risk levels (SL/TP) directly on the price candles, you can better analyze your trading habits and recognize patterns in your historical success or failures.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | T i p u S i g n a l P l o t t e r . m q 4 |
/ / | C o p y r i g h t 2 0 1 6 , K a l e e m H a i d e r . |
/ / | h t t p s : / / w w w . m q l 5 . c o m / e n / u s e r s / k a l e e m . h a i d e r / s e l l e r |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
# p r o p e r t y c o p y r i g h t "