Initially I, with some help, coded a count which would count 9 consecutive counts, each close being lower than the close 4 bars earlier.
Having got that done, I need to initiate a second count, which is dependent on the first count being completed. This second count, upon commencement counts everytime the current close is less than or equal to the low two bars earlier and need not be consecutive.
Hence, to initiate the second count, I tried this:-
If (buysetupcount ==9)
{
if (Close[0] <= Low[2])
{
BuyCountdown++;
DrawText(...)
}
}
In this case, BuyCountdown only counts when both "if" conditions are true. How can I get it to independently run the second "if " condition but only after the first condition is complete? Having some trouble with that. Please help.
Comment