カウント関数
2件の返信
こんにちは,
I would like to request, if possible, a count function, that could count for how many bars a certain condition is true, so that we can store that info into a variable. For instance, how many bars a condition C1>C2 is true over last n-bars(period).
I am using algowizard inside of strategyquantX if that is of relevance.
SqX is a wonderful tool, well worth the money and I think, that such a count function would enable even more possibilities.
ありがとうございます。.
0
こんにちは,
you can simply setup a counter that will be increased by +1 with each time the condition is valid.
You also setup another condition that negates this and reset counter to 0.
You can then setup a condition like : if ‘counter’ > 20 then: buy / sell for example
0
Thank you, but I tried that already when I read about similiar problems on this forum. My problem is however not solvable like that. I honestly believe that a simple implementation of a count function such as in easylanguage, would greatly improve strategy building for price action strategies.
0
2件の返信を表示中 - 1 - 2件目 (全2件中)