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)
Define session template with multi-sessions. Then select the session (first, second or third) to which you want to apply the opening range. Select opening range duration.
You will need to rename the following lines:
for OR-High, OR-Low and OR-mid lines 114-116
for Pre-High and Pre-Low lines 117-118
and line 781
and also lines 820-827 (see below)
for AS-High, AS-Low, EU-High and EU-Low lines 820-827
I am sorry to say that I changed every line of code u mention and don't know why or how but it keeps showing the original labels.....I deleted the file, reinstalled it and same issue.......one comment to mention.....the first time I installed it I changed colors and press right button and SET DEFAULT for those parameters......AFTER THAT I deleted and reinstalled and the parameters by default were the LAST ONES I modified, NOT the ones from your original version (which I would expect IF I deleted and reinstalled)......any idea what may be happening that I can not change the plots?
also run on replay and as previous versions it start plotting since the opening.....u told me before to modify one line to change this .....see below
- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -
(1) Modify line 324 of the indicator to
if (plotOHL && sessionOpen && Time[0] > sessionEnd.Subtract(sessionLength-openingPeriod))
and it will only start plotting the opening range after the opening period is complete. The opening range will be shown starting from the open.
- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -
But this has changed now.....I should be changing some other line I believe....can u guide me pls?
I am sorry to say that I changed every line of code u mention and don't know why or how but it keeps showing the original labels.....I deleted the file, reinstalled it and same issue.......one comment to mention.....the first time I installed it I changed colors and press right button and SET DEFAULT for those parameters......AFTER THAT I deleted and reinstalled and the parameters by default were the LAST ONES I modified, NOT the ones from your original version (which I would expect IF I deleted and reinstalled)......any idea what may be happening that I can not change the plots?
also run on replay and as previous versions it start plotting since the opening.....u told me before to modify one line to change this .....see below
- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -
(1) Modify line 324 of the indicator to
if (plotOHL && sessionOpen && Time[0] > sessionEnd.Subtract(sessionLength-openingPeriod))
and it will only start plotting the opening range after the opening period is complete. The opening range will be shown starting from the open.
- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -
But this has changed now.....I should be changing some other line I believe....can u guide me pls?
(1) To change the label lines: Edit indicator via Tools -> Edit Ninjajscript -> Indicator. Then change the code. Press F5 to compile and you are done.
(2) Change line 404 to
if (plotOHL && initOpeningRange && Time[0] >= sessionStartTime.Add(openingPeriod))
The indicator will now start plotting the opening range, when complete but plot the line back to where it started.
If you are lazy, you can just edit the indicator and use the Find/Replace option. That will do in any case, and you do not need to search the file. Just put in your preferred label, select Match case and then Replace All.
If you are lazy, you can just edit the indicator and use the Find/Replace option. That will do in any case, and you do not need to search the file. Just put in your preferred label, select Match case and then Replace All.
(1) To change the label lines: Edit indicator via Tools -> Edit Ninjajscript -> Indicator. Then change the code. Press F5 to compile and you are done.
(2) Change line 404 to
if (plotOHL && initOpeningRange && Time[0] >= sessionStartTime.Add(openingPeriod))
The indicator will now start plotting the opening range, when complete but plot the line back to where it started.
(2) worked great......still fighting with (1).....not being able to change the labels on this one....tried the Find and Replace also....quite strange....will check it tomorrow again and share.....thanks !!!
While the indicator from post #64 looks correct, the indicator Test2OpeningRangeV28 from post #68, which I had modified for older versions of NT7 has a small bug. I have replaced it with Test3OpeningRangeV28, which should run correctly.
Details: It was a typical copy-and-paste bug. If you have already installed the indicator, just replace line 765
Bars.Session.GetNextBeginEnd(Time[0], out thisSessionBegin, out thisSessionEnd);
with
Bars.Session.GetNextBeginEnd(barTime, out thisSessionBegin, out thisSessionEnd);
Due to the bug, the opening range lines can be drawn back into the prior session.
is there something u think I may have in memory that I should manually delete that could be causing renamed labels not to be reflected?
As I told u, I change the colors of the lines, press right mouse button and save as default, but even if I delete the indi, imported again, IT DOES NOT SHOW ORIGINAL COLORS, it remains with the ones I changed......(żif I delete the indi and reinstall shouldn't it be as the original?)......this is what lead me to believe something is happening on the back....I reintstall four times and no way to change the labels....I also tested the first V28 version for b21 only and the same....
any thoughts?
ZTR told me there was some way of using the output window to check if the code was doing what it was meant to do and do some kind of test.....he went to hospital so we could not skype to check this....any idea what was this?