Pullback Identifier With bubbles for a Downtrend

P

papayax999

New member
I am trying to make a simple pullback identifier, that will count basically two pull back. I never coded in think or swim, but i made a simple pseuocode on what i would like to do, if someone could just guide me on some functions. I would like a bubble to form that counts, whenever i get a pullback, not just an arrow indicator. Please let me know if anything needs to be cleared up, as it is very bare as of now, but id like to see if anyone could let me know of any TOS functions i could use.

Code:
while(1){
if ( candle1  < candleZ )//compares the first candle, checks to see if candle 2 has a higher low then the first candle. If it does, it will add a 1 bubble.
    {
    legCount = 1
    candleZ++


if (candleN<candleZ && candleN >candle1)// this will check the 3rd and red of the candles, with
    {
    legCount = 2 // prepare for 2nd entry.
   candleZ++
   candle N++
    }


     }
    else
    {
    legCount = 0
    }
}
 

Similar threads

Top