Hi,
Does anyone know how to have the platform draw period seperators i.e every 5 mins. So if I was looking at 1min chart or seconds chart, a horizontal line would draw every 5mins. (So for example, the 1min would shown 5 candles then on next candle draw the line again and continue doing this every 5mins.)
Thanks
Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.
Thank you 🙂
I moved it from the German forum.
ok Sorry. This was my first post so was not sure where it posted it. But thanks for moving it.
There you go (not tested):
If (OpenMinute mod 5) = 0 then
DRAWVLINE(BarIndex) COLOURED(255,0,0,255) style(DottedLine,1)
Endif
Return
Do not double post, again in the German forum!
I deleted it.
Please take more time to read the basic rules highlighted in yellow below.
Thank you 🙂
Hi Roberto,
Many Thanks for the code. I tested and it is verey close to what I want. I have attached 3 images. The first image (Period-Sep1.png) when I add the indicator to a 15sec chart this is how it shows. I need it to show like in the second image (Period-Sep2.png). Basically I kept the indicator code you gave but colored the start with yellow vertical line and then the next vertical Yellow line. (The yellow vertical lines should display very 5mins i.e image show first line started at 19.55 and next at 20.00. This should continue every 5mins.) (note: the final result should look like image Period-Sep3.png).
One other thing. How do I only show the lines on a specific timeframe and not other timeframes also.
Thank you once again for your help.
hmmm sorry Roberto but I did read the rules and at bottom it said you are posting to English Forum so not sure why it went to German forum again. (see attached image)
Yes, that was to be used only on minutes.
Tio work also on seconds, replaxce line 1 with:
If (OpenMinute <> OpenMinute[1]) AND ((OpenMinute mod 5) = 0) then
Thank you that worked perfectly.