RT 15 - some simple C# variable questions

Login or Register

Please login or register in order to view and post in the Forum.

5 posts / 0 new
Last post
rparda
Last seen: 1 week 2 days ago
Joined: 12/23/2016 - 11:06
RT 15 - some simple C# variable questions

I Have a couple of charts with CI that are not working now that I migrated to RT 15 so wanted assistance fixing them myself.
1, I have a Menu button that that is used to "Set View Period Start". How can I assign whatever value is chosen to variable C#30?
2. I have a Profile Indicator that already assigns values to variables C#21...C#26. I want tp assign a arithmetic equation to another variable C#17 based on the results of C#21...C#26 {ex #C17=C#21+C#24). How do I do this? Do i need to make a CI and add it as a window to the existing chart?
Thanks

0
cpayne
Last seen: 1 year 7 months ago
Joined: 03/30/2009 - 00:00
Setting C#s in RTL

You could create a signal with syntax like...

SET(C#17, C#21 + C#24) AND CL < 0

and add that signal to your chart.  It won't really dislpay anything but it should set your C#17 value for you.

As far as setting the starting date/time into a C#, I'm not sure we have a token that supplies the starting date/time of the view period so not sure that is currently possible....but how exactly do you anticipate using this C# if you can get the starting date/time set into it?

rparda
Last seen: 1 week 2 days ago
Joined: 12/23/2016 - 11:06
Setting C#s in RTL

Regarding your second point "As far as setting the starting date/time into a C#" this seemed to break when I went to RT 15. I have a menu button that sets the view period (attached). And there is an ANOTE indicatior (attached). Before I would select the number days on the menu button and that would set the view period for the chart and update the "C30 Sessions" in the ANOTE ind. With RT 15, no matter what numberr of days I select with the menu button, the ANOTE ind will not change. Do note that it does set the view period, but it will not set the C#30 variable which if did in RT 13.7.

cpayne
Last seen: 1 year 7 months ago
Joined: 03/30/2009 - 00:00
Share Chart Def

If you'll share that chart definition with us we will do some testing.  You can send to support@linnsoft.com or share here.

rparda
Last seen: 1 week 2 days ago
Joined: 12/23/2016 - 11:06
Share Chart Def

I previously opened up this up on Ticket #42233. I included the chart def AND the error messages Not much progress was being made so I figured I would just "fix" the issues rather than worry about what happened from RT 13.7 to RT 15.
Just FYI this chart simply counts the fractal rotations over a set period (C#30), displays them in a PROF indicator and assigns VAH/VAL/POC for up rotations and down rotations in C#21...C#26). It then takes the VAH of up and down rotations and rounds up to the next tick (#C21+C2#24)/4 and assigns it to C#17 which become the min price in the ZigZag indicator.
Unclear to me but looks like RT 15 deleted a CI which I "think" created the C#17.
"Technical indicator "CI" references "ZZ_value_median", an invalid Custom Indicator name. Fix the indicator setup in chart "RP_GC_Fractal_Rotations" and save the chart.". I don't see it in the chart def. Also not sure why it would be an invalid name. Again, might be easier to fix the chart than figure out what happened. Thanks