Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hello,
I'm trying to make sense of the fold loop in TOS thinkscript and convert to Ninjascript.
Here's a snippet of the TOS code (Mobius' TMO code):
Here's what I have so far (_data and _ema05 are DataSeries, Main_Plot and Signal_Plot are plots):
Where I'm stumped...
1) range of plots not the same from NT to TOS - extending to upper / lower bands
2) don't know how to use "fold", "with", "do", "getValue()".
TIA for any help and advice. Thanks.
kz
Can you help answer these questions from other members on NexusFi?
I made the o and c as DataSeries in the front end but still getting the same plot results.
I guess I still need to figure out how TOS "fold" gets translated to NT
I looked into it, and I don't think you need to add a series for the open and close after all. Here is a new one. I am uploading the code in cs file. If it doesn't work I will look into it later today.
EliteCamper,
Thanks for your input, I agree since I'm thinking Open and Close are already a series. In any case,
I played around with it some more. See code snippet and screenshot.
Now I just have to work on the boundary since the TOS version plots toward 10 and -10. I think it has to do with the "with s" and "do s".
kz
Zeller4, from my experience the boundaries are fixed plots, you plot a line a give it a fixed value. I don't think you will be needing "with" and "s" from thinkscript. Let me know how it goes.
Here it is. Believe this code has the red and green brush paintings still although I had to remove them from my setup as it was dragging down the setup. I had help from others on this so if you find that you have the same issue then let me know.