how to count bars?

Created at 01 May 2018, 07:02
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
ogima.515@gmail.com's avatar

ogima.515@gmail.com

Joined 23.08.2017

how to count bars?
01 May 2018, 07:02


1.i need to count the previous bars. example 10 bars ago how should i do?
2. if have two positive and negative number   i need  count only negative number how should i do?


@ogima.515@gmail.com
Replies

PanagiotisCharalampous
07 May 2018, 12:56

Hi ogima.515@gmail.com,

Thanks for your post however I will need a better explanation. What do you mean to count bars? From where to where? And based on what condition? Also what do the positive and negative numbers represent e.g. opening price? For example, do you want to count the number of bars from the last 10 that had a closing price lower than the opening price? If you can explain better, I might be able to help you.

Best Regards,

Panagiotis


@PanagiotisCharalampous