=== TradeJournal WP === Contributors: laith3 Tags: trade journal, trading, NinjaTrader, csv import, trading platform Requires at least: 5.0 Tested up to: 6.9.1 Stable tag: 1.2.2 Requires PHP: 7.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html A trade journal plugin for WordPress to import, manage, and analyze NinjaTrader CSV trade data with detailed daily logs and performance summaries. == Description == A powerful trade journal plugin for importing and managing NinjaTrader CSV trade data in WordPress. **TradeJournal WP** is a trade journal plugin designed to help traders keep track of their trading performance by importing trades from NinjaTrader CSV files. Currently, it supports only **NinjaTrader**, with plans to support additional platforms in the future. With TradeJournal WP, you can upload a CSV file containing your trades for a particular day, and the plugin will automatically create a post that logs all trades for that day. You can also enhance your journal entries by uploading trade screenshots, which are displayed in a beautiful lightbox for easy viewing. NinjaTrader allows you to export trades for a specific day or multiple days in one CSV file, which can then be imported into TradeJournal WP to create detailed trade journal posts. **Explore Pro Features**: Upgrade to [TradeJournal Pro](https://tradejournalwp.com/) for advanced features such as multiple account merging, additional trading platforms, and advanced analytics. **Key Features:** - Import trades from **NinjaTrader CSV** files. - Create custom posts for each trading day with detailed trade information. - Supports trade data, including instrument, entry/exit times, account, and P&L calculations. - Upload and display **trade screenshots** in posts, with a built-in lightbox for viewing detailed trade images. - Display a **monthly trade performance summary** with the `[trade_averages]` shortcode, showing metrics like average profit, win/loss percentage, and total trades. - Block-based theme compatibility. Planned Future Enhancements: - Support for additional trading platforms. - More advanced trade analytics and reporting tools. == Pro Features == **Unlock the full potential of TradeJournal WP with Pro**: - Merge trades across multiple accounts. - Import trades from additional platforms beyond NinjaTrader. - Access advanced trade analytics and performance reporting tools. [Learn more about TradeJournal Pro →](https://tradejournalwp.com/) == Installation == 1. Download the plugin zip file. 2. Go to the WordPress dashboard and navigate to Plugins > Add New. 3. Click "Upload Plugin" and upload the TradeJournal WP zip file. 4. Activate the plugin through the 'Plugins' menu in WordPress. 5. To use TradeJournal WP, go to the "Trade Journals" section of your dashboard and create a new post by uploading a CSV file of your trades. == Usage == 1. **Importing Trades**: - Navigate to the "Trade Journals" section in your WordPress dashboard. - Create a new post and upload a CSV file containing trades from NinjaTrader. - The plugin will automatically generate a detailed post with your trade data for the selected day. 2. **Displaying Trade Journals on the Frontend**: - Use the shortcode `[tradejournal_posts]` to display a list of trade journal posts on any page or post. - The shortcode will automatically format the posts using a responsive masonry layout. 3. **Customizing the Display**: - You can adjust the number of posts displayed with the `posts_per_page` attribute in the shortcode: `[tradejournal_posts posts_per_page="5"]` 4. **Managing Multiple Accounts**: - (Pro Version Only) Merge trades from multiple accounts using the "Merge Accounts" feature in the plugin’s options page. == Frequently Asked Questions == = Which trading platforms are supported? = Currently, TradeJournal WP only supports **NinjaTrader**. However, we plan to add support for more platforms in future updates. = How do I import trades? = You can import trades by uploading a CSV file in the post editor. In NinjaTrader, you can export your trades by selecting a specific day or multiple days, then upload that file to TradeJournal WP. = Can I merge trades across multiple accounts? = This feature is only available in the Pro version. == Screenshots == 1. **Options Page** - Configure options like merging accounts and setting up trade configurations. 2. **CSV Import** - Import trades directly from NinjaTrader CSV files. 3. **Edit Trades** - Modify individual trade properties, add screenshots, and configure trade setups. 4. **User Guide** - Access the plugin's built-in guide to learn its features and how to use them effectively. 5. **Frontend Trade Posts** - View trade journal posts displayed on the frontend. 6. **Detailed Post View** - Display individual trade metadata and screenshots in an intuitive layout. == Changelog == = 1.2.2 = * Packaging: Ensure admin success notice shows Edit/View links and importer returns post ID in distributed zip. = 1.2.1 = * Admin: After CSV import, show success notice with quick links to Edit post and View post. * Importer: Return created post ID to support admin notice links. = 1.2.0 = * Added NT8.1+ CSV format support = 1.1.1 = * Fixed: Screenshot removal button not working as expected. = 1.1.0 = * Feature: Added "Previous" and "Next" navigation links to single tradejournal posts for easier browsing. = 1.0.7 = * Enhancement: Automatically retrieve instrument multipliers and commissions from plugin settings for CSV imports. * Enhancement: Commission deductions added to P&L calculations for more accurate trade analysis. * Enhancement: Options page updated to allow easy management of multipliers and commissions. * Improvement: A streamlined experience for managing instruments, with editable fields for the default instrument in the free version. * Improvement: Clear upgrade prompts to explore additional features available in the Pro version. * Security: Enhanced sanitization and validation for safer data handling. * Fix: Addressed issues with input processing to ensure smoother operation. = 1.0.6 = * Enhancement: Added detailed plugin description and improved documentation. * Enhancement: Added plugin screenshots for better understanding of features and functionality. * Enhancement: Updated the readme file to reflect the latest features and usage instructions. = 1.0.5 = - Confirmed compatibility with WordPress 6.7. - Fixed directory structure issue for correct release on WordPress Plugin Directory. = 1.0.4 = - Fixed nonce verification issue in trade form. - Improved input sanitization for trade entries. = 1.0.3 = - Removed `[tradejournal_performance]` shortcode for further improvements. - Minor bug fixes related to data display. = 1.0.2 = - Fixed issues with data duplication in trade performance reports. - Improved handling of invalid date entries. = 1.0.1 = - Fixed a query performance issue affecting large datasets. - Resolved a bug causing incorrect date formats in some trades. = 1.0 = - Initial release of TradeJournal WP with support for importing NinjaTrader CSV files. == External Libraries == This plugin uses the following external libraries: - **PhotoSwipe**: Used for lightbox functionality. The minified version of the PhotoSwipe script is included in the plugin for performance reasons. You can access the source code and documentation here: [PhotoSwipe GitHub Repository](https://github.com/dimsemenov/PhotoSwipe). - **FooTable**: Used for rendering responsive tables. Source: https://github.com/fooplugins/FooTable Minified version: assets/js/footable.min.js Non-minified version: assets/js/footable.js - **Isotope.js**: Used for dynamic, filterable layouts (masonry layout) in the plugin. Source: https://isotope.metafizzy.co/ Minified version: assets/js/isotope.pkgd.min.js Non-minified version: assets/js/isotope.pkgd.js - **imagesLoaded**: Used in conjunction with Isotope.js to ensure images are fully loaded before layout calculations. Source: https://imagesloaded.desandro.com/ Minified version: assets/js/imagesloaded.pkgd.min.js Non-minified version: assets/js/imagesloaded.pkgd.js The non-minified source code is included for transparency and review purposes. You can find the original source and contribute at the provided links. == Upgrade Notice == = 1.2.0 = * Added NT8.1+ CSV format support = 1.1.1 = * Fixed: Screenshot removal button not working as expected. = 1.1.0 = * Feature upgrade: Added "Previous" and "Next" navigation links for seamless navigation between tradejournal posts. = 1.0.7 = * Easily customize multipliers and commissions directly from the settings page. * Accurate P&L calculations with automatic commission adjustments. * Simplified options management with enhanced controls and settings. * Explore Pro features for advanced capabilities and flexibility. **[Get TradeJournal Pro](https://tradejournalwp.com/)** = 1.0.6 = * Enhancement: Added detailed plugin description and improved documentation. * Enhancement: Added plugin screenshots for better understanding of features and functionality. * Enhancement: Updated the readme file to reflect the latest features and usage instructions. = 1.0.5 = - Compatibility update for WordPress 6.7. Recommended for all users to ensure plugin stability with the latest WordPress version. = 1.0.4 = - Security update: Improved nonce verification and input sanitization for trades data. = 1.0.3 = - Removed `[tradejournal_performance]` shortcode for further improvements. - Minor bug fixes related to data display. = 1.0.2 = - Fixed issues with data duplication in trade performance reports. - Improved handling of invalid date entries. = 1.0.1 = - Fixed a query performance issue affecting large datasets. - Resolved a bug causing incorrect date formats in some trades. = 1.0 = - Initial release.