First of all thank you for your Help,
I want to inform you that I find a bit difficult to develop this line of strategy using the attached indicator. The objective is to enter a buy/Sell conditions after the Nbarsup Trigger is shown. So if I can draw an arrow means I can add conditions of buy and sell..
I tried this Line:
Method A:
if (NBarsUp(3, true, true, true)[0] == BarsSinceExit())
{
DrawArrowUp("MyArrowUp"+CurrentBar, 0, Low[0], Color.Yellow);
EnterLong(DefaultQuantity,"Buy");
}
Method B:
if (NBarsUp(3, true, true, true)[0] == Close[0])
{
DrawArrowUp("MyArrowUp"+CurrentBar, 0, Low[0], Color.Yellow);
EnterLong(DefaultQuantity,"Buy");
}
Please can you help me with this, What is the mistake that I am doing?
Thank you a lot,
Comment