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)
When creating a new thread, note which subforum you are in. Here is a short list of suggestions:
- Topic: Anything to do with an Elite indicator -> Subforum: The Elite Circle
- Topic: Looking for an existing indicator, or how-to use an indicator -> Subforum: (the platform)
- Topic: Programmer needing help with non-Elite indicator -> Subforum: (the platform) - Programming
- Topic: Want an indicator created/modified -> Reply to "Want indicator created free" in Elite Circle
- Topic: Vendors (trading rooms, commercial indicators) -> Subforum: Vendors/Product Reviews
- Topic: Discussion of Forex or Currency trading -> Subforum: Forex and Currency Trading
- Topic: Journals of your trading -> Subforum: Trading Journals or Elite Trading Journals
- Topic: General trading related discussions -> Subforum: Traders Hideout
- Topic: Discussion of a trading method -> Subforum: Traders Hideout
- Topic: Automated Trading -> Subforum: Elite Automated Trading
Last, any Elite Member may create more or less any of these topics in The Elite Circle at your own discretion (your support is appreciated).
This is just a short general list and doesn't cover everything. If you are unsure where to create your new thread, just create it in Traders Hideout and a moderator will move it if necessary.
There's a (user provided) function call in this indicator called Text_FloatLocation (in the eld file I provided) that sets the position of the text on the chart from within the indicator. In this case, the upper right side. Serger is saying that the text that the function is placing is moving across the chart. You can see the two screen shots where "0.3" is just left of center on the top of the chart on the first screenshot and, on the next screenshot, you see the "0.1" to the right of center on the top.
Since I don't have MC, I don't know of a function that will fix the location of the text object on the chart so it doesn't float across the chart. I'm sure there is since MC has better text API than TS. If you know it, you can just swap out the Text_FloatLocation function with whatever MC uses and that should be all that is needed.
Thanks,
-C
“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Ok, her is my complete code. It plots the barriers (high blue , low darkred ) at which price a new range bar will
plot, the current price in the middle , and the remain in ticks and percent at the bottom (cyan if there are ticks left, magenta if the range is filled).
vars:
{ Text Object Vars }
TxtStr(""), // Text String
AlertStr(""), // Alert Text String
TxtID(text_new(date,time,close, " ")), // Text Object Reference
{ Constants }
cDispPct(1), // Option to display Percentages
cDispRaw(2), // Option to display Time/Tick/Vol Values
Pad(" "), // Pad to right of text display
BarRange(0.1);
// Check for valid input values
if DispMode <> 1 and DispMode <> 2 then
RaiseRuntimeError("The DispMode input must be set to 1 or 2");
if VertTextPct > 100 or VertTextPct < 0 then
RaiseRuntimeError("The VertTextPct input must be set between 0 and 100");
if AlertPct > 100 or AlertPct < 0 then
RaiseRuntimeError("The AlertPct input must be set between 0 and 100");
// Chart Specific Init
AlertStr = GetSymbolName+" bar has "+NumToStr(AlertPct,0)+"% remaining";
end;
if CurrentBar = 1 then begin
// determine the range of the bar from the ones already shown
BarRange = range[1];
end;
if _LastBarOnChart then begin // Only display in real-time
// Set Text Location from right of chart
Value2 = Text_FloatLocation(TxtID, VertTextPct);
// Calc Remaining value text
if DispMode = cDispPct then
TxtStr = NumToStr((((BarRange - H+L) / BarRange) * 100), 0)+"%"+Pad
else if DispMode = cDispRaw then
TxtStr = NumToStr(BarRange - H+L, dec)+" "+Pad;
// Display Text
text_setstring(TxtID, TxtStr);
// Trigger Alert / Use Alert Color
if (((BarRange - H+L) / BarRange) * 100) < AlertPct then begin
text_SetColor(TxtID, AlertColor);
Alert(AlertStr);
end else text_SetColor(TxtID, NormColor);
Hello RickW
Look the post # 14 , slightly higher , post from SPMC : SP Range Remaining .pla
I have just add somme little ......... for the high low dotted line , easy .....
enjoy !