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)
anyone noticed some issue using data2 for standard deviation ?
For example, in this case, standard deviation behaviour seems the same, but values are totally different:
O.K. so I think I get the idea of assigning the DataStream but am still not sure if I'm on the right track. This is my stab at it so far. It compiles but I'm still seeing trades all over the place. Data1 is still a I minute chart so I'm guessing I have not set the streams correctly. I took a look at the page with the code for FundValue (Function) etc.... but am still not completely certain of how. Once I get this ironed out I'm guessing that I can just sub an Input into the formula......... LTradeET (0, data(Input 1)) in order to have the ability of optimizing different time periods.
you can't trade on any other stream as Data 1 with legacy EasyLanguage. This is outside of your control. What you can control is when you issue signals (at the end of a bar for a respective datastream for example), but the order will always be executed on Data 1.
I can't see the results you get, nor would the code snippet compile so I can't test things and only give you some pointers. From your snippet it appears you are using the Data 1 close in all your computations - not sure if this is what you intend and I can't say/see it if matters.
I would suggest that you start adding print statements to your code and that you turn it into an indicator to plot the values you compute. This will give you the chance to compare the values that your code comes up with versus the values that you expect (which you'd also compute and plot/print via an indicator).
Then you can investigate it further.