PROTECTED SOURCE SCRIPT
Updated

FCPO - NSawit Swing Strategy

2 964
This Indicator implements a custom strategy function in an indicator script. It works on a 4-hour time frame and exclusively for the FCPO futures market only.
The NSawit Swing Strategy consists of three main features:

Feature 1: Trade Summary

snapshot
This feature utilizes the table function to summarize all completed trades within the current active month. The indicator generates a table that displays relevant trade information like total ticks and profit/loss. For example: table.new(position.top_right, 1, 4, border_width=0)

Feature 2: Active Month Highlight

snapshot
The purpose of this feature is to visually mark the beginning and end of the current active month on the chart. It achieves this by dynamically changing the background color within the current active month. For example: bgcolor(Highlight ? ColorBG : na)

Feature 3: Swing Reversal Points

snapshot
This feature identifies swing reversal points on the chart by analyzing candlestick patterns and applying a custom matching algorithm.

snapshot
If a candlestick pattern matches the specified criteria, the indicator generates a retest box area.

snapshot
When the price touches this box, it triggers long or short orders. The relevant data, including entry and exit points, are stored in sets of arrays. These data are then utilized by the Trade Summary table to provide a comprehensive overview of the swing trading activity.

snapshot
Take profit and cut loss value can be set in setting.

To view past contracts kindly add this watchlist.
tradingview.com/...atchlists/114756000/
Release Notes
Fix the settings menu.
Release Notes
Fix tickerID issue
Release Notes
Remove tickerID label
Release Notes
* Improve the signal condition.
* Restructure summary of trades.
Release Notes
Added new pattern profile
Release Notes
*Improve signal
Release Notes
Added New Long No 9 & Long No 5.
Improve Short No 5 entry point.
Release Notes
8.3
Release Notes
Shows low-risk signal based on gapless calculation.
Release Notes
Fixed typo All -> All
Release Notes
CL set 16
Implement proper arrays
Implement Risk Type in menu
Release Notes
Fix TV tickerID issue
Release Notes
Last version. The next version will continue with the strategy script.
Release Notes
Fix a lot of pattern issues.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.