Trade FOREX with FXCM

  • Award-Winning Platform
  • 24/7 Customer Support
  • Trade Directly on Charts
  • Free $50K Practice Account
Register


Results 1 to 15 of 19
Page 1 of 2 1 2 LastLast

Thread: Trading Sessions Indicator

  1. #1
    beans is offline Member
    Join Date
    Mar 2006
    Posts
    11

    Talking Trading Sessions Indicator

    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.

    Enjoy!
    Beans
    Attached Thumbnails Attached Thumbnails Trading Sessions Indicator-tradesessions.jpg  

    Attached Files Attached Files

  2. #2
    autoforexer's Avatar
    autoforexer is offline Member
    Join Date
    Jun 2010
    Posts
    272
    Quote Originally Posted by beans View Post
    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.

    Enjoy!
    Beans
    Hi Beans,

    Very nice! Also a great example of how to draw shapes on the chart.

    Thanks for sharing,

    autoforexer

  3. #3
    gg_frx is offline Member
    Join Date
    Jul 2010
    Posts
    32
    HI beans
    thank you for this indicator.
    I use the same indicator in fxcm trading station,
    here you can download it
    FXCodeBase.COM: Forex Chart Indicators and Development • View topic - Trading Session Hours for Aug 27, 10 Trading Station Release
    but trading sessions hours are different.
    Another problem whit your indicator is that sidney and tokyo rectangle precisely overlap, in trading station indicator two rectangle are shifted.
    Can you verify on a 15' chart?
    Thank you

  4. #4
    Brad Gleason at FXCM's Avatar
    Brad Gleason at FXCM is offline DailyFX Administrator
    Join Date
    Sep 2010
    Posts
    129
    Thank you for your post Beans!

    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!

  5. #5
    Chicca is offline Member
    Join Date
    Feb 2010
    Posts
    155
    hello
    can you tell me how do i do 1000 tick?
    thanks chicca

  6. #6
    jdavis is offline FXCM Automated Platform Specialist
    Join Date
    Jan 2010
    Posts
    818
    right click on a chart


    select "Format Symbol"

    Change the chart type Resolution to 1000 Ticks

    Click OK.

    -jd
    API Team

  7. #7
    Chicca is offline Member
    Join Date
    Feb 2010
    Posts
    155

    Unhappy

    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

  8. #8
    jdavis is offline FXCM Automated Platform Specialist
    Join Date
    Jan 2010
    Posts
    818
    Hello,
    Simply right click anywhere on a chart and select Format Symbol. See below.
    Attached Images Attached Images  
    API Team

  9. #9
    DaTnHaN is offline Registered User
    Join Date
    Nov 2010
    Posts
    3

    MA bar indicator help

    Thanks for good indicator

    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





    Quote Originally Posted by beans View Post
    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.

    Enjoy!
    Beans
    Attached Thumbnails Attached Thumbnails Trading Sessions Indicator-tick-vs-minute-3.jpg  


  10. #10
    David Rodriguez's Avatar
    David Rodriguez is offline Moderator
    Join Date
    Jan 2007
    Posts
    705

    Trading Sessions Indicator

    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.
    Attached Files Attached Files
    David Rodriguez is the author of Forex Trading Signals and Forex Trading Weekly Forecast on DailyFX.com.

  11. #11
    Cool66 is offline Member
    Join Date
    Nov 2009
    Posts
    16
    Blog Entries
    1

    Cool 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?

  12. #12
    robocod's Avatar
    robocod is offline Member
    Join Date
    Mar 2011
    Posts
    259
    Quote Originally Posted by Cool66 View Post
    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.)

    Let me know if it does the job for you.

    Trading Sessions Indicator-_tradesessionindicator.jpg
    Last edited by robocod; 03-06-2012 at 07:09 AM.

  13. #13
    Cool66 is offline Member
    Join Date
    Nov 2009
    Posts
    16
    Blog Entries
    1

    Cool TradingSessionsIndicator

    Thanks Robocod

    I'll work on my charts with your code this weekend and let you know how it goes.

    Cheers.

  14. #14
    Cool66 is offline Member
    Join Date
    Nov 2009
    Posts
    16
    Blog Entries
    1

    Cool TradingSessionsIndicator

    Hi Robocod,

    This indicator is much better.

    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.

    Regards,
    Cool66.

  15. #15
    robocod's Avatar
    robocod is offline Member
    Join Date
    Mar 2011
    Posts
    259
    Quote Originally Posted by Cool66 View Post
    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.
    Last edited by robocod; 03-13-2012 at 03:46 AM.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
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.