i can draw the Ray but i know not the code to close the position if the price crosses down the ray .
myRay = Draw.Ray(this, Close[0].ToString() + @" Ray_1", false, 6, (Low[0] - 0.1) , 0, Low[0], Brushes.Red, DashStyleHelper.Solid, 2);
if ( (CrossBelow(Close, myRay, 0)))
{
ExitLong(Convert.ToInt32(DefaultQuantity), "", ""); // exit longposition
}
The code in red is wrong because i dont know the righr code for this action .
Comment