Buy orders going to simulation (preference setting is demo) - futures io
futures io

Buy orders going to simulation (preference setting is demo)

Discussion in EasyLanguage Programming

    1. trending_up 662 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 1 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

Search this Thread

Buy orders going to simulation (preference setting is demo)

(login for full post details)
  #1 (permalink)
Posts: 4 since Nov 2016
Thanks: 1 given, 0 received

I am using a demo account to test some EasyLanguage buy/sell strategies. I have some logic and if that is true, I will enter a long at a limit buy next bar. Outside of the logic, I have my SetProfitTarget(1000) and SetStopLoss(400) statements which I was informed will only execute if I have a position (i.e. if the logic above is true and the buy limit order was sent AND filled).

Basically my problem is that my initial orders seem to be going through the simulation and my stop/profit orders go through the demo account. Under trade strategy manager (where I am setting parameters for the strategy) I have the order execution going through the server (not sim) and the demo account is listed.

Attached is a screen shot to display the problem. In "strategy orders" you can see the initial short went through "sim" but the stop/profits are sitting in the demo account (which lists no position under the positions section). Also, the initial short was sent in previously (since it is sim I am assuming that it looks for historical entries).

Also in my program I am printing to the log a few things to help debug. The accountID info says the demo account, market position and current shares will print 1 if the sim is long (i.e. the marketposition prints out -1 or 1 even when my workspace says no position).

Has anybody encountered this problem before? I am using Apex Trader. I haven't had much experience with EasyLanguage but I can't seem to find anything on this subject (couldn't find how to define the account inside of the EL strategy for example). Any help is much appreciated. Thanks for your time!

Reply With Quote

Can you help answer these questions
from other members on futures io?
Experience with AGN (Introducing Broker)
Is there inherently more opportunity in smaller markets?
Traders Hideout
1 min chart v-shape scan help please
Eurex Denali vs dxFeed
Sierra Chart
MacdBB V402 NT804 + gradient + pullback not working on N …
(login for full post details)
  #3 (permalink)
Denver CO USA
Posts: 32 since Sep 2016
Thanks: 0 given, 13 received

Can you post the code ?

Reply With Quote

futures io Trading Community Platforms and Indicators EasyLanguage Programming > Buy orders going to simulation (preference setting is demo)

Last Updated on December 7, 2016

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Our 12-year anniversary w/ $$,$$$ prizes (check soon)


Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada),
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts