I'm new to this platform and very new to coding in general but I'm giving it my best effort. Lot's of great resources on this website so thank you all for what you do.
I'm trying to code in a strategy/indicator to enter a short position after the RSI has crossed below 70 (from > 70 to < 70) twice within the last 60 candles. Here's what I came up with but it doesn't seem to work:
if (CountIf(delegate {return (CrossBelow(RSI1.Avg, RSIInput, 0));}, 60) > 2)
{
EnterShort(Convert.ToInt32(DefaultQuantity), "");
}
Any feedback/support would be greatly appreciated.
Thanks for your time.
-Kyle
Comment