i'm having alot of trouble getting the logic down on a study that I'm trying to. if someone could shed any light, I'd much apprecaite it.
What I need:
If the open() is above the bollinger.UPPER
then, If the open() is below 75
then, sell or place an indicator in that place
That's it. I went through the docs, and it stated that this is simple stuff, but I'm having some trouble and would appreciate any insight
Here is the pertinent code that I have so far:
if (
open() > vBollinger34.getValue(BollingerStudy.UPPER)
&&
vStoch25_3.getValue(StochStudy.SLOW) < 75
) onAction1(); // onAction give the sell indicator
What I need:
If the open() is above the bollinger.UPPER
then, If the open() is below 75
then, sell or place an indicator in that place
That's it. I went through the docs, and it stated that this is simple stuff, but I'm having some trouble and would appreciate any insight
Here is the pertinent code that I have so far:
if (
open() > vBollinger34.getValue(BollingerStudy.UPPER)
&&
vStoch25_3.getValue(StochStudy.SLOW) < 75
) onAction1(); // onAction give the sell indicator
Comment