Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
can you post the code of the "breakeven automated strategy" you have been using, the inputs and a screenshot of the situation where your exit should have triggered, but didn't?
Here's the code. I am setting PositionBasis as True and the floor amount as 25. Then I am opening a market order with a 10 point stop on ES. I was operating under the assumption that at the point that my position reaches $25 in profit, it should move the stop to breakeven. But it isn't.
The attached screenshot is where I am expecting the stop to move breakeven. Let me know what I am missing here. Any help would be greatly appreciated.
[IntrabarOrderGeneration = false]
inputs:
PositionBasis( false ) [DisplayName = "PositionBasis", ToolTip =
"Enter true if currency amounts (profit targets, stops, etc.) are for the entire position; enter false if currency amounts are per share or per contract."],
FloorAmt( 1 ) [DisplayName = "FloorAmt", ToolTip =
"Floor Amount. Enter amount of open profit required to activate breakeven stop."] ;
if PositionBasis then
SetStopPosition
else
SetStopShare ;
you are trying to mix manual entries and strategy exits. For a strategy to be able to recognize an open manual position it would have to made aware of it first.
You can find more information in the official forum, but this thread is a good start: https://community.tradestation.com/discussions/topic.aspx?topic_id=112067