NexusFi: Find Your Edge


Home Menu

 





how to cancel an stop order in easy language


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,602 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?
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629


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