Trade FOREX with FXCM

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

Results 16 to 18 of 18
Page 2 of 2 FirstFirst 1 2
  1. #16
    Natalya is offline Member
    Join Date
    Apr 2009

    Quote Originally Posted by AnkaSoftware View Post
    Another question - How do I find out, if a Stop is attached to a trade, all Trade row parameters viz, Stop, StopOrderID etc return <blank> or nil values?
    If there is no associated stop/limit order, the values of the Stop and Limit parameters in the Trades table are "0" and the values of the StopOrderID and LimitOrderID parameters are empty.

    a) ExtAsyncOperationFinished
    Will send the code sample to reproduce the problem shortly
    Looking forward to receiving it.

    b) Error "The Entry,Stop or Limit price you are entering is incorrect .. "
    I am using Stop Order for an existing position with the Rate specified and TrailUpdatePips set to 1. Any way to suppress the errors/warning and not to let Strategy to stop?
    You can use the method host:execute("getTradingProperty", conditionalDistance*,...) to get the minimal allowed distance between the market rate and the rate of the order. Besides, to avoid the error, use wider distance on the volatile market, for example when news comes.

  2. #17
    AnkaSoftware is offline Member
    Join Date
    Jan 2012
    Hi Natalya,
    Is there any Lua API command to find out that the strategy is running in backtester? I need this because commands like"extendHistory", 1, BidSource, from, 0); are not supported in back tester

  3. #18
    Natalya is offline Member
    Join Date
    Apr 2009

    There is no such a command. I would recommend you to add the custom parameter to your strategy, something like "Use extend history" (Yes/No), and set it to No for backtesting.

Page 2 of 2 FirstFirst 1 2

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. The possibility exists that you could sustain a loss in excess to your investment and therefore you should not invest money that you cannot afford to lose. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. 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. FXCM 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.