Anyone?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Don't laugh...
Collapse
X
-
Thanks Bertrand,
I've got it working in the simplest form. Could you help me with the "Font" type? What is the required syntax for the "Font" in:
DrawTextFixed(string tag, string text, TextPosition textPosition, Color textColor, Font font, Color outlineColor, Color backColor, int opacity)
And is there any way to specify an X/Y pixel offset from the chosen TextPosition?
Many thanks.
Comment
-
Hi, either you do really simplistic and use this overload -
For the full overload with the font parameter, you can create a font variableCode:[SIZE=2][SIZE=2]DrawTextFixed([/SIZE][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]"myText"[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], [/SIZE][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]"GoLongPermission"[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], TextPosition.TopRight); [/SIZE][/SIZE]
and use this in the syntax you posted...Code:[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]private[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2] Font myFont = [/SIZE][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2] Font([/SIZE][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]"Arial"[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], 10[/SIZE][/SIZE][SIZE=2][SIZE=2]); [/SIZE][/SIZE]
Comment
-
Hi 5iver,
I like your problem! trading is discipline and you are trying to discipline yourself by software. Certainly helpful and I am also doing the same, but in the long term discipline must come from your deepest inner self. Even if you are exhausted, tired, 5 losses in a row you should stick to discipline. But in those circumstancs your deepest self will rule your behaviour and if it finds something against its will then it will find ways to turn on disabled buttons and to execute or exit the trade.
So much to disabling trade buttons.
If you are not disciplined then why don't you shut down your PC?
Best regards
Andreas
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
589 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
342 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
555 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment