NexusFi: Find Your Edge


Home Menu

 





Cannot Execute Automated Strategy


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
jkepha
San Antonio, TX
 
Posts: 31 since Apr 2020
Thanks Given: 10
Thanks Received: 6

Hello,

For some reason, I cannot place orders using my automated strategy. I can manually put in a limit order but not from my strategy. My code is below. I made sure automation was on without account confirmation. I checked the max number of bars field, that is fine. Looked around everywhere on tradestation and could not figure this out.

Can someone please help?

Thank you!!!

Ryan



/*
begin;

buy 1 share next bar at 18 limit;

if c[0]=19.00 then sell 1 share next bar at market;

end;

*/


Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
Hormuz Normalization Collapses to 19.5% -- Iran Regime F …
Prediction Markets & Event Contracts
I Have a Thing Called Iran -- Trump Stays in DC as Airsp …
Prediction Markets & Event Contracts
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
$4.5M Floods Russia Nuclear Contract in 24 Hours -- Krem …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
Legendary Systematic Algo Trader
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,270 since Feb 2017
Thanks Given: 2,960
Thanks Received: 2,856


jkepha View Post
Hello,

For some reason, I cannot place orders using my automated strategy. I can manually put in a limit order but not from my strategy. My code is below. I made sure automation was on without account confirmation. I checked the max number of bars field, that is fine. Looked around everywhere on tradestation and could not figure this out.

Can someone please help?

Thank you!!!

Ryan



/*
begin;

buy 1 share next bar at 18 limit;

if c[0]=19.00 then sell 1 share next bar at market;

end;

*/

Your syntax looks okay. There are a few things to look at:
  1. Was the limit price hit? A limit order might not get filled if the limit price was blown away (i.e. gapped past the price)
  2. Did you check the Trade Manager to see what happened to the order? This may give you a clue.... if it is not there, then the strategy did not send it
  3. Are you using delayed data rather than real-time?
  4. Do you have the correct account selected? Do you have account confirmation turned on or off?


~vmodus

Enjoy everything!
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
syswizard's Avatar
 syswizard 
Philadelphia PA
 
Experience: Advanced
Platform: Multicharts
Broker: Ironbeam, Rithmic
Trading: Emini ES / NQ / CL / RTY / YM / BTC
Posts: 344 since Jan 2019
Thanks Given: 20
Thanks Received: 146


Try changing the LIMIT order to a STOP order.
Also, which execution broker are you using ? i.e. Interactive, Rithmic, etc...


Reply With Quote




Last Updated on April 20, 2021


© 2026 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 - Downloads - Top
no new posts