Scalpers Dot Board
Forums › ProRealTime English forum › ProBuilder support › Scalpers Dot Board
- This topic has 13 replies, 3 voices, and was last updated 7 years ago by mmichael.
-
-
07/26/2017 at 10:43 PM #41742
As I do not robot and my bar chart is already covered with all kind of lines – and additionally my screen size is limited – I needed a way to get rid of all those extra windows below the chart. So here is my Dot Board solution. It is modularized, so one can simply add another module line for own needs (well, I myself want some more).
On the picture you see how it is built up: we go from the most general information at the bottom up to the very special information for a single candle.
- market session times
- squeeze or not
- accumulated trend
- (one way of) trading signal
- (this line is still unused)
- PopGun and candle marker – well I don’t use much candles
- swing teller
Maybe you can make use of it and want to add your own module to it – or you just want a standalone module (that’s a version I use for testing before I integrate it into my Dot Board). For the main board the code is just too long with all the comments in it, that would bomb the site, therefore I attach that just for importing. The code below is for the standalone market session.
Feel free to change and/or add what you like.
DotBoard-MarketSessions12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485// =========================== general section Begin ====================// =========================== Standalone test mark =====================// --- delete this when copied into the DotBoard =BGred = 0 // =BGgreen = 0 // =BGblue = 0 // =// =========================== Standalone test mark =====================// --- add this to the general section// create an extern variable type boolean// --- options to turn a line on/offShowSessions=1 // for IndiNo=0 very bottom position// =========================== Standalone test mark =====================// --- delete this when copied into the DotBoard =LowLineOffset = -0.8 // =IndiLineOffsetAdd = 0.2 // =BACKGROUNDCOLOR(BGred,BGgreen,BGblue) // =// =========================== Standalone test mark =====================// =========================== general section End ======================// =========================== indicator section Begin ==================// ============ Indicator 0 Begin// === mark market session periods// --- see also: @ Noobywan https://www.prorealcode.com/topic/market-session/#post-40397// --- refs: https://en.wikipedia.org/wiki/List_of_stock_exchange_opening_times// https://en.wikipedia.org/wiki/List_of_stock_exchangesIndiNo=0IF ShowSessions THENIndiLine = IndiLineOffsetAdd*IndiNo + LowLineOffset// --- conditionsSession1 = (time>=080000 and time<090000 ) // 08:00-09:00 yellow EU preSession2 = (time>=090000 and time<100000 ) // 09:00-10:00 orange EUSession3 = (time>=100000 and time<153000 ) // 10:00-15:30 red EU+GBSession4 = (time>=153000 and time<173000 ) // 15:30-17:30 magenta EU+GB+USSession5 = (time>=173000 and time<183000 ) // 17:30-18:30 darkmagenta GB+USSession6 = (time>=183000 and time<220000 ) // 18:30-22:00 violet US// --- note: this one paints overnight, so we need 22-00 and 00-2// 22:00-02:00 darkblue ---- nothing, just to make it completeSession7 = (time>=220000 and time<000000 ) OR (time>=000000 and time<020000 )Session8 = (time>=020000 and time<033000 ) // 02:00-03:30 blue JP/AUSession9 = (time>=033000 and time<080000 ) // 03:30-08:00 lightblue JP/AU+HK// --- painting// --- each if..endif on its own to make deleting easierIF Session1 THENDRAWTEXT("▪",barindex,IndiLine) coloured(255,255,0) // 08:00-09:00 yellow EU preENDIFIF Session2 THENDrawtext("▪",barindex,IndiLine) coloured(255,112,0) // 09:00-10:00 orange EUENDIFIF Session3 THENDrawtext("▪",barindex,IndiLine) coloured(255,0,0) // 10:00-15:30 red EU+GBENDIFIF Session4 THENDrawtext("▪",barindex,IndiLine) coloured(255,0,192) // 15:30-17:30 magenta EU+GB+USENDIFIF Session5 THENDrawtext("▪",barindex,IndiLine) coloured(240,0,255) // 17:30-18:30 darkmagenta GB+USENDIFIF Session6 THENDrawtext("▪",barindex,IndiLine) coloured(176,0,255) // 18:30-22:00 violet USENDIFIF Session7 THENDrawtext("▪",barindex,IndiLine) coloured(16,0,255) // 22:00-02:00 darkblue ----ENDIFIF Session8 THENDrawtext("▪",barindex,IndiLine) coloured(0,112,255) // 02:00-03:30 blue JP/AUENDIFIF Session9 THENDrawtext("▪",barindex,IndiLine) coloured(0,160,255) // 03:30-08:00 lightblue JP/AU+HKENDIFENDIF// ============ Indicator 0 End// =========================== indicator section End ====================// =========================== Standalone test ending mark ==============// --- delete this when copied into the DotBoard =RETURN //=// =========================== Standalone test ending mark ==============Hope I forgot nothing.
07/27/2017 at 6:53 AM #41751Wow! Very impressive thanks for sharing, would definitely be featured in the Library for inspiration and as a nice example of what we can do with Probuilder graphics instructions. I’ll add it for you if you don’t mind, thanks again! 😉
1 user thanked author for this post.
07/27/2017 at 8:12 AM #4175907/27/2017 at 10:15 AM #41778Thank you, your trading dashboard is now in the library! 🙂
07/30/2017 at 4:11 AM #41991Hello AVT, hello all,
Thx AVT for the great contribution!
I have a small suggestion: May be it would be useful to add a small text at the extreme right to precise the indicator name, as you can see in the attached pic.
I guess we could add something like:
12if barindex = currentbar thenDRAWTEXT("●" & "Session"...)07/30/2017 at 10:26 AM #41999Good point and good idea, but it is not possible to plot something at the right of price (in the future ..). Maybe adding the indicator name just above each dot line could be possible, I let AVT answer to this query 😉
But, another idea would be to draw dots in the past and let sufficient space on the right of the chart to plot text. However there would be 2 problems : zooming/dezooming would affect the readability of the dashboard and current candlesticks dots information should be read at X periods ago (not so obvious).
1 user thanked author for this post.
07/30/2017 at 1:55 PM #4201507/30/2017 at 2:14 PM #4201707/30/2017 at 5:44 PM #42022Sorry, I did not notice your posts in here. I had this “naming of lines” also in mind when I began, cause it’s simply easier to see what kind of line is currently activated. But DRAWTEXT can only go upto barindex and not to barindex+1, so I thought best solution would be from general to special, giving you at least an idea what kind of information a dot line holds. As Nicolas already said, if I put a dot not under the bar to which it belongs but just for example 3 bars before, I gain some space for a name, but this would make signal reading (and also the check of good signals) more difficult and things should be easier and not more complicated. I also thought of a way putting that stuff at the very beginning – but there we hopp already into the next problem: what IS the beginning? <- That depends on your loaded units and BarIndex. So that’s quite a bigger problem. As a result of all this I forgot about all this naming stuff for now. (Well I do have an idea, how we might solve it at least a bit, but that’s not yet “in production”).
Now to the unwanted space. PRT is autoadjusting the window in the beginning around the “center line” which in your case would be the zero line (3 indis= one in the middle and one above and below). The easiest way, I call it “quick and dirty”, is: delete all unwanted indis in the code, delete the Show… for them too.
Now we have only 3 Indis and we center them around the zero line, means in the general section:
1LowLineOffset = 0 // the y-axis position for the lowest lineand for each of the three indicators we change their number:
Indicator renumbering123IndiNo = -1 // the lowest lined indicatorIndiNo = 0 // the center lined indicatorIndiNo = 1 // the highest lined indicatorThe last one which needs adjustment is the offset adding. This one depends on how high your DotBoard Window is, so you should first adjust the hight of the window and then change this line:
general line offset1IndiLineOffsetAdd = 0.6 // how much to add for the next upper lineThis is not only the space between the lines but also the space which will be added to the top and the bottom when the window is autoadjusted.
If you use an indicator which has a separation line in it (and you want to keep that line), the line adjustment is done here and should be half of the IndiLineOffsetAdd from above:
adjust separation line for an indicator1DRAWHLINE(IndiLine+0.3) coloured(SepLineRed,SepLineGreen,SepLineBlue,Fade0)With your 3 indicators and standard 11 point size and a line offset adding of 0.6 the whole stuff measures on my screen 1 cm in hight (don’t know if one can give measurements like this).
Hope that will do the job.
07/30/2017 at 9:05 PM #42032hello AVT,
your solution works but my idea was to have a scale 0 to 1 (instead of -1 to 1), so I tried the following but it is not ok. I guess prorealtime forces the vertical scale from -1 to 1…
12345678910111213LowLineOffset = 0.2IndiLineOffsetAdd = 0.3// codeIndiNo = 0// codeDRAWHLINE(IndiLine+0.15) coloured(SepLineRed,SepLineGreen,SepLineBlue,Fade0)// codeIndiNo = 1// codeDRAWHLINE(IndiLine+0.15) coloured(SepLineRed,SepLineGreen,SepLineBlue,Fade0)// codeIndiNo = 2// code07/30/2017 at 11:01 PM #4203907/30/2017 at 11:13 PM #42040ok I am fine already with my 3 indicators using the solution you provided previously.
the scale is only for better cosmetic / presentation, so no need to loose a lot of time on it.
let me know anyway if you find a fix.
By the way, we had a similar issue a while before cf. “bandeau dashboard” topic:
https://www.prorealcode.com/prorealtime-indicators/3-linear-regression-tapes-indicator/
08/01/2017 at 5:59 PM #4225708/01/2017 at 6:23 PM #42258 -
AuthorPosts
Find exclusive trading pro-tools on