Using NinzaRenko bar, can someone please help me with this.
I want to write a trading algorithm based on the step-by-step conditions provided below.
1- Sets Green and Red Bar Condition.
1.1- A Green Bar occurs when the close is greater than the open.
1.2- A Red Bar occurs when the close is less than the open.
2- Sets Bullish and Bearish Reversal Bar condition.
2.1- A Bullish Reversal Bar condition occurs when the previous bar is a Red Bar and the current bar is a Green Bar.
2.2- A Bearish Reversal Bar condition occurs when the previous bar is a Green Bar, and the current bar is a Red Bar.
3- Sets Swing Low and Swing High Condition.
3.1- A Swing Low is the low of a Bullish Reversal Bar condition.
3.2- A Swing High is the high of a Bearish Reversal Bar condition.
4- Sets Lower Swing and Higher Swing condition for entry signals.
4.1- A Higher Swing occurs when the current Swing Low is greater or equal to another Swing Low that happened 1 bar ago or multiple bars ago. enter long.
4.2- A Lower Swing occurs when the current Swing High is less or equal to another Swing High that happened 1 bar ago or multiples bar ago. enter short.
5- Sets Stop Loss and Profit Target. A stop loss of 24 ticks and a profit target of 20 ticks is applied to both long and short entries.
I have zero knowledge in coding.
Thanks!
Comment