10 candles must be higher than the moving average
3 replies
Renz Carillo
3 years ago #269187
Just like what the title says, how do i make a condition where 10 candles must be higher/lower than the moving average value
tomas262
3 years ago #269205
Hello,
it can be done. You can simply count bars. Like if Close > EMA you increase the counter value by 1. If Close < EMA you reset the counter to 0.
You can then setup a condition such as if Counter > 20 (20 bars above EMA) + another condition you would enter a trade
hankeys
3 years ago #269206
is it really possible to make the counter in the algowizard?
You want to be a profitable algotrader? We started using StrateQuant software in early 2014. For now we have a very big knowhow for building EAs for every possible types of markets. We share this knowhow, apps, tools and also all final strategies with real traders. If you want to join us, fill in the FORM.
tomas262
3 years ago #269277
Yes, can be done. Check the example attached
Viewing 3 replies - 1 through 3 (of 3 total)