♥ 0 |
Hello Pete, Sorry for the double posting. I tried to add the picture in the previous post in the answer box, but I got an error message saying that I need to write something, but I could not do so because I could not click anywhere to write. I re-posted the question here with the clarification you requested. Please feel free to delete either one. ============================================================================== Hello, I would like you your assistance please. I am trying to scan for stocks that verify a certain compression using EMA. for example the today’s (ema3-ema15) needs to be less than a certain value (Ratio) than the highest (ema3-ema15) within a certain number of days. I wrote the code below but the results did not make any sense at all. def ema3 = ExpAverage(close, 3); Thank you in advance! ===================================================================== Thank you for your reply. I put a picture in the answer box where I could attach a picture, but could not write a text, so I am writing here as a comment. I meant compression. I want to scan for (a/b)>R, where a=abs(ema3-ema15) and is the highest length within a certain number of bars (N), b=abs(ema3-ema15), and R is a certain ratio(2 for example). abs (is absolute value). Hope is clear. Pete, Please could you add to that scan a code that checks for CCI(default) being between -100 and 100 but going upwards. Thank you!
Marked as spam
|
Please log in to post questions.