I've solved the both counts interfering issue with some double counting logic. I've tested it and it works great.
HCP's solution seems much more simple, I will have to study it more.

chance = 50
basebet = .0000001
highcount = 0
lowcount = 0
nextbet= basebet
bethigh = false
betcount = 1 -- I wanted to name this "highcount2" can I just make something up and let it count?
losecount = 1 -- This for "lowcount2"
function dobet()
if highcount > 200 and win then
chance = 50
nextbet = basebet
highcount = 0
betcount = 0
losecount += 200
end
if lowcount > 200 and win then
chance = 50
nextbet = basebet
lowcount = 0
losecount = 0
betcount +=200
end
if lastBet.Roll < 99.34 then
highcount += 1
betcount +=1
else
highcount = 0
end
if lastBet.Roll > 00.66 then
lowcount += 1
losecount +=1
else
lowcount = 0
end
if highcount >= 200 and losecount < 200 then
chance = .66
nextbet = previousbet*1.00725
bethigh = true
losecount = 0
end
if lowcount >= 200 and betcount <200 then
chance = .66
nextbet = previousbet*1.00725
bethigh = false
betcount = 0
end
end
With above script I have succeeded in doing martingale from both sides and counting from both sides without interfering each other.
What I really want to improve on this is that when I come out of a martingale win from low side, often times the high side have already accumulated over 200+ counts sometimes even 400+. How can I take advantage of that situation and make the starting bet accordingly?
if highcount >= 200 and losecount < 200 then
chance = .66
nextbet = previousbet*1.00725 ------- (if the highcount is 300, I want to make the betting amount higher)
bethigh = true
losecount = 0
end
So Could I add something like this before the dobet function?
newlowbet = basebet*1.00725^(lowcount-200)
newhighbet = basebet*1.00725^(highcount-200)
If I can do the above, how could I implement this in the script?
Thanks HCP for the help!!!! I really appreciate it!