Trade FOREX with FXCM

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


Results 31 to 38 of 38
Page 3 of 3 FirstFirst 1 2 3

Thread: Updated ST Strategy Language Help File Now Available!!

  1. #31
    Timon55's Avatar
    Timon55 is offline Member
    Join Date
    Sep 2010
    Posts
    42
    So, I need to recreate Stop\Limit on each new bar or on each new tick if IntraBar mode is enabled?
    Get tons of indicators, signals and strategies for Trading Station II/Marketscope 2.0

  2. #32
    jimmylmh is offline FXCM Automated Platform Specialist
    Join Date
    Dec 2010
    Posts
    964
    Hi Timon55,

    Thank you for your post above.

    You don't actually need to recreate them, just make sure the conditions are fulfilled to generate the orders.

    You might want to do something like this:

    Code:
    if (StrategyInfo.MarketPosition!=0)
    {
    	limit_buy1.Generate(Bars.CloseValue + (limit_buy1_size*Point), buy_lot1);
            stop_buy1.Generate(Bars.CloseValue - (stop_buy2_size*Point), buy_lot1);
    
    }
    Let us know if it helps.

    Regards,
    Jimmy

  3. #33
    spgandau is offline Registered User
    Join Date
    Jun 2011
    Posts
    4

    tutorial 3; behavior of core methods... question...

    Hello autoforexer,

    thanks for your work on this tutorial! Lots of time and energy went into it, and it is well presented.

    I find myself stuck. I got to tutorial 3, down to "behavior of core methods". I followed each step, which seemed straight forward. But when I dragged the _exercise1 stEA onto the chart, it only "half worked"... :-|

    The Format Objects window popped up correctly. The strategy advisor tab was highlighted. the _exercise1 was displayed. the Status was "on"....but there was no input string displayed, and the output window was blank.

    I use windows 7 64bit, using Strategy Trader version 1.0 (build 311). The stEA compiled correctly, without errors. I went over it twice and recompiled. I know that I must have missed something, but am not quite sure what... windows 7 issues? mis-type in the [Input] coding?

    any input / ideas / help would be appreciated.

    Regards,
    spgandau

    Quote Originally Posted by autoforexer View Post
    Hi komakalle,

    I'm presently putting one together at

    Automated Forex Trading: FXCM Strategy Trader Programming Language

    A tutorial on order placement is in the works.

    Hope this helps,
    autoforexer

  4. #34
    jpschan is offline FXCM Automated Platform Specialist
    Join Date
    Dec 2010
    Posts
    1,061
    Hi spgandau,

    In order have the input string displayed, you must type [Input] above the method. Are you using autoforexer's code that I posted below

    Code:
    using System;
    using System.Drawing;
    using Broker.StrategyLanguage.Function.BuiltIn;
    using Fx2GoCommon;
                          
    namespace Broker.StrategyLanguage.Strategy
    {
        public class _exercise1 : BaseStrategyAdvisor
        {
            public _exercise1(object _ctx):base(_ctx) {}
    
            // Variable declarations
            private int m_construct_index = 0;
            private int m_initialize_index = 10;
            private int m_execute_index = 100;
            private int m_destroy_index = 1000;
    
            // Input parameters
    
            [Input]
            public int construct_index
            {
                get { return m_construct_index; }
                set { m_construct_index = value; }
            }
    
            [Input]
            public int initialize_index
            {
                get { return m_initialize_index; }
                set { m_initialize_index = value; }
            }
    
            [Input]
            public int execute_index
            {
                get { return m_execute_index; }
                set { m_execute_index = value; }
            }
    
            [Input]
            public int destroy_index
            {
                get { return m_destroy_index; }
                set { m_destroy_index = value; }
            }
    
            protected override void Construct()
            {
              Output.Clear();            // clears the Output Window
              Output.WriteLine("Construct() says hello!");
              Output.WriteLine("The value of m_construct_index is: " + m_construct_index);
            }
    
            protected override void Initialize()
            {
              Output.WriteLine("--------------------------------------------");
              Output.WriteLine("Initialize() sends greetings!");
              Output.WriteLine("The value of m_initialize_index is: " + m_initialize_index);
              Output.WriteLine("--------------------------------------------");
            }
    
            protected override void Execute()
            {
              Output.WriteLine("Execute() likes to say hi often!");
              Output.WriteLine("The value of m_execute_index is: " + m_execute_index);
            }
    
            protected override void Destroy()
            {
                Output.WriteLine("--------------------------------------------");
                Output.WriteLine("Destroy() wishes you well!");
                Output.WriteLine("The value of m_destroy_index is: " + m_destroy_index);
            }
        }
    }
    Regards,
    jpschan

  5. #35
    gg123 is offline Member
    Join Date
    Jul 2011
    Posts
    20

    Unblock

    Jimmy,

    I unblocked the zipped file, then unzipped and it works fine.

    Thanks again

    Rgds Geoff

  6. #36
    rikcando is offline Member
    Join Date
    Sep 2011
    Posts
    6

    Thank you

    That is great, seriously. I am so happy that you posted this. I had no idea. And now I can use the file. Cannot say thank you enough.

  7. #37
    vs22 is offline Member
    Join Date
    Sep 2012
    Posts
    6
    I am looking for the MT4 account copier with small latency. Second requirement: I do not want to keep running terminals, because I use more then 20 MT4.
    Last edited by vs22; 09-21-2012 at 12:46 PM.

  8. #38
    vs22 is offline Member
    Join Date
    Sep 2012
    Posts
    6
    Maybe it will be interesting if you manage several MT4 accounts.
    PDF file (account copier options and settings)
    http://multiterminal.net/PowerTradeCopier-settings.pdf

Page 3 of 3 FirstFirst 1 2 3

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.