NexusFi: Find Your Edge


Home Menu

 





Buy orders going to simulation (preference setting is demo)


Discussion in EasyLanguage Programming

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




 
Search this Thread

Buy orders going to simulation (preference setting is demo)

  #1 (permalink)
joeyjoeyjoeeey
Minneapolis
 
Posts: 4 since Nov 2016
Thanks Given: 1
Thanks Received: 0

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 NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
What broker to use for trading palladium futures
Commodities
 
  #3 (permalink)
maryfromcolorado
Denver CO USA
 
Posts: 32 since Sep 2016
Thanks Given: 0
Thanks Received: 13


Can you post the code ?

Reply With Quote




Last Updated on December 7, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, 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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts