Strategy does not see manually-entered positions. - futures io
futures io



Strategy does not see manually-entered positions.


Discussion in EasyLanguage Programming

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




Welcome to futures io: the largest futures trading community on the planet, with well over 150,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
 

Strategy does not see manually-entered positions.

(login for full post details)
  #1 (permalink)
jetaylor1946
baton rouge, louisiana, united states
 
 
Posts: 3 since Nov 2022
Thanks: 2 given, 1 received

I want to enter trades using the quick trade bar, and then have a strategy automate exits. But in simulation, this strategy statement results in all zeroes:

print(currentshares,marketPosition,entryprice);

Is there a way to link the strategy to the simulated position?

Reply With Quote

Can you help answer these questions
from other members on futures io?
help with take profit several targets
TradeStation
How do I create Strategy with the Second Entry indicator
NinjaTrader
Market on Close data within IB
Platforms and Indicators
Multi Time Frame High/Low/Median levels
NinjaTrader
Big Mo Indicator for NT8
NinjaTrader
 
 
(login for full post details)
  #2 (permalink)
 yochuresfio 
Highland Park
 
Experience: Beginner
Platform: TradeStation
Trading: emini es
 
Posts: 3 since Dec 2015
Thanks: 1 given, 1 received


jetaylor1946 View Post
I want to enter trades using the quick trade bar, and then have a strategy automate exits. But in simulation, this strategy statement results in all zeroes:

print(currentshares,marketPosition,entryprice);

Is there a way to link the strategy to the simulated position?

You can find a technique for this in the Tradestation forums. It's called something like "ContinuousAdoptRealWorldPosition".

Reply With Quote
The following 2 users say Thank You to yochuresfio for this post:
 
(login for full post details)
  #3 (permalink)
jetaylor1946
baton rouge, louisiana, united states
 
 
Posts: 3 since Nov 2022
Thanks: 2 given, 1 received


yochuresfio - Thanks! The search term "ContinuousAdoptRealWorldPosition" resulted in multiple useful discussions on community.tradestation.com.

Reply With Quote
The following 2 users say Thank You to jetaylor1946 for this post:
 
(login for full post details)
  #4 (permalink)
jetaylor1946
baton rouge, louisiana, united states
 
 
Posts: 3 since Nov 2022
Thanks: 2 given, 1 received


jetaylor1946 View Post
I want to enter trades using the quick trade bar, and then have a strategy automate exits. But in simulation, this strategy statement results in all zeroes:

print(currentshares,marketPosition,entryprice);

Is there a way to link the strategy to the simulated position?


This solved my problem:

In the bottom of Customize Studies and Strategies popup, select
[X] Generate strategy orders for display in TradeManager's Strategy Orders tab
[X] Automate execution using {your account number} account with confirmation {on or off as desired}

In Customize Studies and Strategies / Strategy Propeties for All Strategies on this Chart / Automation, select
[X] Strategy will fill non-historical orders .... etc ...
[X] Adopt the real-world position for the current account

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Strategy does not see manually-entered positions.


Last Updated on December 17, 2022


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2023 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), info@futures.io
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