NexusFi: Find Your Edge


Home Menu

 





how to cancel an stop order in easy language


Discussion in EasyLanguage Programming

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




 
Search this Thread

how to cancel an stop order in easy language

  #1 (permalink)
Trading4living
Tiruchendur
 
Posts: 1 since Dec 2009
Thanks Given: 0
Thanks Received: 0

hi guys..i want to backtest a simple system....i have only end of day data ....my conditions are as follows:

i just want to buy 50 points above open ..each day... and exit at end of day ....for this i tried the following code

[ intrabar order is enabled in the setttings]


//===========================================

if marketposition=0 then buy next bar at open +50 stop;

setexitonclose;

//===========================================
the problem with this code is that suppose on a day buy condition is not met on a particular day..it doesnt cancel the order and buys next day using previous day open adding 50 to it...(instead of using current day open...)

how to solve this?

this is very very simple system..how to code this...

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
ZombieSqueeze
Platforms and Indicators
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
60 thanks
Funded Trader platforms
43 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623


Trading4living,

orders are issued as long as your conditions are valid in EasyLanguage. You can use this to add a variable to your conditions that you invalidate when you don't want to send the order anymore.

Regards,

ABCTG

Follow me on Twitter Reply With Quote




Last Updated on October 17, 2019


© 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