NexusFi: Find Your Edge


Home Menu

 





how to cancel an stop order in easy language


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #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?
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
May 26 Deadline Dies at 7.5% as US Strikes Iran During C …
Prediction Markets & Event Contracts
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
Second Night of US Strikes Crushes Iran June 15 to 3.6% …
Prediction Markets & Event Contracts
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643


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 X Reply With Quote




Last Updated on October 17, 2019


© 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