I rewrote it like this which I'm sure is not the best way, could someone look at it and make sure I did it right and perhaps fix whatever I did wrong.ĭef negToPos = TTM_Squeeze().Histogram is less than 0 and TTM_Squeeze().Histogram is less than 0 ĭef bullStart = TTM_Squeeze().Histogram and TTM_Squeeze().Histogram is greater than 0 ĭef bullRun = TTM_Squeeze().Histogram > TTM_Squeeze().Histogram and TTM_Squeeze().Histogram > TTM_Squeeze().Histogram I had the code more joined together before but thinkorswim complained that it was too complex (not sure why seems pretty simple conditions). I'm trying to scan for stocks/options that checks the past 4 TTM Histogram bars to make sure the following conditions are true:ġ) TTM_Squeeze().Histogram 3 and 4 are below 0 and histogram 3 is closer to 0 than 4 (so histogram > histogram )Ģ) histogram 1 is greater than histogram 2 and both of them are above 0 line
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |