♥ 0 |
Hi Pete. I created a fairly simple script that is actually working and returning the result I had intended. But for future reference for someone working hard at learning how to thinkScript, I was wondering if you wouldn’t mind looking at my script and letting me know if there was an easier way to accomplish the same result. I’m feeling pretty confident that there is but I’m not yet advanced enough to figure it out on my own. I’m quite comfortable with the basics and even a few of the more advanced concepts, but beyond that I’m still a little confused. Anyway, the code is looking for the following 3 conditions using the built-in LBRThreeTen Oscillator. Thank you so much for all you do! 1). Slowline crosses above Zeroline 2). Fastline crosses below Zeroline within 12 bars of condition 1 3). On the 3rd bar of the Fastline being below the Zeroline, and the Slowline remaining above the Zeroline, the condition returns “true” I hope that wasn’t too confusing. File attached:
Marked as spam
|
Please log in to post questions.
There is nothing wrong with your attempt (accept that it is wrong). Most folks do not understand how I use the Highest() function to check if signals have been true or false over a given period of time. So I can hide one of my secret weapons in plain site and very few eyes will be able to understand how it works. Perhaps seeing the flip side of the signal will reveal it’s secret power? I have updated my answer to include the same signal in the opposite direction. I have not tested it. Let me know how it works.