OPEN-SOURCE SCRIPT
Ichimoku Kijun OPTIMISED FOR 15MIN EURUSD

When to Enter a Trade (The Kijun Bounce)
We only enter when the market is clearly trending and we get a good pullback to the Kijun-sen (the red line).
Market Quality Check (Anti-Chop):
The price must be completely outside the Ichimoku Cloud (Kumo). This ensures we are not trading in a choppy, sideways market.
Buy (Long) Entry:
The price (low of the candle) drops down and touches the Kijun-sen (red line).
The candle then closes above the Kijun-sen, confirming the trend is holding and the bounce is real.
Sell (Short) Entry:
The price (high of the candle) rises up and touches the Kijun-sen (red line).
The candle then closes below the Kijun-sen, confirming the downtrend is holding and the rejection is real.
How to Manage Risk and Exit
We use a fixed profit target (Take Profit) and a dynamic Stop Loss (Trailing Stop) that follows the Kijun-sen.
Risk per Trade:
We risk 1.0 percent of the total account equity per trade.
The initial Stop Loss distance is limited to 1.0 times the ATR, and is strictly capped at 1.0 percent of the price to prevent any single catastrophic loss.
Take Profit (TP):
The fixed profit target is set to a 1.5 Risk to Reward ratio (1.5 R:R). This means the profit target is 1.5 times the size of the initial stop loss.
Stop Loss (SL):
The Stop Loss is a Trailing Stop that automatically moves with the Kijun-sen (red line).
The Stop Loss will trail slightly below the Kijun-sen for a Buy trade, and slightly above the Kijun-sen for a Sell trade, protecting profits dynamically as the trend continues.
Understanding the Trade Signals
🟢🟡 The Round Dots (Entry Signals)
The small, round dots are placed directly on the candle where the strategy decided to enter a trade. The color tells you the direction:
Lime Green Dot: Signals a confirmed Long (Buy) Entry. This happens on the candle where the price successfully bounced off the Kijun-sen (red line) and closed higher, and the market was outside the Kumo (the cloud).
Red Dot: Signals a confirmed Short (Sell) Entry. This happens on the candle where the price was successfully rejected by the Kijun-sen (red line) and closed lower, and the market was outside the Kumo.
⬆️⬇️ The Arrows (Exit Signals)
The arrows appear at the exact price level where the trade was closed (exited). The direction of the arrow indicates where the exit occurred relative to the market action, but the color is more important for determining the result:
Exit Arrow (Often Green/Red): This signals a trade was closed for one of two reasons:
Take Profit (Limit Hit): The trade moved in your favor and hit the fixed 1.5 R:R profit target. This is a successful, profitable exit.
Stop Loss (Trailing Stop Hit): The market reversed against the position, and the trade was closed by the dynamic Kijun-sen Trailing Stop. This is a risk-controlled loss or a break-even exit.
The size of these arrows is the default setting used by the strategy.exit() function in Pine Script to clearly mark the exit price on the chart.
In Summary
The dots tell you when to get in (Entry) based on the Kijun Reversion rule, and the arrows tell you when you got out (Exit) due to hitting either the target profit or the trailing stop loss.
We only enter when the market is clearly trending and we get a good pullback to the Kijun-sen (the red line).
Market Quality Check (Anti-Chop):
The price must be completely outside the Ichimoku Cloud (Kumo). This ensures we are not trading in a choppy, sideways market.
Buy (Long) Entry:
The price (low of the candle) drops down and touches the Kijun-sen (red line).
The candle then closes above the Kijun-sen, confirming the trend is holding and the bounce is real.
Sell (Short) Entry:
The price (high of the candle) rises up and touches the Kijun-sen (red line).
The candle then closes below the Kijun-sen, confirming the downtrend is holding and the rejection is real.
How to Manage Risk and Exit
We use a fixed profit target (Take Profit) and a dynamic Stop Loss (Trailing Stop) that follows the Kijun-sen.
Risk per Trade:
We risk 1.0 percent of the total account equity per trade.
The initial Stop Loss distance is limited to 1.0 times the ATR, and is strictly capped at 1.0 percent of the price to prevent any single catastrophic loss.
Take Profit (TP):
The fixed profit target is set to a 1.5 Risk to Reward ratio (1.5 R:R). This means the profit target is 1.5 times the size of the initial stop loss.
Stop Loss (SL):
The Stop Loss is a Trailing Stop that automatically moves with the Kijun-sen (red line).
The Stop Loss will trail slightly below the Kijun-sen for a Buy trade, and slightly above the Kijun-sen for a Sell trade, protecting profits dynamically as the trend continues.
Understanding the Trade Signals
🟢🟡 The Round Dots (Entry Signals)
The small, round dots are placed directly on the candle where the strategy decided to enter a trade. The color tells you the direction:
Lime Green Dot: Signals a confirmed Long (Buy) Entry. This happens on the candle where the price successfully bounced off the Kijun-sen (red line) and closed higher, and the market was outside the Kumo (the cloud).
Red Dot: Signals a confirmed Short (Sell) Entry. This happens on the candle where the price was successfully rejected by the Kijun-sen (red line) and closed lower, and the market was outside the Kumo.
⬆️⬇️ The Arrows (Exit Signals)
The arrows appear at the exact price level where the trade was closed (exited). The direction of the arrow indicates where the exit occurred relative to the market action, but the color is more important for determining the result:
Exit Arrow (Often Green/Red): This signals a trade was closed for one of two reasons:
Take Profit (Limit Hit): The trade moved in your favor and hit the fixed 1.5 R:R profit target. This is a successful, profitable exit.
Stop Loss (Trailing Stop Hit): The market reversed against the position, and the trade was closed by the dynamic Kijun-sen Trailing Stop. This is a risk-controlled loss or a break-even exit.
The size of these arrows is the default setting used by the strategy.exit() function in Pine Script to clearly mark the exit price on the chart.
In Summary
The dots tell you when to get in (Entry) based on the Kijun Reversion rule, and the arrows tell you when you got out (Exit) due to hitting either the target profit or the trailing stop loss.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.