I have been trying to create an alert for Stochastics, whereby for example, over a 1 min and 2 min timeframe, an alert will fire.
As I am dealing with two different timeframes;
Stoch- 2min will cross and be confirmed with the getBarState() on the next tick.
At exactly the same time the 2 min period ends, I am looking for the 1 min to cross and be confirmed with the getBarState() on the next tick, (it should be the same tick that confirms the 2 min)
In order for this EFS to be correct, I am assuming because the result is based on closed price bars, that if I run this EFS realtime during the trading day, that if I were to run the exact same EFS after trading hours the results would be exactly the same.
Unfortunately, the results I have been getting are not the same, therefore I must be doing something incorrectly.
If anyone can add any thoughts as to where I might be going wrong, it would be greatly appreciated.
I am also attaching the latest version of my EFS for review
Royce
As I am dealing with two different timeframes;
Stoch- 2min will cross and be confirmed with the getBarState() on the next tick.
At exactly the same time the 2 min period ends, I am looking for the 1 min to cross and be confirmed with the getBarState() on the next tick, (it should be the same tick that confirms the 2 min)
In order for this EFS to be correct, I am assuming because the result is based on closed price bars, that if I run this EFS realtime during the trading day, that if I were to run the exact same EFS after trading hours the results would be exactly the same.
Unfortunately, the results I have been getting are not the same, therefore I must be doing something incorrectly.
If anyone can add any thoughts as to where I might be going wrong, it would be greatly appreciated.
I am also attaching the latest version of my EFS for review
Royce
Comment