I'm trying to add an additional entry to an existing position, without success. My code is this:
if (CrossBelow(DM(10).DiPlus, DM(10).DiMinus, 1)
&& ToTime(Time[0]) > ToTime(7, 30, 0)
&& ToTime(Time[0]) < ToTime(14, 15, 0))
{
EnterLong(DefaultQuantity, "DMLong");
DMLong = true;
DrawDiamond("Runner Long" + CurrentBar, true, 0, High[0] + 1, Color.Blue);
}
if (DMLong == true
&& CrossAbove(RSI(10, 3), RSI(10, 3).Avg, 1))
{
EnterLong(DefaultQuantity, "RSILong");
DMLong = false;
DrawDiamond("Runner Long" + CurrentBar, true, 0, High[0] + 1, Color.DarkBlue);
}
This diamond are drawing in the correct places and the DMLong entry fires ok, but the RSI entry will not fire. Any suggestions?
Comment