I've been working on "swing" code. This snippet from the notes identifies elements in one of the arrays.
{swing array: 0= myBar 1= H 2= L 3= C 4= swing price {myL or myH} 5= 1 if B, -1 if T 6= 1 if asc, -1 if des 7= 1 if p2t found, -1 if p2b found 8= 1 if revBuyAsc, -1 if revSellDes 9= 1 if revBuyP2T, -1 if revSellP2B 10=1 if repeatBuyAsc, -1 if repeatSellDes 11=1 if repeatBuyTOB, -1 if repeatSellTOT {back[1]} 12=1 if repeatBuyTOB, -1 if repeatSellTOT {back[2] but not both[1]+[2]} 13=1 if nullDes, -1 if nullAsc 14=1 if nullP2B, -1 if nullP2T 15=1 if mtH higherTop, -1 if mtL lower B 16=1 if mtH largerRangeH, -1 if mtL largerRangeB {16 isn't red green logic} 17=1 if mtDir=1, and -1 if mtDir=-1}
Swing is one of my special interests I won't go into detail about except privately with others that have a genuine interest that can add to my understanding. FWIW... Swing doesn't have anything to do with length of time spent in a trade. |