Here's a little indicator that I coded just now, thought maybe some of you would find it helpful. I like trading the London session, but sometimes gets confused about exactly when it starts and ends. This indicator basically paints boxes around different trading sessions that you are interested in, NY, London, Tokyo and Sydney.
Here's a little indicator that I coded just now, thought maybe some of you would find it helpful. I like trading the London session, but sometimes gets confused about exactly when it starts and ends. This indicator basically paints boxes around different trading sessions that you are interested in, NY, London, Tokyo and Sydney.
Enjoy!
Beans
Hi Beans,
Very nice! Also a great example of how to draw shapes on the chart.
I often use Strategy Trader, and an indicator like this is extremely helpful.
I also noticed thathe Tokyo and Sydney 'boxes' do precisely overlap, as noted by gg_frx. I use the indicator on marketscope as well, but find this to be more pleasing to the eye.
This may be of interest to someone: if you apply this indicator to a chart, and change the chart timeframe to 1000 Tick (or something not time-based) you can somewhat see session volume. I hope this helps someone with strategy development or scalping!
Thank you for your posts and best of luck trading!
sorry Sir
but I m not able to open "format symbol" on clicking the right botton!
on the chart, car there are a lot of other possibilities but not that u suggested me
what can i do?
regards chicca
I was wondering if you can help us to code the MA Bars that can paint on the chart , refer to Screenshot, that would be awesome
Kevin
Originally Posted by beans
Hey guys,
Here's a little indicator that I coded just now, thought maybe some of you would find it helpful. I like trading the London session, but sometimes gets confused about exactly when it starts and ends. This indicator basically paints boxes around different trading sessions that you are interested in, NY, London, Tokyo and Sydney.
I've attached my own version of the Trading Sessions indicator, which varies slightly in the original (thanks Beans!) in times posted. I've also included a functional workspace that displays the trading sessions on various currency pairs. I hope you all find this useful.
David Rodriguez is the author of Forex Trading Signals and Forex Trading Weekly Forecast on DailyFX.com.
changing time zone in Trade_Session_Indicator script
When I change AddHours to (10-timezone) (Australian Std Time) in the script at lines 118 and 169 the Sydney and Tokyo boxes display local times and enclose price range correctly but the London and New York boxes are way off the price range although times are correct.
Is there something else in the text I need to edit?
When I change AddHours to (10-timezone) (Australian Std Time) in the script at lines 118 and 169 the Sydney and Tokyo boxes display local times and enclose price range correctly but the London and New York boxes are way off the price range although times are correct.
Is there something else in the text I need to edit?
I seem to remember there was an error in the code. I wrote my own which (I hope) fixes this, also it has more options for flexibility, and better formatting. You can find it on my website.
The indicator handles up to 4 sessions, which are configured by a string, such as "On, Tokyo, 9:00, 15:00, +9". 1st field is On/Off; 2nd field is the label; 3rd & 4th fields are open & close time; 5th field is timezone offset. You also specify the local timezone. There is also a "verbose" option which displays the Day and the pips (open to close and total range).
(PS: I think you might need the "Utils" code as well, which is also on the website, as it is used for Price/Pips conversion in the indicator.)
I changed line 29 to {0, -1, -8, +10} to coincide with AEST (GMT+10) which my trading platform local time is set to.
I also changed line 30 to {"Sydney", "Tokyo", "London", "NewYork"}.
With the above offsets, all is well except the London box, which closes at 2300 local and will not extend beyond this time no matter how much I manipulate the time settings. I presume this has something to do with the fact that the London session, in my time zone, spans either side of midnight.
Price is correctly contained within the session boxes in all cases.
With the above offsets, all is well except the London box, which closes at 2300 local and will not extend beyond this time no matter how much I manipulate the time settings. I presume this has something to do with the fact that the London session, in my time zone, spans either side of midnight.
Thanks for the feedback. I will have a look at that. Perhaps if I adjust my PC's local time to Aus I can test this.
PS: Please check you have latest version. I have a problem on my website (issues with caching old files), and so despite uploading a new file, sometimes you get the old one. You might want to try and "clear your browser cache" to force it to pick up the latest one. The latest indicator has the ability to set the local time as one of the Inputs. If you don't have that then you've picked up the older one instead - which I know did have a problem with day boundaries.
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.