NexusFi: Find Your Edge


Home Menu

 





abort startegy


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one ssber with 3 posts (0 thanks)
    2. looks_two sam028 with 1 posts (0 thanks)
    3. looks_3 Bimi with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 1,661 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

abort startegy

  #1 (permalink)
 ssber 
Mallorca, Spain.
 
Experience: Beginner
Platform: NinjaTrader
Trading: CL
Posts: 40 since Apr 2012
Thanks Given: 45
Thanks Received: 30

Hi,

this is really simple question, but I can't find the answer:

Is there a way to abrort a strategy, something like "return","exit ","endsub" or whatever.

Is the only way not having to write a million if then else.

Thanks.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
 
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


Simply use a boolean, which will be set to false when you want to stop the strategy.
Not a million of if needed.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
  #4 (permalink)
 ssber 
Mallorca, Spain.
 
Experience: Beginner
Platform: NinjaTrader
Trading: CL
Posts: 40 since Apr 2012
Thanks Given: 45
Thanks Received: 30

hi, I know I can do this, I was only wondering if there was a return . bye

Started this thread Reply With Quote
  #5 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58


ssber View Post
hi, I know I can do this, I was only wondering if there was a return . bye

why don't you just look up the keywords dictionary for "return"?

Reply With Quote
  #6 (permalink)
 ssber 
Mallorca, Spain.
 
Experience: Beginner
Platform: NinjaTrader
Trading: CL
Posts: 40 since Apr 2012
Thanks Given: 45
Thanks Received: 30


Bimi View Post
why don't you just look up the keywords dictionary for "return"?

I did.

Started this thread Reply With Quote




Last Updated on November 22, 2012


© 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