I am new to trading and have absolutely no coding experience. I am trying to create a strategy in NT8 that will enter and exit the market under the following conditions:
Enter Long only when:
1. The Market is above 200 EMA line
2. At the first Bullish bar that opens above 21 EMA.
3. MACD line is greater than MACD Average line
4. RSI is greater than a value of50
Exit long only when:
1. Profit of 2 ticks has been accumulated or
2. Stochastic Indicator Crosses below a value of 90 or
3. RSI Indicator Crosses below a value of 70 or
4. MACD line crosses below Average Line
Enter Short only when:
1. The Market is below 200 EMA
2. At the fist Bearish bar that closes below 21 EMA.
3. MACD Average line greater than MACD line
4. RSI is less than a value of 50.
Exit Short when:
1. Profit of 2 ticks has been accumulated or
2. Stochastic Indicator Crosses above a value of 20 or
3. RSI Indicator Crosses above a value of 23 or
4. MACD line crosses above Average Line
With the help from some folks here, I was able to put a strategy that kinda looks to the way I want, but needs polishing. My biggest headache is how to make it enter only once after certain conditions have met and then wait to re-enter again when the same conditions have met.
I am attaching the zip file and notes with chart set up and examples. If someone is willing to see what I am doing wrong here and can help I would be very grateful.