print with changing colour
Forums › ProRealTime English forum › ProBuilder support › print with changing colour
- This topic has 4 replies, 3 voices, and was last updated 1 year ago by
robertogozzi.
-
-
01/01/2024 at 10:11 PM #225883
Hi,
is it possible to change the cell in the print window? For example, if the direction is short the cell should be red, if not then green.
https://www.prorealcode.com/documentation/print/
Or can i write short or lon g in the upper right corner of the chart?
01/02/2024 at 1:41 AM #225886Sure. Quick example which shows Red when the Gain is less than -120 :
12345If Gain < -120 thenPrint Gain Coloured("Red") as "Gain"elsePrint Gain Coloured("Green") as "Gain"endifOf course you can adapt this to If ShortOnMarket then …
1 user thanked author for this post.
01/17/2024 at 12:25 PM #226463To print a number isnt a problem, but how can i print text? Or isnt possible?
01/17/2024 at 3:30 PM #226470Unfortunately that doesn’t seem possible. However, I think you should be able to make something in an indicator ? There we can write “text” as such. But it seems a lot of trouble for something which can be done in other ways ? (simple Graph in the program code).
1 user thanked author for this post.
01/17/2024 at 3:53 PM #226472Use DrawYext to print text embedded in quotes, not text data as the alphanumeric data type is not supported.
1 user thanked author for this post.
-
AuthorPosts