i need Help
I have a signal to go long , short in my Strategy AND i will take i.e. 5 ticks of profit. How do I make sure it DOES NOT take another 5 ticks of the next bar (or maybe not) i.e. I only want 5 ticks ONCE until I get another signal in the opoosit direction, an so on.
Please send my the code. I think it must be placed under the first and second condition.
This is an example
// Condition set 1
if (Close[0] > HMA(Median, 1)[0])
{
EnterLong(DefaultQuantity, "Buy");
}
// Condition set 2
if (Close[0] < HMA(Median, 1)[0])
{
EnterShort(DefaultQuantity, "Sell");
}
}
thanks a lot
Comment