Hi,
I have huge problems with the whole test plotting thing. I'm hoping someone can be generous enough to provide some insight for my current situation.
All I wish to do, is plot above the bar (for a sell) a number which represents the difference between the close and my stop level.
So I can instantly see the numbers of pips/ticks at risk etc.
Currently I simply have a DOT appearing above the bar when a setup occurs, with the risk number plotting in the data window only.
How do I replace that with a test number or place it above the dot?
Thanks in advance.
Plotting Text above/below bar where signal occurs
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Plotting Text above/below bar where signal occurs
You can use the keyword:
TEXT_NEW
There are coding syntax examples in the wiki.
TEXT_NEW
There are coding syntax examples in the wiki.
Re: Plotting Text above/below bar where signal occurs
Here's what I have come up with so far, but there are problems.
Value1 = Text_New(Date,Time,High, NumtoStr(My Formula,1));
If Condition1 then begin
Text_SetColor(Value1, White);
Text_SetStyle(Value1,2,1);
end;
2 problems. It is plotting on almost every bar rather than when my condition is met.
And it is plotting 3 vertical values instead of one, with the correct value in white and 2 other value in cyan?
Also, should this work correctly on Tick,Range and Renko bars?
Value1 = Text_New(Date,Time,High, NumtoStr(My Formula,1));
If Condition1 then begin
Text_SetColor(Value1, White);
Text_SetStyle(Value1,2,1);
end;
2 problems. It is plotting on almost every bar rather than when my condition is met.
And it is plotting 3 vertical values instead of one, with the correct value in white and 2 other value in cyan?
Also, should this work correctly on Tick,Range and Renko bars?
- Attachments
-
- 2018-12-13_22-36-56.png
- (5.95 KiB) Downloaded 304 times
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times