|
<< <%SKIN-STRTRANS-SYNTOC%> >> Navigation: Strategy Workspace > Open Trade > Add condition > Candlestick |

Candlesticks have three parameters:
•Time Frame: As with indicators, you can combine conditions using candlesticks from different time frames.
•Candlestick Index: The latest (or current) candlestick has index 0. The previous candlestick has index 1, etc.
•Candlestick Value: Open, High, Low, Close, Range (High minus Low), Body Length (the absolute difference between Open and Close), Upper Wick (the length of the upper wick or shadow), Lower Wick (the length of the lower wick or shadow)
Because the latest candlestick (with index: 0) is developing, its Close returns the current Bid price, which is constantly changing. Therefore, you should use index: 1 for conditions like "candlestick closes above..." where you refer to the candlestick Close.
In other words, Candlestick Close at index 1 is above Candlestick Open at index 1.




Here it's important to note that we want to compare the Candlestick Close and Moving Average at the same index. If we refer to the candlestick with index 1, we must compare it to the Moving Average with Shift = 1 which gives the value of the Moving Average at the previous candlestick.


Bullish Engulfing
Bullish Engulfing consists of the following conditions:
•The last closed candlestick is bullish (like the example above)
•The candlestick before has index: 2 and is bearish
•The bullish candlestick's close is above the bearish candlestick's open
•The bullish candlestick's open is below the bearish candlestick's close

Morning Star
•The last closed candlestick is bullish
•The candlestick before has index: 2 and its body is much smaller than both candlesticks on the left and right (let's say it's maximum 30%)
•The candlestick before the morning star has index: 3 and is bearish

Shooting Star
•The last closed candlestick has a long upper wick (let's say at least twice the body)
•...and a short lower wick (let's say maximum half of the body)
•The candlestick before the shooting star is preferably bullish

To open a trade only once right after the candlestick closes, add this instant condition: Send order when bar opens.