Please could someone help me adjust a custom indicator I am creating. I have the following code that plots a triangle below the bar when the stochastic crosses, but I want to only plot the triangle when the cross happens below the low line ie 20
// Condition set 1
if (CrossAbove(Stochastics(7, 14, 4).K, Stochastics(7, 14, 4).D, 1))
{
DrawTriangleUp("My up arrow" + CurrentBar, true, 0, Low[0] + -2 * TickSize, Color.Blue);
}
What code should I add to only plot when the cross happens below the low line?
Many thanks for you assistance
Jim

Comment